From b4ad3186dd0e1ce8103d6266468e5a3314d288ff Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 25 Jan 2008 17:05:14 -0800 Subject: Update frame size after detecting the directsound output format --- Alc/dsound.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Alc') 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); -- cgit v1.2.3