Add mono and stereo channel masks for DSound output

This commit is contained in:
Chris Robinson 2010-05-21 14:12:09 -07:00
parent e7a555a953
commit 3676fdc4db

View File

@ -346,6 +346,7 @@ static ALCboolean DSoundResetPlayback(ALCdevice *device)
format = AL_FORMAT_MONO16;
else if(aluBytesFromFormat(device->Format) == 4)
format = AL_FORMAT_MONO_FLOAT32;
OutputType.dwChannelMask = SPEAKER_FRONT_CENTER;
}
else if(speakers == DSSPEAKER_STEREO)
{
@ -355,6 +356,8 @@ static ALCboolean DSoundResetPlayback(ALCdevice *device)
format = AL_FORMAT_STEREO16;
else if(aluBytesFromFormat(device->Format) == 4)
format = AL_FORMAT_STEREO_FLOAT32;
OutputType.dwChannelMask = SPEAKER_FRONT_LEFT |
SPEAKER_FRONT_RIGHT;
}
else if(speakers == DSSPEAKER_QUAD)
{