aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/winmm.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-01-25 16:38:37 -0800
committerChris Robinson <[email protected]>2008-01-25 16:38:37 -0800
commit5f1c0450b328f77d637690e2221a9de21d909811 (patch)
treeab1a73f46ecb814b21359995c511b53acaff751f /Alc/winmm.c
parent04b62f77e37335be68d3e8c04c2cc7a354aef18c (diff)
Remove unnecessary Channels field
Diffstat (limited to 'Alc/winmm.c')
-rw-r--r--Alc/winmm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/winmm.c b/Alc/winmm.c
index 17570efc..60f958cb 100644
--- a/Alc/winmm.c
+++ b/Alc/winmm.c
@@ -209,8 +209,8 @@ static ALCboolean WinMMOpenCapture(ALCdevice *pDevice, const ALCchar *deviceName
memset(&wfexCaptureFormat, 0, sizeof(WAVEFORMATEX));
wfexCaptureFormat.wFormatTag = WAVE_FORMAT_PCM;
- wfexCaptureFormat.nChannels = pDevice->Channels;
- wfexCaptureFormat.wBitsPerSample = pDevice->FrameSize / pDevice->Channels * 8;
+ wfexCaptureFormat.nChannels = aluChannelsFromFormat(pDevice->Format);
+ wfexCaptureFormat.wBitsPerSample = aluBytesFromFormat(pDevice->Format) * 8;
wfexCaptureFormat.nBlockAlign = pDevice->FrameSize;
wfexCaptureFormat.nSamplesPerSec = frequency;
wfexCaptureFormat.nAvgBytesPerSec = wfexCaptureFormat.nSamplesPerSec *