From 0cce93a1f861903dba1724bc8ba5dc1a3abf69bb Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 3 May 2011 17:12:05 -0700 Subject: Fix WinMM backend compilation --- Alc/winmm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/winmm.c b/Alc/winmm.c index c985ec0e..1191d490 100644 --- a/Alc/winmm.c +++ b/Alc/winmm.c @@ -48,7 +48,7 @@ typedef struct { HWAVEOUT Out; } hWaveHandle; - ALsizei Frequency; + ALuint Frequency; RingBuffer *pRing; } WinMMData; @@ -436,7 +436,7 @@ static ALCboolean WinMMResetPlayback(ALCdevice *device) device->UpdateSize = (ALuint)((ALuint64)device->UpdateSize * pData->Frequency / device->Frequency); - if(device->Frequency != streamInfo->sampleRate) + if(device->Frequency != pData->Frequency) { if((device->Flags&DEVICE_FREQUENCY_REQUEST)) AL_PRINT("WinMM does not support changing sample rates (wanted %dhz, got %dhz)\n", device->Frequency, pData->Frequency); -- cgit v1.2.3