Fix duplicated case value of ESTRPIPE on BSD

This commit is contained in:
papadave66 2021-09-08 16:05:15 +08:00 committed by evpobr
parent f1bfc717b1
commit f65e8bc9d1

View File

@ -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") ;