[MPlayer-users] Re: BUG?: ao_alsa freezes after playing the first audio block
Sascha Sommer
saschasommer at freenet.de
Fri Feb 10 18:03:00 CET 2006
On Friday 10 February 2006 17:30, Clemens Ladisch wrote:
> Sascha Sommer wrote:
> > Whenever I'm playing ... audio with a samplerate of 16000Hz and below
> > MPlayer freezes after the first audio block. This only happens with
> > ao alsa and only with small samplerates.
> >
> > I attached a log with some extra debug printfs at the end of the
> > get_delay, get_space and play_normal functions. As you can see
> > get_space always returns 0 even though the audio should have been
> > played already.
>
> get_space returns 0 when the actual free space is less than 1024 bytes.
> I don't know why; and this has been fixed in CVS.
> (It's the "if (ret < MIN_CHUNK_SIZE)" test at the end of get_space.)
>
I'm already using latest cvs of MPlayer +alsa-lib 1.0.11rc3
Another difference seems to be the chunksize. It is much smaller for the dmix
case. MPlayer is also adding a second channel for the hw:0,0. case.
alsa-init: requested format: 16000 Hz, 1 channels, 9
alsa-init: compiled for ALSA-1.0.11rc3
alsa-init: setup for 1/2 channel(s)
alsa-init: 1 soundcard found, using: hw:0,0
alsa-init: pcm opend in block-mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: requested format: 16000 Hz, 1 channels, 9
alsa-init: compiled for ALSA-1.0.11rc3
alsa-init: setup for 1/2 channel(s)
alsa-init: 1 soundcard found, using: default
alsa-init: pcm opend in block-mode
alsa-init: chunksize set to 341
alsa-init: fragcount=16
alsa-init: got buffersize=10922
Sascha
More information about the MPlayer-users
mailing list