diff options
author | Chris Robinson <[email protected]> | 2019-09-28 14:35:42 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-28 14:35:42 -0700 |
commit | 4b746b8d37911600bb64e3cb9efe8c370968df1d (patch) | |
tree | 6362ae043e4390b4d97d110a3481e3ab1d05b600 /alc/backends | |
parent | 31ffb0887c44a910a5814cba1fdd5d69a4b49df2 (diff) |
Make MAX_RESAMPLER_PADDING specify the total padding
Diffstat (limited to 'alc/backends')
-rw-r--r-- | alc/backends/coreaudio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp index 92064336..5d004efc 100644 --- a/alc/backends/coreaudio.cpp +++ b/alc/backends/coreaudio.cpp @@ -598,7 +598,7 @@ ALCenum CoreAudioCapture::open(const ALCchar *name) uint64_t FrameCount64{mDevice->UpdateSize}; FrameCount64 = static_cast<uint64_t>(FrameCount64*outputFormat.mSampleRate + mDevice->Frequency-1) / mDevice->Frequency; - FrameCount64 += MAX_RESAMPLE_PADDING*2; + FrameCount64 += MAX_RESAMPLER_PADDING; if(FrameCount64 > std::numeric_limits<uint32_t>::max()/2) { ERR("FrameCount too large\n"); |