diff options
author | Chris Robinson <[email protected]> | 2012-03-13 01:35:31 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-03-13 01:35:31 -0700 |
commit | ef2f2372763deca289f6029bcf5da54441bb8499 (patch) | |
tree | eaf6e36d12f1081a541ed6a92d48dc855e8443a3 /Alc/backends/mmdevapi.c | |
parent | 0af14c7a11b31216bb4c4f7db3fe91af5abac454 (diff) |
Try to ensure at least 2 mmdevapi updates
Diffstat (limited to 'Alc/backends/mmdevapi.c')
-rw-r--r-- | Alc/backends/mmdevapi.c | 3 |
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; |