diff options
-rw-r--r-- | Alc/backends/mmdevapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c index 86c174d1..2bfd2d0b 100644 --- a/Alc/backends/mmdevapi.c +++ b/Alc/backends/mmdevapi.c @@ -579,7 +579,7 @@ static HRESULT DoReset(ALCdevice *device) hr = IAudioClient_GetDevicePeriod(data->client, &min_per, NULL); if(SUCCEEDED(hr)) { - min_len = (min_per*device->Frequency + 10000000-1) / 10000000; + min_len = (UINT32)((min_per*device->Frequency + 10000000-1) / 10000000); hr = IAudioClient_GetBufferSize(data->client, &buffer_len); } if(FAILED(hr)) |