summaryrefslogtreecommitdiff
path: root/src/audio_out/audio_alsa_out.c
AgeCommit message (Collapse)Author
2003-12-14API version bounceSiggi Langauf
CVS patchset: 5912 CVS date: 2003/12/14 22:13:22
2003-12-12Fix using va_arg without explicit NULL 'terminator'Daniel Caujolle-Bert
CVS patchset: 5892 CVS date: 2003/12/12 01:44:39
2003-12-07get rid of XINE_{ASSERT,ABORT} and useless xine_print_trace (useless). ↵Daniel Caujolle-Bert
Replace XINE_ASSERT by _x_assert, which works exaclty as assert, except that it still warns with NDEBUG defined (but don't abort). Fix missuning of assert(0), which isn't safe, abort is abort, assert is for debugging purpose only, so all assert(0) has been converted to abort() alls. In osd_preload_fonts(): alloc needed memory chunk. Define NDEBUG in CFLAGS, for non DEBUG build only. CVS patchset: 5860 CVS date: 2003/12/07 15:34:29
2003-12-05cleanup phase II. use xprintf when it's relevant, use xine_xmalloc when it's ↵Daniel Caujolle-Bert
relevant too. Small other little fix (can't remember). Change few internal function prototype because it xine_t pointer need to be used if some xine's internal sections. NOTE: libdvd{nav,read} is still too noisy, i will take a look to made it quit, without invasive changes. To be continued... CVS patchset: 5844 CVS date: 2003/12/05 15:54:56
2003-11-26xprintf clean pass. xprintf now log into new XINE_LOG_TRACE log buffer. ↵Daniel Caujolle-Bert
scratch buffer enhancement (thanks Thibaut for the malloc tips), enlarge log buffer from 25 lines (very useless), to 150 (better). CVS patchset: 5801 CVS date: 2003/11/26 23:44:08
2003-11-07Allow for some very basic sound cards that do not support "front" device.James Courtier-Dutton
Fall back to "default" CVS patchset: 5702 CVS date: 2003/11/07 18:25:35
2003-10-20Add a warning about RESUME calls happening when they should now.James Courtier-Dutton
CVS patchset: 5557 CVS date: 2003/10/20 07:04:55
2003-10-12Fix "audio_alsa_out: buffer to small, could not use" for some sound cards.James Courtier-Dutton
Fix was to set period size before buffer size. CVS patchset: 5487 CVS date: 2003/10/12 13:35:49
2003-10-07Fix some bugs in the sound state when using alsa for audio out.James Courtier-Dutton
CVS patchset: 5463 CVS date: 2003/10/07 17:25:10
2003-10-06some housekeeping and compiler warningsMichael Roitzsch
CVS patchset: 5455 CVS date: 2003/10/06 15:27:10
2003-10-04Improve error alsa messages.James Courtier-Dutton
CVS patchset: 5443 CVS date: 2003/10/04 22:49:58
2003-10-04Fix blocking on xine start when using alsa. James Courtier-Dutton
Fixes bug: - http://bugs.debian.org/211304 CVS patchset: 5442 CVS date: 2003/10/04 22:27:58
2003-09-27Another fix due to unexpected bug in alsa-lib. CVS: ↵James Courtier-Dutton
---------------------------------------------------------------------- CVS: Enter Log. Lines beginning with `CVS:' are removed automatically CVS: CVS: Committing in . CVS: CVS: Modified Files: CVS: xine-lib/src/audio_out/audio_alsa_out.c CVS: xine-lib/src/xine-engine/audio_out.c CVS: ---------------------------------------------------------------------- CVS patchset: 5419 CVS date: 2003/09/27 14:59:43
2003-09-17Another attempt to get the buffer and period sizes correct.James Courtier-Dutton
alsa-lib has problems if the buffer_size is an odd value, so this code tries to ensure that buffer_size never becomes odd. CVS patchset: 5399 CVS date: 2003/09/17 18:21:09
2003-09-04Change back to old method for setting period size.James Courtier-Dutton
new method discovered bugs in alsa-driver, alsa-lib, so there is not much point in xine-lib using buggy alsa calls, until the bugs get fixed. CVS patchset: 5339 CVS date: 2003/09/04 00:37:31
2003-09-02Fix the device used for stereo output to "front".James Courtier-Dutton
The old default of "default" seems to act strangely. People were getting errors like: - audio_alsa_out: buffer time not available CVS patchset: 5330 CVS date: 2003/09/02 01:28:23
2003-09-01Add proper support for 4.1 and 5 channel setups.James Courtier-Dutton
For 4.1, the output comes out on 3 stereo jacks, but the Center has been mixed with the Front speakers. For 5, the LFE channel has been dropped. CVS patchset: 5324 CVS date: 2003/09/01 04:08:41
2003-09-01Allow a52 passthru to be switchied on and off without having to exit xine.James Courtier-Dutton
One has to stop playing, and then restart playing for it to activate. CVS patchset: 5323 CVS date: 2003/09/01 00:51:45
2003-08-31Be a little more flexible with number of periods.James Courtier-Dutton
try 8, but accept other values recommended by the card. CVS patchset: 5322 CVS date: 2003/08/31 17:56:24
2003-08-28Fix bug in demux_mpeg_pes.cJames Courtier-Dutton
Make sure it waits for a "program_stream_pack_header" before demuxing anything else. CVS patchset: 5315 CVS date: 2003/08/28 16:42:07
2003-08-26Fix long standing problem with alsa not working on some audio cardsJames Courtier-Dutton
when using 6 analogue channels for output. CVS patchset: 5311 CVS date: 2003/08/26 02:37:21
2003-08-09More descriptive error.James Courtier-Dutton
CVS patchset: 5265 CVS date: 2003/08/09 23:11:42
2003-07-20More USB soundcard updates.James Courtier-Dutton
CVS patchset: 5199 CVS date: 2003/07/20 12:29:18
2003-07-20Improve playback on USB sound cards.James Courtier-Dutton
These changes improve xine's response to the removal of a USB cable while playing audio. Further changes will need to happen so as to allow sound output to continue when the USB cable is plugged back in, without having to stop the media stream. To enable that, when xine detects that the sound card is not there any more, it will have to close both pcm and mixer, so that the kernel can release USB resources, then when the USB cable is plugged back in, the pcm and mixer are opened again. This code might also modify what xine does in underrun situations, so this code might need to be changed again. CVS patchset: 5196 CVS date: 2003/07/20 10:34:29
2003-07-19typo?Michael Roitzsch
CVS patchset: 5186 CVS date: 2003/07/19 11:58:32
2003-07-18made alsa-lib silent with non DEBUG buildsDaniel Caujolle-Bert
CVS patchset: 5174 CVS date: 2003/07/18 20:51:51
2003-07-02Update xine to use new alsa api.James Courtier-Dutton
CVS patchset: 5121 CVS date: 2003/07/02 12:56:10
2003-06-22some additional pthread_*_destroy() callsMichael Roitzsch
(based on the implementation, this might fix memleaks on some platforms, although I doubt that this is the case here) CVS patchset: 5091 CVS date: 2003/06/22 17:10:41
2003-06-18Daniel's patch for audio level reporting with alsaMichael Roitzsch
CVS patchset: 5064 CVS date: 2003/06/18 12:59:39
2003-06-06Add a new mmap mode to audio alsa output.James Courtier-Dutton
Look for config item "audio.alsa_mmap_enable". 0 = use normal mode, 1 = use mmap mode. CVS patchset: 5008 CVS date: 2003/06/06 14:01:11
2003-04-23check type of mixer element before trying to use itJames Stembridge
CVS patchset: 4655 CVS date: 2003/04/23 10:39:33
2003-04-17using non-blocking open mode, in order to avoid infinite waiting when theSiggi Langauf
ALSA device is busy (eg. in ise by ESD) CVS patchset: 4631 CVS date: 2003/04/17 17:04:12
2003-03-17do not skip the whole format detection, if verbosity is lowMichael Roitzsch
CVS patchset: 4436 CVS date: 2003/03/17 15:17:08
2003-03-15mute default console outputJames Stembridge
CVS patchset: 4425 CVS date: 2003/03/15 14:32:18
2003-03-15should do snd_pcm_prepare after snd_pcm_drop as otherwise we are left in ↵James Stembridge
SND_PCM_STATE_SETUP - fixes bad state errors when seeking CVS patchset: 4423 CVS date: 2003/03/15 13:50:58
2003-03-04fix compiler warnings at least in xine's native codeMichael Roitzsch
CVS patchset: 4330 CVS date: 2003/03/04 10:30:27
2003-02-28Xine assert() replacement:Stephen Torri
All assert() function calls, with exceptions of libdvdread and libdvdnav, have been replaced with XINE_ASSERT. Functionally XINE_ASSERT behaves just likes its predecesor but its adding the ability to print out a stack trace at the point where the assertion fails. So here are a few examples. assert (0); This use of assert was found in a couple locations most favorably being the default case of a switch statement. This was the only thing there. So if the switch statement was unable to find a match it would have defaulted to this and the user and the developers would be stuck wonder who died and where. So it has been replaced with XINE_ASSERT(0, "We have reach this point and don't have a default case"); It may seem a bit none descriptive but there is more going on behind the scene. In addition to checking a condition is true/false, in this case '0', the XINE_ASSERT prints out: <filename>:<function name>:<line number> - assertion '<assertion expression>' failed. <description> An example of this might be: input_dvd.c:open_plugin:1178 - assertion '0' failed. xine_malloc failed!!! You have run out of memory XINE_ASSERT and its helper function, print_trace, are found in src/xine-utils/xineutils.h CVS patchset: 4301 CVS date: 2003/02/28 02:51:47
2002-12-21- add buf->decoder_info_ptr: portability for systems where pointer hasMiguel Freitas
different sizeof than integer. - add extra_info structure to pass informations from input/demuxers down to the output frame. this can be used, for example, to pass the frame number of a frame (when known by decoder). also, immediate benefict is that we now have a slider which really shows the current position of the playing stream. new fields can be added to extra_info keeping binary compatibility - bumpy everybody's api versions CVS patchset: 3603 CVS date: 2002/12/21 12:56:44
2002-11-20engine modifications to allow post plugin layer:Michael Roitzsch
* new public output interface xine_{audio,video}_port_t instead of xine_{ao,vo}_driver_t, old names kept as aliases for compatibility * modified the engine to allow multiple streams per output * renaming of some internal structures according to public changes * moving SCR out of per-stream-metronom into a global metronom_clock_t residing in xine_t and therefore easily available to the output layer * adapting all available plugins (note to external projects: the compiler will help you a lot, if a plugin compiles, it is adapted, because all changes add new parameters to some functions) * bump up all interface versions because of xine_t and xine_stream_t changes CVS patchset: 3312 CVS date: 2002/11/20 11:57:38
2002-10-24Fix some log messages in audio_alsa_out.cJames Courtier-Dutton
Fix input_dvd.c for new config file loading before init_class(). CVS patchset: 2982 CVS date: 2002/10/24 13:52:56
2002-10-18Move alsa audio over to new api.James Courtier-Dutton
CVS patchset: 2848 CVS date: 2002/10/18 13:13:30
2002-10-12Make flush of audio work properly.James Courtier-Dutton
CVS patchset: 2813 CVS date: 2002/10/12 10:36:50
2002-10-10Audio out reorganisation to improve sync.James Courtier-Dutton
Tested with alsa09 and oss. CVS patchset: 2807 CVS date: 2002/10/10 13:12:17
2002-09-16Introduce a deep copy in the xine_config_lookup functions.James Courtier-Dutton
Care must be taken to make sure xine_cfg_entry_t is all zeros before any calls to xine_config_lookup functions. CVS patchset: 2673 CVS date: 2002/09/16 15:09:36
2002-09-16Fix a bug in audio_alsa_out.cJames Courtier-Dutton
This should fix all those audio passthru problems. CVS patchset: 2671 CVS date: 2002/09/16 12:27:08
2002-09-05make all the plugin init functions staticMichael Roitzsch
(geez this was a job) CVS patchset: 2616 CVS date: 2002/09/05 20:44:38
2002-09-04merging in the new_api branch ... unfortunately video_out / vo_scale is ↵Guenter Bartsch
broken now ... matthias/miguel: please fix it :-) CVS patchset: 2606 CVS date: 2002/09/04 23:31:05
2002-07-31Fix endian issue by Bastien NoceraPhilipp Hahn
CVS patchset: 2372 CVS date: 2002/07/31 06:29:08
2002-07-08Request period_TIME instead of period_SIZEPhilipp Hahn
CVS patchset: 2228 CVS date: 2002/07/08 15:16:11
2002-07-03Add function descriptions because I am tired of looking them up eacg timePhilipp Hahn
CVS patchset: 2203 CVS date: 2002/07/03 07:54:27