aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends')
-rw-r--r--Alc/backends/mmdevapi.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c
index 9db83003..de4201dd 100644
--- a/Alc/backends/mmdevapi.c
+++ b/Alc/backends/mmdevapi.c
@@ -233,18 +233,10 @@ static ALuint MMDevApiProc(ALvoid *ptr)
return 0;
}
- hr = IAudioClient_GetBufferSize(data->client, &buffer_len);
- if(FAILED(hr))
- {
- ERR("Failed to get audio buffer size: 0x%08lx\n", hr);
- aluHandleDisconnect(device);
- CoUninitialize();
- return 0;
- }
-
SetRTPriority();
update_size = device->UpdateSize;
+ buffer_len = update_size * device->NumUpdates;
while(!data->killNow)
{
hr = IAudioClient_GetCurrentPadding(data->client, &written);