n = snd_pcm_frames_to_bytes(pcm, frames);
if (file->wbuf_used_bytes + n > file->wbuf_size_bytes)
frames = snd_pcm_bytes_to_frames(pcm, file->wbuf_size_bytes - file->wbuf_used_bytes);
- err = snd_pcm_forward(file->slave, frames);
+ err = INTERNAL(snd_pcm_forward)(file->slave, frames);
if (err > 0) {
snd_pcm_uframes_t n = snd_pcm_frames_to_bytes(pcm, err);
file->wbuf_used_bytes += n;
static snd_pcm_sframes_t snd_pcm_hooks_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
{
snd_pcm_hooks_t *h = pcm->private_data;
- return snd_pcm_forward(h->slave, frames);
+ return INTERNAL(snd_pcm_forward)(h->slave, frames);
}
static int snd_pcm_hooks_resume(snd_pcm_t *pcm)
static snd_pcm_sframes_t snd_pcm_meter_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
{
snd_pcm_meter_t *meter = pcm->private_data;
- snd_pcm_sframes_t err = snd_pcm_forward(meter->slave, frames);
+ snd_pcm_sframes_t err = INTERNAL(snd_pcm_forward)(meter->slave, frames);
if (err > 0 && pcm->stream == SND_PCM_STREAM_PLAYBACK)
meter->rptr = *pcm->appl.ptr;
return err;
snd_pcm_uframes_t f = pos[i] - frames;
snd_pcm_sframes_t result;
if (f > 0) {
- result = snd_pcm_forward(slave_i, f);
+ result = INTERNAL(snd_pcm_forward)(slave_i, f);
if (result < 0)
return result;
if ((snd_pcm_uframes_t)result != f)
memset(pos, 0, sizeof(pos));
for (i = 0; i < multi->slaves_count; ++i) {
snd_pcm_t *slave_i = multi->slaves[i].pcm;
- snd_pcm_sframes_t f = snd_pcm_forward(slave_i, frames);
+ snd_pcm_sframes_t f = INTERNAL(snd_pcm_forward)(slave_i, frames);
if (f < 0)
return f;
pos[i] = f;
else
sframes = frames;
snd_atomic_write_begin(&plugin->watom);
- sframes = snd_pcm_forward(plugin->slave, (snd_pcm_uframes_t) sframes);
+ sframes = INTERNAL(snd_pcm_forward)(plugin->slave, (snd_pcm_uframes_t) sframes);
if ((snd_pcm_sframes_t) sframes < 0) {
snd_atomic_write_end(&plugin->watom);
return sframes;
if ((snd_pcm_uframes_t)n > frames)
frames = n;
if (share->state == SND_PCM_STATE_RUNNING && frames > 0) {
- snd_pcm_sframes_t ret = snd_pcm_forward(slave->pcm, frames);
+ snd_pcm_sframes_t ret = INTERNAL(snd_pcm_forward)(slave->pcm, frames);
if (ret < 0)
return ret;
frames = ret;