summaryrefslogtreecommitdiff
path: root/src/audio_out/audio_alsa_out.c
AgeCommit message (Collapse)Author
2010-07-29Spelling fixes.Darren Salt
Source: informational messages generated by lintian.
2010-04-11Fix a flaw on recovering from ALSA-reported errors in ao_alsa_delay()Frank Enderle
I noticed some alsa dropouts (losing audio) while hunting a bug which has been related to a broken streaming server. This resulted in buffers running empty and therefore showed some issues in the ALSA driver not correctly applying some recovery procedures provided by ALSA itself (snd_pcm_recover() and friends).
2009-11-30Trim trailing space & reduce space+tab.Darren Salt
2008-06-12Fix up reporting of supported formats by the ALSA & OSS output plugins.Darren Salt
Adjust translations for the spacing changes etc. which this introduces.
2008-05-07xine_xmalloc() deprecation: replace its use with static and non-zero size.Diego 'Flameeyes' Pettenò
The xine_xmalloc() function is going to be deprecated, as its behaviour is rarely needed as such, and it's thus misused. With this, almost all uses of xine_xmalloc() with static size (for instance the value returned by sizeof()) or with a size that is guaranteed not to be zero (like strlen()+1) are replaced with calls to either calloc(1, ...) or malloc(). malloc() is used whenever the allocated memory is going to be immediately overwritten, while calloc() is used in every other case, as it sets the whole memory area to zero. --HG-- extra : transplant_source : %8F%98%EC%02%1E%83%F0s%06X%83C%205Y%80%B12%CC%E1
2007-12-02Fixed ALSA close function to not discard all data that had been written but ↵Matthias Kretz
not played yet. When closing the pcm device make sure that everything that was written to the device actually gets played. This was the race we were seeing with Ogg Vorbis and wav playback where a delayed driver->close would fix playback. Notice that blocking mode needs to be used for snd_pcm_drain, otherwise the call would be a noop.
2007-11-10Delete most of the CVS $Id$/$Log$ lines.Darren Salt
--HG-- extra : transplant_source : %E0%D0%C5%8B%BEU%DD%24%5D7%1F%ADV%AD%EB%23%CBU%80%EB
2007-11-09Update FSF address on non-contributed code and COPYING files.Diego 'Flameeyes' Pettenò
For contributed code, leave whatever the version we last synced for is using to make simpler future syncs.
2007-06-08Add two missing alloca.h includes and clean up one other.Darren Salt
2007-06-04handle unplugged devices in audio_alsa_out (return -1) and in audio_out ↵Matthias Kretz
close the driver on a return value <0
2007-04-07Use CC_ATTRIBUTE_FORMAT; replace __attribute((format(printf, ...))) accordingly.Darren Salt
2007-04-05Fixed current audio sync, delay was always 0.Thibaut Mattern
Checked snd_pcm_delay return code, and don't trust negative values.
2007-02-25alsa patches from Julian Scheel and Matthias KretzMiguel Freitas
CVS patchset: 8630 CVS date: 2007/02/25 22:33:25
2007-02-25Fix race condition in alsa audio out driver.Miguel Freitas
thanks Kirill Belokurov and Matthias Kretz CVS patchset: 8629 CVS date: 2007/02/25 21:54:03
2007-02-20Mark speaker arrangement array constant.Diego 'Flameeyes' Pettenò
CVS patchset: 8607 CVS date: 2007/02/20 00:04:50
2006-09-08fix switch from alsa/dmix 2.0 to 5.1 [bug #1226595]Miguel Freitas
CVS patchset: 8208 CVS date: 2006/09/08 20:40:34
2006-08-08fix segfault due bad vasprintf usageMiguel Freitas
CVS patchset: 8166 CVS date: 2006/08/08 03:16:23
2006-07-16malloc cleanups (based on a patch from Chris Brien).Darren Salt
Also use asprintf() where appropriate, since we now have our own version for where it's not present. CVS patchset: 8130 CVS date: 2006/07/16 16:18:09
2006-07-11Complete cleanup using pkg-config: no need to look for alsa/ or sys/, just ↵Diego 'Flameeyes' Pettenò
include asoundlib.h. CVS patchset: 8108 CVS date: 2006/07/11 03:11:51
2006-07-10Implement visibility support, available on GCC 4.0 and later and on some 3.4 ↵Diego 'Flameeyes' Pettenò
(through backports), to avoid exporting unneeded internal symbols, making plugins' loading faster and use of internal copies of libraries more solid. It should automatically fall back to the old way in GCCs that does not support -fvisibility=hidden, but has to be tested carefully. No issues were found in the months of testing in Gentoo, but this requires special attention anyway. CVS patchset: 8101 CVS date: 2006/07/10 22:08:12
2006-05-03Make various arrays and structures (mainly xine_plugin_info) const.Darren Salt
(Diego Pettenò) CVS patchset: 7985 CVS date: 2006/05/03 19:46:06
2006-04-21Add printf format attributes.Darren Salt
CVS patchset: 7977 CVS date: 2006/04/21 23:15:44
2006-01-27Adapt the engine to the new list code.Thibaut Mattern
CVS patchset: 7848 CVS date: 2006/01/27 07:46:09
2006-01-25* Patch from SuSE to fix alsa after hardware suspendMiguel Freitas
* Fix the ./configure --enable-static-xv parameter CVS patchset: 7844 CVS date: 2006/01/25 17:40:59
2005-09-24- remove have_alsa_1_0_9Miguel Freitas
- note about overlay cropping fix CVS patchset: 7740 CVS date: 2005/09/24 19:27:33
2005-07-31s/HAS_ALSA/HAVE_ALSA/Darren Salt
CVS patchset: 7704 CVS date: 2005/07/31 14:58:50
2005-07-31Summary: For alsa-lib version 1.0.9 or above, we can detect if the hardware ↵James Courtier-Dutton
can do resampling or not. If resampling is not supported in hardware, old alsa normally does software resampling, but the current alsa-lib software resampling is not very good quality, so as we can detect if the software resampler is being used, we can choose to use our own high quality resampler. TODO: This requires the addition of a new ./configure detection option HAS_ALSA_1_0_9 CVS patchset: 7702 CVS date: 2005/07/31 14:39:39
2004-12-27- and don't forget to set is_paused to 0 once we've resumedBastien Nocera
CVS patchset: 7306 CVS date: 2004/12/27 16:55:39
2004-12-27- don't try to RESUME if we're not paused, fixes a spurious warning on exitBastien Nocera
CVS patchset: 7305 CVS date: 2004/12/27 16:49:28
2004-12-22rename clashing snd_mixer_waitDaniel Caujolle-Bert
CVS patchset: 7293 CVS date: 2004/12/22 17:51:38
2004-12-20remove all local names beginning with double underscore, because C99Michael Roitzsch
reserves these names for use by the C implementation CVS patchset: 7288 CVS date: 2004/12/20 21:22:18
2004-12-12huge patch ahead: reorganizing config entries with automatic conversionMichael Roitzsch
and backwards compatible translation Sorry, I got a litte tired proof-reading the patch, so their might be bugs lurking around. I will give it some further examination and (as necessary) fixing tomorrow. CVS patchset: 7233 CVS date: 2004/12/12 22:00:47
2004-11-30Fix two errors in the volume <-> %age conversion functions:Darren Salt
- always round to nearest (one did so, but the other rounded down); - %age to volume: add the minimum value afterwards, don't subtract it from the value to be converted (else only min==0 works). CVS patchset: 7169 CVS date: 2004/11/30 19:47:03
2004-07-15- I shouldn't blindly commit...Bastien Nocera
plug:front: doesn't work for stereo, but plug:front:default does revert the changes for 4.0 and 5.1 surround as I don't know whether they work correctly with ":default" CVS patchset: 6799 CVS date: 2004/07/15 21:46:51
2004-07-15- remove the "default" keyword for default sound devices, as this keywordBastien Nocera
can break surround systems. It still allows for the default soundcard to be selected via /etc/asound.conf CVS patchset: 6797 CVS date: 2004/07/15 18:16:09
2004-07-14- change the default output device for stereo and surrounds to be "default"Bastien Nocera
rather than "0", so that the default sound output can be overriden easily using /etc/asound.conf CVS patchset: 6795 CVS date: 2004/07/14 23:29:09
2004-06-20this is supposedly a booleanMichael Roitzsch
CVS patchset: 6715 CVS date: 2004/06/20 15:04:19
2004-06-03close ↵Miguel Freitas
http://sourceforge.net/tracker/index.php?func=detail&aid=916089&group_id=9655&atid=109655 try to fix http://sourceforge.net/tracker/index.php?func=detail&aid=925723&group_id=9655&atid=109655 CVS patchset: 6634 CVS date: 2004/06/03 13:40:12
2004-05-23rename from AO_CAP_32BITS to AO_CAP_FLOAT32Michael Roitzsch
CVS patchset: 6581 CVS date: 2004/05/23 16:20:56
2004-05-15Some more updates for 24bit sound.James Courtier-Dutton
CVS patchset: 6545 CVS date: 2004/05/15 23:44:25
2004-05-15Minor adjustments to start adding 24bit and 32bit-Float audio sample support.James Courtier-Dutton
CVS patchset: 6544 CVS date: 2004/05/15 20:27:50
2004-05-07extend help string for speaker arrangementMichael Roitzsch
CVS patchset: 6494 CVS date: 2004/05/07 13:37:00
2004-04-30Implement a more user friendly "Speaker arrangement" config item.James Courtier-Dutton
CVS patchset: 6463 CVS date: 2004/04/30 03:07:33
2004-04-14don't give up at first mixer init failure.patch from Ronald Wahl <patchman ↵Daniel Caujolle-Bert
at users.sourceforge.net> CVS patchset: 6403 CVS date: 2004/04/14 21:30:32
2004-04-11typo fixes from FrantisekMichael Roitzsch
CVS patchset: 6395 CVS date: 2004/04/11 15:27:19
2004-04-10improving config help stringsMichael Roitzsch
* for alsa: do not register config entries multiple times just to get the value, use lookup_entry() * for directx: get rid of unused device_name * for OSS: remove mixer config, derive mixer name from device name CVS patchset: 6379 CVS date: 2004/04/10 14:53:42
2004-03-21Fix longstanding problem when using xine with alsa's dmix audio out plugin.James Courtier-Dutton
CVS patchset: 6292 CVS date: 2004/03/21 03:29:43
2004-03-20add a boolean "audio.alsa_hw_mixer" entry, on by default, to allow front-endsBastien Nocera
to disable the ALSA event thread CVS patchset: 6291 CVS date: 2004/03/20 20:45:18
2004-03-20Correct device names.James Courtier-Dutton
CVS patchset: 6290 CVS date: 2004/03/20 01:32:29
2004-03-19another try to fix mixer thread deadlock. Don't destroy mixer mutex too ↵Daniel Caujolle-Bert
early (thanks Thibaut!) CVS patchset: 6289 CVS date: 2004/03/19 13:17:47