]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: rate: add rewindable and forwardable callbacks
authorAlexander E. Patrakov <patrakov@gmail.com>
Thu, 12 Jun 2014 10:34:22 +0000 (16:34 +0600)
committerJaroslav Kysela <perex@perex.cz>
Fri, 13 Jun 2014 09:12:23 +0000 (11:12 +0200)
commit614a66bb2a94ee64e37935fed7a0adc1e822dc2e
treef9d85b3a5eb46631595772366a0cb99ae7945219
parent9c3086fb749cd5545be3f15cdde1592390006258
pcm: rate: add rewindable and forwardable callbacks

This commit does not fix nonsense values returned by the rewind and
forward callbacks. E.g., with period_size = 1024 and buffer_size = 4096,
an attempt to rewind 1024 samples from the nearly-full buffer returns
4090.

Due to these nonsense values, the current rate plugin should be treated
as non-rewindable. That's why the new callbacks return 0.

Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_rate.c