File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1000,8 +1000,6 @@ int audio_get (int a)
1000
1000
int n ;
1001
1001
#if USE_ALSA
1002
1002
int retries = 0 ;
1003
- #elif USE_SNDIO
1004
- int err ;
1005
1003
#endif
1006
1004
1007
1005
#if STATISTICS
@@ -1135,8 +1133,7 @@ int audio_get (int a)
1135
1133
while (adev [a ].inbuf_next >= adev [a ].inbuf_len ) {
1136
1134
1137
1135
assert (adev [a ].sndio_in_handle != NULL );
1138
- err = poll_sndio (adev [a ].sndio_in_handle , POLLIN );
1139
- if (err < 0 ) {
1136
+ if (poll_sndio (adev [a ].sndio_in_handle , POLLIN ) < 0 ) {
1140
1137
adev [a ].inbuf_len = 0 ;
1141
1138
adev [a ].inbuf_next = 0 ;
1142
1139
return (-1 );
@@ -1436,15 +1433,14 @@ int audio_flush (int a)
1436
1433
1437
1434
int k ;
1438
1435
unsigned char * ptr ;
1439
- int len , err ;
1436
+ int len ;
1440
1437
1441
1438
ptr = adev [a ].outbuf_ptr ;
1442
1439
len = adev [a ].outbuf_len ;
1443
1440
1444
1441
while (len > 0 ) {
1445
1442
assert (adev [a ].sndio_out_handle != NULL );
1446
- err = poll_sndio (adev [a ].sndio_out_handle , POLLOUT );
1447
- if (err < 0 ) {
1443
+ if (poll_sndio (adev [a ].sndio_out_handle , POLLOUT ) < 0 ) {
1448
1444
text_color_set (DW_COLOR_ERROR );
1449
1445
perror ("Can't write to audio device" );
1450
1446
adev [a ].outbuf_len = 0 ;
You can’t perform that action at this time.
0 commit comments