[MPlayer-dev-eng] [PATCH] Keep audio buffer for OSS

Attila Kinali attila at kinali.ch
Sun Aug 8 04:59:51 CEST 2004


On Mon, Aug 02, 2004 at 05:05:36PM +0200, Mikulas Patocka wrote:
> audio_pause and audio_resume should keep data in audio buffer. However
> they don't do it for OSS audio driver. This causes problem that if the
> audio buffer is X seconds large, the movie skips X seconds forward on each
> pause/unpause operation.
> 
> This patch fixes it --- it uses OSS trigger function (and falls back to
> old method if the driver doesn't support it), so that it audio data are
> being held in the buffer.

What happens if an other application uses the sound card while MPlayer
is paused ? Will it first output the "saved" samples from MPlayer or
will it preserve them until we resume ?


			Attila Kinali




More information about the MPlayer-dev-eng mailing list