mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-31 13:40:35 +00:00
add warning during compilation
if ESTRPIPE == EPIPE
This commit is contained in:
parent
cff965be7e
commit
5723aa9241
1 changed files with 3 additions and 1 deletions
|
@ -351,7 +351,9 @@ static int fluid_alsa_handle_write_error (snd_pcm_t *pcm, int errval)
|
|||
// not sure why, maybe because this version of alsa doesnt support
|
||||
// suspending pcm streams. anyway, since EPIPE seems to be more
|
||||
// likely than ESTRPIPE, so ifdef it out in case.
|
||||
#if ESTRPIPE != EPIPE
|
||||
#if ESTRPIPE == EPIPE
|
||||
#warning "ESTRPIPE defined as EPIPE. This may cause trouble with ALSA playback."
|
||||
#else
|
||||
case -ESTRPIPE:
|
||||
if (snd_pcm_resume(pcm) != 0) {
|
||||
FLUID_LOG(FLUID_ERR, "Failed to resume the audio device");
|
||||
|
|
Loading…
Reference in a new issue