]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Propagated field name change
authorAbramo Bagnara <abramo@alsa-project.org>
Tue, 16 May 2000 16:00:51 +0000 (16:00 +0000)
committerAbramo Bagnara <abramo@alsa-project.org>
Tue, 16 May 2000 16:00:51 +0000 (16:00 +0000)
aplay/aplay.c

index 3438d09be03271188a8d2eb23115530a5a590579..bb8b96c95c105e2a3d88cfad437022ccbcb763b7 100644 (file)
@@ -632,7 +632,7 @@ static void setup_print(snd_pcm_channel_setup_t *setup)
        fprintf(stderr, "frag_size: %d\n", setup->frag_size);
        fprintf(stderr, "frags: %d\n", setup->frags);
        fprintf(stderr, "frag_boundary: %d\n", setup->frag_boundary);
-       fprintf(stderr, "pos_boundary: %d\n", setup->pos_boundary);
+       fprintf(stderr, "pos_boundary: %d\n", setup->byte_boundary);
        fprintf(stderr, "msbits_per_sample: %d\n", setup->msbits_per_sample);
        if (setup->mode == SND_PCM_MODE_STREAM) {
                fprintf(stderr, "bytes_min: %d\n", setup->buf.stream.bytes_min);
@@ -726,7 +726,7 @@ void playback_write_error(void)
                exit(EXIT_FAILURE);
        }
        if (status.status == SND_PCM_STATUS_XRUN) {
-               printf("underrun at position %u!!!\n", status.pos_io);
+               printf("underrun at position %u!!!\n", status.byte_io);
                if (snd_pcm_channel_prepare(pcm_handle, SND_PCM_CHANNEL_PLAYBACK)<0) {
                        fprintf(stderr, "underrun: playback channel prepare error\n");
                        exit(EXIT_FAILURE);
@@ -752,7 +752,7 @@ void capture_read_error(void)
        if (status.status == SND_PCM_STATUS_RUNNING)
                return;         /* everything is ok, but the driver is waiting for data */
        if (status.status == SND_PCM_STATUS_XRUN) {
-               printf("overrun at position %u!!!\n", status.pos_io);
+               printf("overrun at position %u!!!\n", status.byte_io);
                if (snd_pcm_channel_prepare(pcm_handle, SND_PCM_CHANNEL_CAPTURE)<0) {
                        fprintf(stderr, "overrun: capture channel prepare error\n");
                        exit(EXIT_FAILURE);