summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-05-03 17:12:05 -0700
committerChris Robinson <[email protected]>2011-05-03 17:12:05 -0700
commit0cce93a1f861903dba1724bc8ba5dc1a3abf69bb (patch)
treeaa28f3c0ccba59497709e63e46ced954d06d713f
parent679f2480c9a66905b0a03c99e099b59bfd07879d (diff)
Fix WinMM backend compilation
-rw-r--r--Alc/winmm.c4
1 files 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);