aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/mmdevapi.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-17 01:32:35 -0800
committerChris Robinson <[email protected]>2012-02-17 01:32:35 -0800
commite43e1bd7f563147c4a06d24ded78f6424fae24f2 (patch)
treeff4f136311b9900ab24285ae0a226bbc585dc583 /Alc/backends/mmdevapi.c
parenteb586b0ed741c25ebb209b6c1790a98b94796f4d (diff)
Silence another MSVC warning
Diffstat (limited to 'Alc/backends/mmdevapi.c')
-rw-r--r--Alc/backends/mmdevapi.c2
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))