this will fix the slow playback problem on mplayer.
- the delay calculation is optimized a bit.
}
status->appl_ptr = *pcm->appl.ptr;
status->hw_ptr = *pcm->hw.ptr;
- status->avail = pcm->buffer_size;
- snd_pcm_plugin_delay(pcm, &status->delay);
+ if (plugin->client_frames) {
+ status->delay = plugin->client_frames(pcm, status->delay);
+ status->avail = plugin->client_frames(pcm, status->avail);
+ }
if (!snd_atomic_read_ok(&ratom)) {
snd_atomic_read_wait(&ratom);
goto _again;