Fix WinMM backend compilation

This commit is contained in:
Chris Robinson 2011-05-03 17:12:05 -07:00
parent 679f2480c9
commit 0cce93a1f8

View File

@ -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);