ssize_t ret;
snd_pcm_plug_t *plug = (snd_pcm_plug_t*) &pcm->private;
if (snd_pcm_plug_direct(pcm, stream))
- return snd_pcm_seek(plug->slave, stream, offset);
+ return snd_pcm_stream_seek(plug->slave, stream, offset);
if (offset < 0) {
offset = snd_pcm_plug_slave_size(pcm, stream, -offset);
if (offset < 0)
if (offset < 0)
return offset;
}
- ret = snd_pcm_seek(plug->slave, stream, offset);
+ ret = snd_pcm_stream_seek(plug->slave, stream, offset);
if (ret < 0)
return ret;
return snd_pcm_plug_client_size(pcm, stream, ret);