aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/dsound.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r--Alc/dsound.c2
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);