summaryrefslogtreecommitdiff
path: root/src/audio_out/audio_oss_out.c
AgeCommit message (Collapse)Author
2009-11-30Trim trailing space & reduce space+tab.Darren Salt
2008-11-20Fix using of the pointers, leak fixes in configfile.František Dvořák
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-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-03-12Cope with NetBSD, which apparently doesn't have SNDCTL_DSP_GETODELAY.Darren Salt
(Fall back on SNDCTL_DSP_GETOPTR.)
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-03-17Clean up configure checks for OSS support. Check for the various soundcard.h ↵Diego 'Flameeyes' Pettenò
headers, and then include the best one that has been found on the system. Check for definition of SNDCTL_DSP_SETFRAGMENT in those headers. Check for the correct request parameter type for ioctl(), as also modern Linux uses unsigned long. Don't list all the big endian machines (as they aren't reliable to list anyway, some of them might work with both endians), use WORDS_BIGENDIAN instead. CVS patchset: 8697 CVS date: 2007/03/17 06:59:31
2007-03-16Fix FreeBSD PR 91728 (problem with ioctl() request parameter being unsigned ↵Diego 'Flameeyes' Pettenò
long rather than int). This patch is less invasive and portable. CVS patchset: 8676 CVS date: 2007/03/16 17:13:57
2007-03-09Use OSS 3.0 API, and retain compatibility with older versions. Patch by ↵Diego 'Flameeyes' Pettenò
Albert Lee. CVS patchset: 8651 CVS date: 2007/03/09 23:56:42
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-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-06-02Various static/const fixes from Gentoo.Darren Salt
CVS patchset: 8009 CVS date: 2006/06/02 22:18:56
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
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-23do not close the mixer prematurelyMichael Roitzsch
CVS patchset: 7149 CVS date: 2004/11/23 14:40:23
2004-10-29use monotonic clock when availableMiguel Freitas
CVS patchset: 7087 CVS date: 2004/10/29 23:11:37
2004-10-08open and close the mixer device together with the PCM deviceMichael Roitzsch
the DXR3's mixer device sometimes takes too long to open, this will keep the dirver_lock in audio out loop occupied and thus stalls playback; since xine-ui regularly polls the mixer setting, this results in rare but annoying audio dropouts CVS patchset: 7020 CVS date: 2004/10/08 20:32:03
2004-06-03this include is obsolete, becauseMichael Roitzsch
1. for current systems, including this is a noop 2. it was used a some time ago to check for CONFIG_DEVFS_FS, but we do not check for this any more, but autodetect devfs at runtime and it is reported by John Nielsen to break builds on some systems CVS patchset: 6633 CVS date: 2004/06/03 12:56:25
2004-05-07extend help string for speaker arrangementMichael Roitzsch
CVS patchset: 6494 CVS date: 2004/05/07 13:37:00
2004-04-30Add "Speaker arrangement" config item support to oss as well.James Courtier-Dutton
Only oss and alsa used the old multi channel config items. CVS patchset: 6467 CVS date: 2004/04/30 12:57:47
2004-04-26Ooops, no debugging and moreMichael Roitzsch
CVS patchset: 6444 CVS date: 2004/04/26 18:01:06
2004-04-26it is now possible to select a different mixer numberMichael Roitzsch
CVS patchset: 6443 CVS date: 2004/04/26 17:57:08
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-18Fix more messagesPhilipp Hahn
CVS patchset: 6287 CVS date: 2004/03/18 09:07:00
2004-03-04autoscan devfs patch from SteveFrantišek Dvořák
CVS patchset: 6216 CVS date: 2004/03/04 16:06:02
2004-01-01unused variableMichael Roitzsch
CVS patchset: 5969 CVS date: 2004/01/01 15:55:24
2003-12-31fix driver initialization on big endian platforms that don't support littleSiggi Langauf
endian audio samples CVS patchset: 5964 CVS date: 2003/12/31 12:05:26
2003-12-14API version bounceSiggi Langauf
CVS patchset: 5912 CVS date: 2003/12/14 22:13:22
2003-12-13- check that setting the "bits per sample" was what we asked for even if the ↵Bastien Nocera
ioctl works (fixes playback of 8 bits sounds on i810 soundcards) CVS patchset: 5904 CVS date: 2003/12/13 19:22:33
2003-12-07- don't segfault when the audio device isn't availableBastien Nocera
CVS patchset: 5857 CVS date: 2003/12/07 00:25:52
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-26lprintf cleanup, pass I.Daniel Caujolle-Bert
CVS patchset: 5796 CVS date: 2003/11/26 19:43:26
2003-10-19Try to follow audio_out api.Thibaut Mattern
Thanks to Daniel for the patch. Bastien: please test CVS patchset: 5542 CVS date: 2003/10/19 13:40:32
2003-10-06some housekeeping and compiler warningsMichael Roitzsch
CVS patchset: 5455 CVS date: 2003/10/06 15:27:10
2003-06-02since this might be dangerous to speakers, we should increase the experience ↵Michael Roitzsch
level of this option CVS patchset: 4999 CVS date: 2003/06/02 16:41:10
2003-06-01Work around for users with an oss sound card with spdif, but the soundJames Courtier-Dutton
card incorrectly reports AFMT_AC3 as being absent. In effect, this forces xine to send non-audio AC3 and DTS data to the sound card, without ever knowing if the spdif is working or not. Can cause horrible noise to come out of speakers, and might even damage speakers. CVS patchset: 4995 CVS date: 2003/06/01 22:48:26
2003-03-27oss verbosity patch by Anders WieheSiggi Langauf
CVS patchset: 4495 CVS date: 2003/03/27 11:39:23
2003-03-06steps toward muting xine's console output by defaultGuenter Bartsch
CVS patchset: 4345 CVS date: 2003/03/06 16:49:30
2003-02-08GETOPTR works _much_ better now (at least on my system).Miguel Freitas
wrap handling not tested yet. CVS patchset: 4117 CVS date: 2003/02/08 15:14:45
2003-02-01log output, copyright, some drivers produce negative delays, catch thatGuenter Bartsch
CVS patchset: 4077 CVS date: 2003/02/01 14:33:06
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-28fix reading out mixer settingGuenter Bartsch
CVS patchset: 3385 CVS date: 2002/11/28 08:03:23
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-11-16- return -1 if there is no mixer available so that xine-ui gets theMichael Roitzsch
capabilities correct - after testing 8bit mode, switch back to 16bits, because some cards might not report all their capabilities otherwise (inspired by work of theo@kluter.net) CVS patchset: 3270 CVS date: 2002/11/16 11:39:10
2002-11-12audio_out.c takes care of locking again, so audio_oss_out.c doesn't need it ↵Guenter Bartsch
any more CVS patchset: 3246 CVS date: 2002/11/12 00:32:29