From 0ac634858324939a4ac2ef641f014b6b8ced684b Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Mon, 5 Jun 2000 11:38:02 +0000 Subject: [PATCH] Renamed status field in state --- aplay/aplay.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aplay/aplay.c b/aplay/aplay.c index bfbcb62..b5257e5 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -683,7 +683,7 @@ void playback_underrun(void) fprintf(stderr, "playback stream status error\n"); exit(EXIT_FAILURE); } - if (status.status == SND_PCM_STATUS_XRUN) { + if (status.state == SND_PCM_STATE_XRUN) { printf("underrun at position %u!!!\n", status.byte_io); if (snd_pcm_stream_prepare(pcm_handle, SND_PCM_STREAM_PLAYBACK)<0) { fprintf(stderr, "underrun: playback stream prepare error\n"); @@ -707,9 +707,9 @@ void capture_overrun(void) fprintf(stderr, "capture stream status error\n"); exit(EXIT_FAILURE); } - if (status.status == SND_PCM_STATUS_RUNNING) + if (status.state == SND_PCM_STATE_RUNNING) return; /* everything is ok, but the driver is waiting for data */ - if (status.status == SND_PCM_STATUS_XRUN) { + if (status.state == SND_PCM_STATE_XRUN) { printf("overrun at position %u!!!\n", status.byte_io); if (snd_pcm_stream_prepare(pcm_handle, SND_PCM_STREAM_CAPTURE)<0) { fprintf(stderr, "overrun: capture stream prepare error\n"); -- 2.47.1