From 5f1c0450b328f77d637690e2221a9de21d909811 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 25 Jan 2008 16:38:37 -0800 Subject: Remove unnecessary Channels field --- Alc/dsound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/dsound.c') diff --git a/Alc/dsound.c b/Alc/dsound.c index b5796fd9..a05c4034 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -199,7 +199,7 @@ static ALCboolean DSoundOpenPlayback(ALCdevice *device, const ALCchar *deviceNam } OutputType.wFormatTag = WAVE_FORMAT_PCM; - OutputType.nChannels = device->Channels; + OutputType.nChannels = aluChannelsFromFormat(device->Format); OutputType.wBitsPerSample = aluBytesFromFormat(device->Format) * 8; OutputType.nBlockAlign = OutputType.nChannels*OutputType.wBitsPerSample/8; OutputType.nSamplesPerSec = device->Frequency; -- cgit v1.2.3