[MPlayer-dev-eng] [PATCH] smooth seeking with alsa:noblock
Jindrich Makovicka
makovick at kmlinux.fjfi.cvut.cz
Fri Mar 14 21:43:10 CET 2003
Arpi wrote:
>Hi,
>
>
>
>>this patch allows smooth seeking with alsa 0.9, similar to oss and sdl
>>outputs (just need to specify ao=alsa9:noblock). I tested it with mmap
>>also. It works by reading the count of remaining samples when doing
>>reset() and dropping the next incoming ones, avoiding the delays.
>>
>>
>
>hmm. why don't you drop the remained samples instead of the new ones,
>like the oss driver does? your method will result short (0.3-2 secs) period
>with new picture but old sound, it may be confusing and strange...
>
>
Sorry, the original code convinced me that it's not possible with alsa ;)
Just replacing snd_pcm_drain with snd_pcm_drop does the job and works
for both blocking and nonblocking IO.
--
Jindrich Makovicka
More information about the MPlayer-dev-eng
mailing list