mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 01:49:53 +00:00
Fix duplicated case value of ESTRPIPE on BSD
This commit is contained in:
parent
f1bfc717b1
commit
f65e8bc9d1
@ -328,10 +328,12 @@ alsa_write_float (snd_pcm_t *alsa_dev, float *data, int frames, int channels)
|
|||||||
return 0 ;
|
return 0 ;
|
||||||
break ;
|
break ;
|
||||||
|
|
||||||
|
#if defined ESTRPIPE && ESTRPIPE != EPIPE
|
||||||
case -ESTRPIPE :
|
case -ESTRPIPE :
|
||||||
fprintf (stderr, "alsa_write_float: Suspend event.n") ;
|
fprintf (stderr, "alsa_write_float: Suspend event.n") ;
|
||||||
return 0 ;
|
return 0 ;
|
||||||
break ;
|
break ;
|
||||||
|
#endif
|
||||||
|
|
||||||
case -EIO :
|
case -EIO :
|
||||||
puts ("alsa_write_float: EIO") ;
|
puts ("alsa_write_float: EIO") ;
|
||||||
|
Loading…
Reference in New Issue
Block a user