diff options
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); |