summaryrefslogtreecommitdiff
path: root/src/audio_out/audio_sun_out.c
AgeCommit message (Collapse)Author
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-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-04-04Use size_t for samples and seconds data in Sun audio plugin.Pascal S. de Kloe
2007-04-04Check for audio_info_t.output_muted member, rather than assuming it's not ↵Diego 'Flameeyes' Pettenò
available on NetBSD only. With this, it's not needed to check for OpenBSD too. Thanks to Pascal S. de Kloe for pointing at it.
2007-03-10Don't use Solaris workarounds on other OSes (namely NetBSD). Patch by Sergey ↵Diego 'Flameeyes' Pettenò
Svishchev, see bug #1667848. CVS patchset: 8658 CVS date: 2007/03/10 00:55:14
2006-12-19Mark string-type configuration items according to whether they're plainDarren Salt
strings or names of files, device nodes or directories. This information is available to front ends (via .num_value) so that they can present file/dir-open dialogue boxes if they so choose. Subtitle font selection is split up due to this. CVS patchset: 8425 CVS date: 2006/12/19 19:10:50
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-14Retain the mixer volume so that we can return a sensible value when the ↵Robin KAY
audio device is closed. CVS patchset: 8036 CVS date: 2006/06/14 15:44:54
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-04-11typo fixes from FrantisekMichael Roitzsch
CVS patchset: 6395 CVS date: 2004/04/11 15:27:19
2004-04-11thanks to Frantisek for finding the multiline string, but the space should ↵Michael Roitzsch
be there CVS patchset: 6391 CVS date: 2004/04/11 14:41:09
2004-04-10Make xgettext and gcc happy. :-)František Dvořák
CVS patchset: 6386 CVS date: 2004/04/10 18:51:32
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
2003-12-14API version bounceSiggi Langauf
CVS patchset: 5912 CVS date: 2003/12/14 22:13:22
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-29AUDIODEV patch by Mitch@0Bits.COMMiguel Freitas
CVS patchset: 5817 CVS date: 2003/11/29 15:41:37
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-10-06some housekeeping and compiler warningsMichael Roitzsch
CVS patchset: 5455 CVS date: 2003/10/06 15:27:10
2003-03-07remove verbose sun audio driver messagesJuergen Keil
CVS patchset: 4365 CVS date: 2003/03/07 20:28:42
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-11-02Fix "Volume" support in the sun audio driver, the ui now wants to operateJuergen Keil
on AO_PROP_MIXER_VOL CVS patchset: 3147 CVS date: 2002/11/02 14:39:51
2002-10-22Re-enable the sun audio driverJuergen Keil
CVS patchset: 2935 CVS date: 2002/10/22 16:46:17
2002-10-07- Sun audio output plugin is able to play 8-bit sound. Announce this inJuergen Keil
the driver's capabilities flag word. - Several samples from Mike Melanson's testlist didn't work with the sun audio plugin on Solaris SPARC using the "audiocs" driver, because the clips use sample rates not directly supported by the sun audio hardware (e.g. 22478 Hz or 22254 Hz; the Sun audio HW supports 22050 Hz) Sound from: FILM format/Cinepak video/PCM audio ftp://ftp.mplayerhq.hu/MPlayer/samples/FILM/ and VOC format/PCM audio http://dod.hpi.net/samples/10M1PB1.VOC.bz2 should work now. CVS patchset: 2799 CVS date: 2002/10/07 14:14:30
2002-09-11new_api update for sun audio pluginJuergen Keil
CVS patchset: 2653 CVS date: 2002/09/11 18:19:53
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-06-12Remove no more needed XINE_LOGO.Daniel Caujolle-Bert
Internationalize all config related stuff. Fix not registered mrl ending in roq/film demuxer. Add bindtextdomain() calls in load_plugins (for audio/video out plugins). CVS patchset: 2066 CVS date: 2002/06/12 12:22:25
2002-04-06changes i forgot to commit with sound card drift patch. AO_MAX_GAP shouldMiguel Freitas
be used if driver can't provide realtime information for drift correction. CVS patchset: 1685 CVS date: 2002/04/06 14:19:12
2002-03-11Add a "control" method to the audio drivers, to allow pause/resume of theJuergen Keil
playback stream and to flush buffered samples from from the audio driver. (Currently implemented in the 'Sun' audio driver, + some untested code in the alsa 0.9 driver). The pause/resume method can be used by the engine to immediatelly stop playing buffered audio samples when the video is paused. Flushing buffered samples is useful when a video is stopped. And it'll be useful for better seeking support, too. CVS patchset: 1556 CVS date: 2002/03/11 19:58:00
2002-02-23Workaround added for a bug in Sun's audiocs driver (used for Ultra10, Ultra60,Juergen Keil
... onboard audio hw): re-block audio data to a multiple of 1024 bytes when writing to the audio device. When we write to the audiocs device with a length % 1024 != 0, the play.samples count returned in the AUDIO_GETINFO ioctl contains bogus information (not all samples are counted, count runs backwards, ...) causing video/audio syncronization issues with this audio hw. CVS patchset: 1511 CVS date: 2002/02/23 17:22:09
2001-11-24- Update the sun audio output plugin for new audio interface version 3,Juergen Keil
and register the default device to use for the new config scheme. - Don't flush audio samples on close CVS patchset: 1105 CVS date: 2001/11/24 16:32:35
2001-11-20eliminate xprintf in the sun audio driverJuergen Keil
CVS patchset: 1092 CVS date: 2001/11/20 17:32:22
2001-11-17Add 'xine_' prefix to all of xine-utils functions (what about cpuDaniel Caujolle-Bert
acceleration?). Merge xine-utils header files to a new one "xineutils.h". Update xine-lib C/headers to reflect those changes. dxr3 headers are no more installed ine $includdir, but $includdir/xine. CVS patchset: 1054 CVS date: 2001/11/17 14:26:36
2001-10-06Rescale AO_PROP_*_VOL values from [0..100] range to Sun's [0..255] range.Juergen Keil
CVS patchset: 749 CVS date: 2001/10/06 13:49:49
2001-09-28O_NONBLOCK (posix) seems to be prefered to O_NDELAY or the kernelJuergen Keil
internal FNDELAY flag, for non blocking I/O on various platforms Now, a solaris user with OSS installed can build the xine oss audio plugin, too. CVS patchset: 707 CVS date: 2001/09/28 10:19:08
2001-09-23audio_fd not initialized, sun audio driver can close random filedescriptors.Juergen Keil
CVS patchset: 685 CVS date: 2001/09/23 15:24:53
2001-09-14Fix xine --help audio plugin sensing.James Courtier-Dutton
CVS patchset: 635 CVS date: 2001/09/14 20:44:01
2001-09-06Add support for unsigned 8-bit audio formatJuergen Keil
CVS patchset: 572 CVS date: 2001/09/06 12:17:12
2001-09-01Flush buffered audio samples on audio driver closeJuergen Keil
Add 'static_delay' code, (same as OSS audio driver) CVS patchset: 540 CVS date: 2001/09/01 17:54:52
2001-08-24fixed esd / gap support (configureable), coding style enforcementGuenter Bartsch
CVS patchset: 475 CVS date: 2001/08/24 01:05:30
2001-08-23Update Sun audio driver to new audio code.Juergen Keil
CVS patchset: 469 CVS date: 2001/08/23 15:21:07
2001-08-14audio output plugin priority handling, based on patch provided by Philip ↵Guenter Bartsch
Stadermann CVS patchset: 423 CVS date: 2001/08/14 01:38:17
2001-06-26last_audio_vpts stuff added to sun audio driverJuergen Keil
CVS patchset: 234 CVS date: 2001/06/26 18:47:13
2001-06-23fixed race between metronom and xine engine, small audio plugin api change ↵Guenter Bartsch
to improve responsiveness (unfinished), small demux_mpeg_block bugfix (alignment for DVD plugin) CVS patchset: 218 CVS date: 2001/06/23 19:45:47