From 5337e682f6ec11bf80debad1a4275e129301c52e Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 18 Feb 2004 20:15:49 +0000 Subject: [PATCH] rewind returns error code rather than doing wrong operation --- src/pcm/pcm_dmix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c index ea810063..04f4ebc0 100644 --- a/src/pcm/pcm_dmix.c +++ b/src/pcm/pcm_dmix.c @@ -626,9 +626,13 @@ static int snd_pcm_dmix_pause(snd_pcm_t *pcm, int enable) static snd_pcm_sframes_t snd_pcm_dmix_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames) { +#if 0 /* FIXME: substract samples from the mix ring buffer, too? */ snd_pcm_mmap_appl_backward(pcm, frames); return frames; +#else + return -EIO; +#endif } static snd_pcm_sframes_t snd_pcm_dmix_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) -- 2.47.1