aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/backends/mmdevapi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c
index 9e55c8ce..6d54a4ab 100644
--- a/Alc/backends/mmdevapi.c
+++ b/Alc/backends/mmdevapi.c
@@ -535,8 +535,9 @@ static HRESULT DoReset(ALCdevice *device)
device->NumUpdates = buffer_len / device->UpdateSize;
if(device->NumUpdates <= 1)
{
- device->NumUpdates = 1;
ERR("Audio client returned buffer_len < period*2; expect break up\n");
+ device->NumUpdates = 2;
+ device->UpdateSize = buffer_len / device->NumUpdates;
}
return hr;