diff options
author | Chris Robinson <[email protected]> | 2011-05-03 17:12:05 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-03 17:12:05 -0700 |
commit | 0cce93a1f861903dba1724bc8ba5dc1a3abf69bb (patch) | |
tree | aa28f3c0ccba59497709e63e46ced954d06d713f /Alc | |
parent | 679f2480c9a66905b0a03c99e099b59bfd07879d (diff) |
Fix WinMM backend compilation
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/winmm.c | 4 |
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); |