static snd_pcm_sframes_t snd_pcm_file_rewindable(snd_pcm_t *pcm) { snd_pcm_file_t *file = pcm->private_data; snd_pcm_sframes_t res = snd_pcm_rewindable(pcm); snd_pcm_sframes_t n = snd_pcm_bytes_to_frames(pcm, file->wbuf_used_bytes); if (res > n) res = n; return res; }
snd_pcm_sframes_t snd_pcm_generic_rewindable(snd_pcm_t *pcm) { snd_pcm_generic_t *generic = pcm->private_data; return snd_pcm_rewindable(generic->slave); }