From: Jaroslav Kysela Date: Wed, 18 Feb 2004 20:15:49 +0000 (+0000) Subject: rewind returns error code rather than doing wrong operation X-Git-Tag: v1.0.3~11 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=5337e682f6ec11bf80debad1a4275e129301c52e;p=alsa-lib.git rewind returns error code rather than doing wrong operation --- 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)