[MPlayer-dev-eng] alsa9_adds

Alex Beregszaszi alex at naxine.org
Tue Jul 2 21:50:54 CEST 2002


Hi,

> i added some improvements and fixes again to ao_alsa9.
> the main changes/adds are:
> 
> added get/set_sound controls
> 
> stripped down initalizing, cause most of the settings were unusefull
> and default settings seems to be ok.
> 
> changed play() again. i put write_to_buffer() to the beginning of the
> loop, so it seems more stable as before (less xruns).
> 
> outsourced xrun-handling.
> 
> added some cases to get_space() as xrun-handling, cause get_space() is
> the first which trys to access sound and if some xrun occured it simply
> stopped in the versions before.
> 
> added workaround if mplayer trys to call get_delay() without sound
> being init. (nosound crash).
> 
> added nonblock-mode: this should be the prefered mode cause mplayer
> should be the only app which uses the sounddevice and with nonblock
> all samples are written continously to the buffer without waiting for
> blocks are finished. cause i'm don't know if its
> really stable and if all hardware support it, i consider it as
> experimental. could be switched on with -noblock.
> 
> added mmap-mode: this is some kind of direct-write-transfer to memory
> areas (zero-copy), which sould be result in faster communication.
> till know only some kind of mmap-emulation is implemented but could be
> improved in future. cause im also don't know if its really stable on
> all hardware and it's not fully implemented i consider it as
> exeprimental. it could be probably switched on with -mmap.
> 
> i would add these opts to cfg-mplayer.h, don't know what the 'core'
> thinks about it? i see that there are 1000s of opts know, but its
> easier to switch on theese features by runtime and play with it as
> hardcode it in some config-header i think.
> 
> at least ao_alsa9 seems to be funtioning pretty well, cause the main
> 'bugs' are away, but i have tested it only with some creative cards.
> 
> alex if its no problem for you i will commit it to cvs (i found back
> may old login again :).
do it, but handle with care

-
alex



More information about the MPlayer-dev-eng mailing list