]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Use internal snd_pcm_forward() version...
authorJaroslav Kysela <perex@perex.cz>
Fri, 7 Mar 2003 18:46:25 +0000 (18:46 +0000)
committerJaroslav Kysela <perex@perex.cz>
Fri, 7 Mar 2003 18:46:25 +0000 (18:46 +0000)
src/pcm/pcm_file.c
src/pcm/pcm_hooks.c
src/pcm/pcm_meter.c
src/pcm/pcm_multi.c
src/pcm/pcm_plugin.c
src/pcm/pcm_share.c

index bcedc0e2c4605cef7c52caebf57e3369b33ad594..68dd696972a7f993a6f28f11417d8c59736bc8d7 100644 (file)
@@ -253,7 +253,7 @@ static snd_pcm_sframes_t snd_pcm_file_forward(snd_pcm_t *pcm, snd_pcm_uframes_t
        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;
index dd88a564d76630ca9d5ce1f56a00fafba637254a..160f6106c61658f47573f57120dc3dbd1c44d705 100644 (file)
@@ -173,7 +173,7 @@ static snd_pcm_sframes_t snd_pcm_hooks_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t
 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)
index 0858382ca4cf7c56028154d378a61c8b131987f4..001530b74df03e232a45b671d93f90b7e81bc443 100644 (file)
@@ -399,7 +399,7 @@ static snd_pcm_sframes_t snd_pcm_meter_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t
 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;
index 8416331341a8e40e40a0c367347313dff5801421..c41d60c9028a07d12977770dcd94fc495a880fe7 100644 (file)
@@ -505,7 +505,7 @@ static snd_pcm_sframes_t snd_pcm_multi_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t
                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)
@@ -523,7 +523,7 @@ static snd_pcm_sframes_t snd_pcm_multi_forward(snd_pcm_t *pcm, snd_pcm_uframes_t
        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;
index ce7130551b3fad07ff04bce4fe766a0d41ba3543..37c1fea6ad97e6b29ec57e5e8a7cf21655e2cc69 100644 (file)
@@ -324,7 +324,7 @@ snd_pcm_sframes_t snd_pcm_plugin_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frame
        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;
index 58f438eba7491450c4cabf923187e40e6c204547..3d2efb8b58e124926b963048442e69ab383d2c41 100644 (file)
@@ -1049,7 +1049,7 @@ static snd_pcm_sframes_t _snd_pcm_share_forward(snd_pcm_t *pcm, snd_pcm_uframes_
        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;