diff options
author | Chris Robinson <[email protected]> | 2008-01-25 17:05:14 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-01-25 17:05:14 -0800 |
commit | b4ad3186dd0e1ce8103d6266468e5a3314d288ff (patch) | |
tree | 8ebe252a24d6d105ea1ba90dd751dd0fc9d8efda /Alc/dsound.c | |
parent | 5f1c0450b328f77d637690e2221a9de21d909811 (diff) |
Update frame size after detecting the directsound output format
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r-- | Alc/dsound.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c index a05c4034..633a78ff 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -197,6 +197,8 @@ static ALCboolean DSoundOpenPlayback(ALCdevice *device, const ALCchar *deviceNam else device->Format = AL_FORMAT_71CHN16; } + device->FrameSize = aluBytesFromFormat(device->Format) * + aluChannelsFromFormat(device->Format); OutputType.wFormatTag = WAVE_FORMAT_PCM; OutputType.nChannels = aluChannelsFromFormat(device->Format); |