[MPlayer-dev-eng] alsa: undef'ing SET_CHUNKSIZE garbles audio
Zsolt Barat
joy at streamminister.de
Tue Jul 13 22:26:50 CEST 2004
Reimar Döffinger wrote:
> Hi,
>
>>> I've narrowed it down to the line in ao_alsa.c where SET_CHUNKSIZE
>>> was previously #defined, and now #undef'ed. Chaning this line back to
>>> #define SET_CHUNKSIZE
>>> clears up my audio.
>>
>
> That was changed back, but don't ask me about details...
>
>
chunksize sets the audio buffersize explicitly
(buffersize=fragmentsize*chuncksize). i thought it isn`t needed cause
without it, the best "default" buffersize for each driver is set. it
seems that it is needed under some circumstances so its back again.
btw it affects the realtime behaviour of alsa. if the chunksize
(buffersize) is low it is more responsive. the alsa-defaults seems to be
good for audio-only-apps but not for "movie"-players like mplayer. it
explains also why fuzzling around with system settings or moving the
mouse could produce some crickles. the audio-buffer was simply empty ;).
greetings
zsolt
More information about the MPlayer-dev-eng
mailing list