Try to ensure at least 2 mmdevapi updates

This commit is contained in:
Chris Robinson
2012-03-13 01:35:31 -07:00
parent 0af14c7a11
commit ef2f237276
+2 -1
View File
@@ -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;