AUDIO_CHANNELS_MONO/AUDIO_CHANNELS_STEREO not defined in some versions

of Solaris.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@513 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Matt Chapman 2003-10-28 02:33:52 +00:00
parent 083082f23b
commit 85d4ff2a21

View File

@ -124,11 +124,11 @@ wave_out_set_format(WAVEFORMATEX * pwfx)
if (pwfx->nChannels == 1) if (pwfx->nChannels == 1)
{ {
info.play.channels = AUDIO_CHANNELS_MONO; info.play.channels = 1;
} }
else if (pwfx->nChannels == 2) else if (pwfx->nChannels == 2)
{ {
info.play.channels = AUDIO_CHANNELS_STEREO; info.play.channels = 2;
g_samplewidth *= 2; g_samplewidth *= 2;
} }