diff options
author | Chris Robinson <[email protected]> | 2010-05-21 14:12:09 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-05-21 14:12:09 -0700 |
commit | 3676fdc4db55e04e70851d2818f8ca5f5b44e761 (patch) | |
tree | c2a76e2cdac1d8c8c3e96779148322f40d475714 /Alc/dsound.c | |
parent | e7a555a953061cd18858deb815de293c2321cdd2 (diff) |
Add mono and stereo channel masks for DSound output
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r-- | Alc/dsound.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c index 29e5b1cd..c6083d5b 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -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) { |