mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 04:16:41 +01:00
Renamed status field in state
This commit is contained in:
parent
fb8e187f17
commit
0ac6348583
1 changed files with 3 additions and 3 deletions
|
@ -683,7 +683,7 @@ void playback_underrun(void)
|
||||||
fprintf(stderr, "playback stream status error\n");
|
fprintf(stderr, "playback stream status error\n");
|
||||||
exit(EXIT_FAILURE);
|
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);
|
printf("underrun at position %u!!!\n", status.byte_io);
|
||||||
if (snd_pcm_stream_prepare(pcm_handle, SND_PCM_STREAM_PLAYBACK)<0) {
|
if (snd_pcm_stream_prepare(pcm_handle, SND_PCM_STREAM_PLAYBACK)<0) {
|
||||||
fprintf(stderr, "underrun: playback stream prepare error\n");
|
fprintf(stderr, "underrun: playback stream prepare error\n");
|
||||||
|
@ -707,9 +707,9 @@ void capture_overrun(void)
|
||||||
fprintf(stderr, "capture stream status error\n");
|
fprintf(stderr, "capture stream status error\n");
|
||||||
exit(EXIT_FAILURE);
|
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 */
|
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);
|
printf("overrun at position %u!!!\n", status.byte_io);
|
||||||
if (snd_pcm_stream_prepare(pcm_handle, SND_PCM_STREAM_CAPTURE)<0) {
|
if (snd_pcm_stream_prepare(pcm_handle, SND_PCM_STREAM_CAPTURE)<0) {
|
||||||
fprintf(stderr, "overrun: capture stream prepare error\n");
|
fprintf(stderr, "overrun: capture stream prepare error\n");
|
||||||
|
|
Loading…
Reference in a new issue