Update frame size after detecting the directsound output format

This commit is contained in:
Chris Robinson
2008-01-25 17:05:14 -08:00
parent 5f1c0450b3
commit b4ad3186dd
+2
View File
@@ -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);