Fix WinMM backend compilation
This commit is contained in:
parent
679f2480c9
commit
0cce93a1f8
@ -48,7 +48,7 @@ typedef struct {
|
|||||||
HWAVEOUT Out;
|
HWAVEOUT Out;
|
||||||
} hWaveHandle;
|
} hWaveHandle;
|
||||||
|
|
||||||
ALsizei Frequency;
|
ALuint Frequency;
|
||||||
|
|
||||||
RingBuffer *pRing;
|
RingBuffer *pRing;
|
||||||
} WinMMData;
|
} WinMMData;
|
||||||
@ -436,7 +436,7 @@ static ALCboolean WinMMResetPlayback(ALCdevice *device)
|
|||||||
|
|
||||||
device->UpdateSize = (ALuint)((ALuint64)device->UpdateSize *
|
device->UpdateSize = (ALuint)((ALuint64)device->UpdateSize *
|
||||||
pData->Frequency / device->Frequency);
|
pData->Frequency / device->Frequency);
|
||||||
if(device->Frequency != streamInfo->sampleRate)
|
if(device->Frequency != pData->Frequency)
|
||||||
{
|
{
|
||||||
if((device->Flags&DEVICE_FREQUENCY_REQUEST))
|
if((device->Flags&DEVICE_FREQUENCY_REQUEST))
|
||||||
AL_PRINT("WinMM does not support changing sample rates (wanted %dhz, got %dhz)\n", device->Frequency, pData->Frequency);
|
AL_PRINT("WinMM does not support changing sample rates (wanted %dhz, got %dhz)\n", device->Frequency, pData->Frequency);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user