aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-11-28 03:38:20 -0800
committerChris Robinson <[email protected]>2020-11-28 03:38:20 -0800
commit8750810f5cfceeffd5acf2f21e779d470d0dc88b (patch)
tree447b24c8d1b3ab926f2aa2ae40617938df1e9bb1 /alc/backends
parenteb9b9fb4e59cadc308b8ebcdf3da59a961382224 (diff)
Change a couple macros into constexpr variables
Diffstat (limited to 'alc/backends')
-rw-r--r--alc/backends/coreaudio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/backends/coreaudio.cpp b/alc/backends/coreaudio.cpp
index 31de700c..32f8d123 100644
--- a/alc/backends/coreaudio.cpp
+++ b/alc/backends/coreaudio.cpp
@@ -569,7 +569,7 @@ void CoreAudioCapture::open(const ALCchar *name)
double srateScale{double{outputFormat.mSampleRate} / mDevice->Frequency};
auto FrameCount64 = maxu64(static_cast<uint64_t>(std::ceil(mDevice->BufferSize*srateScale)),
static_cast<UInt32>(outputFormat.mSampleRate)/10);
- FrameCount64 += MAX_RESAMPLER_PADDING;
+ FrameCount64 += MaxResamplerPadding;
if(FrameCount64 > std::numeric_limits<int32_t>::max())
throw al::backend_exception{ALC_INVALID_VALUE,
"Calculated frame count is too large: %" PRIu64, FrameCount64};