diff options
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/mmdevapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/mmdevapi.c b/Alc/mmdevapi.c index b0c0b289..ffbbf963 100644 --- a/Alc/mmdevapi.c +++ b/Alc/mmdevapi.c @@ -496,7 +496,7 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) { min_len = (min_per*device->Frequency + 10000000-1) / 10000000; if(min_len < device->UpdateSize) - min_len *= device->UpdateSize/min_len; + min_len *= (device->UpdateSize + min_len/2)/min_len; device->NumUpdates = (device->NumUpdates*device->UpdateSize + min_len/2) / min_len; |