summaryrefslogtreecommitdiff
path: root/src/audio_out
AgeCommit message (Collapse)Author
2011-10-10Removed unneeded data from oss_driver_sPetri Hintukainen
2011-10-10audio_oss_out.c: fixed 'bytes_left' may be used uninitialized in this functionPetri Hintukainen
2011-07-18Fixed small typo in src/audio_out/audio_directx2_out (LP #810407)Kent Baxley
2011-10-03Prefix open_cloexec() and create_cloexec() with xine_, and add new ↵Chris Rankin
xine_socket_cloexec() function.
2011-10-01Mark simple file and socket descriptors as uninheritable.Chris Rankin
This patch creates two utility functions: int open_cloexec(pathname, flags) int create_cloexec(pathname, flags, mode) These return a file descriptor with the CLOEXEC flag set, to ensure that the descriptor is not inherited across a fork/exec operation. The sockets returned by: _x_io_tcp_connect_ipv4() _x_io_tcp_connect() now also have their CLOEXEC flag set.
2010-10-23mingw32-w64 port: '-no-undefined' partFrantišek Dvořák
- use -no-undefined flag only for building shared libraries (libxine, plugins) - plugins LDFLAGS unification - move -no-undefined into LDFLAGS_NOUNDEFINED - attributes.m4 fix
2010-08-21Pulseaudio volume control feedback (stream end)Günter Merz
During channel changes, the audio stream ends and a new stream begins. This in turn can lead to 'pa_stream_get_index' ending up in an assertion. Because of that, a check if there is a stream is a good idea.
2010-08-18Pulseaudio volume control feedbackGünter Merz
If xine volume is changed from outside the xine frontend, e.g. gnome sound preferences. xine-lib generates a XINE_EVENT_AUDIO_LEVEL event that fontends (like xine-ui) can use to update the volume level.
2010-07-29Spelling fixes.Darren Salt
Source: informational messages generated by lintian.
2010-07-08Set default volume value at init time (pulseaudio)Lorenzo Desole
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
2009-10-10Don't use deprecated JACK APIMatěj Laitl
xine-lib jack audio output plugin still uses deprecated jack_client_new() function. This function has been superseded by jack_client_open(). New API has an advantage that jackd is allowed to alter name of the client in case of ambiguity.
2009-09-28Incorrect int-to-float conversion in the JACK output pluginRemco Bloemen
Using bitmeter, I found that xine's jack output suffers from the problem mentioned at the bottom of bitmeter's home page. "Although JACK itself works entirely with IEEE floating point values the conversion to and from analog audio uses integers, as do popular audio storage technologies like DAT and Red Book CDs. For correct operation JACK software which uses such integers should use the same conversion ratios as JACK itself. e.g. 16-bit samples should be divided by exactly 32768. A common mistake is to choose the value 32767 instead. You can't hear this, or see it with ordinary meters, but the bitmeter shows a clear signature for audio processed in this way. The 8th bit of the mantissa (counting the rightmost as the 0th) is orange, indicating that an unusually high percentage of samples have this bit set." (from http://users.ecs.soton.ac.uk/njl98r/code/audio/bitmeter/ via Google cache)
2009-08-26Garbled sound with multichannel audio (using sndio)Brad Smith
At the moment playing multichannel audio via the sndio backend results in garbled sound. This disables the multichannel audio support until I have more time to look into a better and more appropriate fix.
2009-05-28Fix a recently-added POSIX incompatibility.Marc Dequènes (Duck)
2009-02-18Add support for new OpenBSD sound APIBrad Smith
2009-01-18Remove '#include "config.h"' from all public header files.Darren Salt
This requires that many other files include config.h themselves. Also convert <config.h> to "config.h".
2009-01-17Avoid libtool running ldconfig (where not needed) at install time.Darren Salt
2009-01-12Fix build of directx VO plugin.František Dvořák
Update for build with newer mingw compilation tools.
2008-09-17Mingw+MSys: NLS support, --enable-stdcall-fixupCarlo Bramini
It was not possible to compile some parts of XINE-LIB with NLS enabled. It's also a good idea to explicitely enable --enable-stdcall-fixup for solving a huge amount of warnings. Attached patch fixes these problems.
2008-11-20Fix using of the pointers, leak fixes in configfile.František Dvořák
2008-11-05Simpler code, no gaps during playback in DirectX(2) audio outputmringwal@vs22.inf.ethz.ch
The playback pointer did occasionally overrun the write pointer, which results in audible gaps in playback. To solve this, the slotted ringbuffer was replaced by a simple ringbuffer and the service threads now checks periodically if there is still data in the buffer instead of checking at the slots borders. --HG-- extra : transplant_source : %A1%12%60%B9%E4%AB%E7%7C%D7%D6%BD%7C%C6M%C9%94s%7F%BE%91
2008-10-17Replace configure test for PulseAudio version by cpp testMatthias Ringwald
Version 0.9.6 has PA_PROTOCOL_VERSION 10, version 0.9.7 has 11. This simplifies configure and limits the knowledge about PA versions to the audio output plug-in. This time, the patch includes configure.ac, too.
2008-06-14Replacement JACK pluginEd Wildgoose
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-09Use size_t to keep the value returned by strlen().Diego 'Flameeyes' Pettenò
When using a variable to store the result of strlen(), make sure its type is size_t just like the function returns, rather than using a smaller type like int. --HG-- extra : transplant_source : %B0%D5%3B%D7%1Dy%0A%7E%7D%7C%023%08%B2%CE%D3t%0B3%D7
2008-05-07Avoid memset() on newly allocated memory areas.Diego 'Flameeyes' Pettenò
If needed, use calloc() to allocate the area so that it's already reset by the time it returns.
2008-05-07Use asprintf() rather than malloc() + sprintf().Diego 'Flameeyes' Pettenò
Using asprintf() instead of malloc() + sprintf() reduces the lines of code in xine-lib (moving the allocation to the C library or asprintf replacement), makes it safer to access the string and can also improve performance whenever the value returned by a function was used as parameter, as before it had to run the function twice in almost every case (once for strlen(), once for sprintf()).
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
2008-04-14Make sure that muting/unmuting the audio without setting the volume does not ↵Diego 'Flameeyes' Pettenò
put the volume to zero.
2008-04-11Test for pulseaudio 0.9.7 to determine which muting method to use.Darren Salt
2008-04-11Remove an unnecessary volume scale conversion.Darren Salt
The value being converted is already of the correct type.
2008-04-04Updated PulseAudio driver (fixup)Lennart Poettering
The problem was basically that detection if PA was available happened in open() instead of open_plugin().
2008-04-01Updated PulseAudio driverLennart Poettering
It's basically a rework of the PulseAudio driver, fixing all the inherent races (and thus stability issues), adding proper surround sound support, support for proper muting and pause/resume. It also gets rid of all usleep() loops to make sure we don't wakeup more often than we need to. Also does a couple of other minor cleanups. This also increases the autoprobe priority to 12, above ALSA, to make sure that the Pulse plugin is preferred over ALSA if both are available. This is because we want to make sure that Xine-on-PA is preferred over Xine-on-ALSA-on-PA.
2008-03-12Cope with NetBSD, which apparently doesn't have SNDCTL_DSP_GETODELAY.Darren Salt
(Fall back on SNDCTL_DSP_GETOPTR.)
2008-02-15Don't unlock unconditionally the mainloop on failure.Diego 'Flameeyes' Pettenò
2008-01-01Avoid potential install-time mislinkage against libxine.so.2.Darren Salt
2007-12-10Simplify Pulse plugin reverting some of today's changes and going back from ↵Diego 'Flameeyes' Pettenò
there. Instead of using a thread to watch for completion, use mutexes where needed. Don't wait for operation completion for volume changes, they can happen asynchronously too.
2007-12-10Backport the PulseAudio plugin from 1.2 branch.Diego 'Flameeyes' Pettenò
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-16Rename the BE/LE/ME macros with a _X_ prefix, so they don't clash with ↵Diego 'Flameeyes' Pettenò
Solaris definitions.
2007-06-09Add $(LTLIBINTL) wherever objdump -R shows a dependency on gettext functions.Darren Salt
Some plugins may have been missed due to them not being built here.
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-06Remove executable status from all files which shouldn't have it.Darren Salt
2007-04-06Remove a redundant comment.Diego 'Flameeyes' Pettenò