cwAudioDeviceAlsa.cpp : Removed pre-proc guards around SNDPCM_PRIVATE1

This commit is contained in:
kevin 2020-04-08 20:23:38 -04:00
parent 9f56f26ff7
commit a27293c26f

View File

@ -166,9 +166,7 @@ namespace cw
case SND_PCM_STATE_PAUSED: return "paused";
case SND_PCM_STATE_SUSPENDED: return "suspended";
case SND_PCM_STATE_DISCONNECTED: return "disconnected";
#if defined(OS_64) // SND_PCM_STATE_PRIVATE1 is not defined on Rasp. Pi. which also happens to be 32bit OS.
case SND_PCM_STATE_PRIVATE1: return "private1";
#endif
}
return "<invalid>";
@ -493,9 +491,7 @@ namespace cw
case SND_PCM_STATE_DRAINING:
case SND_PCM_STATE_PAUSED:
case SND_PCM_STATE_DISCONNECTED:
#if defined(OS_64) // SND_PCM_STATE_PRIVATE1 is not defined on Rasp. Pi. which also happens to be 32bit OS.
case SND_PCM_STATE_PRIVATE1:
#endif
//case SND_PCM_STATE_LAST:
break;
}
@ -876,9 +872,7 @@ namespace cw
case SND_PCM_STATE_DRAINING:
case SND_PCM_STATE_PAUSED:
case SND_PCM_STATE_DISCONNECTED:
#if defined(OS_64) // SND_PCM_STATE_PRIVATE1 is not defined on Rasp. Pi. which also happens to be 32bit OS.
case SND_PCM_STATE_PRIVATE1:
#endif
continue;
case SND_PCM_STATE_RUNNING: