diff options
author | Chris Robinson <[email protected]> | 2016-08-04 21:06:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-08-04 21:19:04 -0700 |
commit | f775f2537920ef0031926872c57332e99c048f63 (patch) | |
tree | 6831809736f307fcdd35d679125198722b176735 | |
parent | 232293792dad120da91f62b92ea270a58e065a91 (diff) |
Modify NumUpdates for different sample rates instead of UpdateSize
Not that this really changes anything since the CoreAudio backend doesn't honor
the ALCdevice's buffer metrics, nor accurately report the device's actual
metrics. But it clears up warnings from a non-multiple-of-four update size if
the sample rate causes it to change.
-rw-r--r-- | Alc/backends/coreaudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/backends/coreaudio.c b/Alc/backends/coreaudio.c index cde3d505..24aeabd4 100644 --- a/Alc/backends/coreaudio.c +++ b/Alc/backends/coreaudio.c @@ -238,7 +238,7 @@ static ALCboolean ca_reset_playback(ALCdevice *device) if(device->Frequency != streamFormat.mSampleRate) { - device->UpdateSize = (ALuint)((ALuint64)device->UpdateSize * + device->NumUpdates = (ALuint)((ALuint64)device->NumUpdates * streamFormat.mSampleRate / device->Frequency); device->Frequency = streamFormat.mSampleRate; |