aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/coreaudio.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-02-11 12:16:58 -0800
committerChris Robinson <[email protected]>2019-02-11 12:16:58 -0800
commit69f6f561607a3c1c7d6947cb6ba98682df807051 (patch)
tree9a0edda3711f82913ccd5c9b8da1eb20b873f651 /Alc/backends/coreaudio.cpp
parent2fc8461c14074c7f19d6c226e1beaf55aed441a0 (diff)
Avoid using internal AL[u]int64 types
Diffstat (limited to 'Alc/backends/coreaudio.cpp')
-rw-r--r--Alc/backends/coreaudio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/coreaudio.cpp b/Alc/backends/coreaudio.cpp
index c5da9f24..432733f4 100644
--- a/Alc/backends/coreaudio.cpp
+++ b/Alc/backends/coreaudio.cpp
@@ -177,8 +177,8 @@ ALCboolean CoreAudioPlayback::reset()
if(mDevice->Frequency != streamFormat.mSampleRate)
{
- mDevice->NumUpdates = static_cast<ALuint>(
- (ALuint64)mDevice->NumUpdates*streamFormat.mSampleRate/mDevice->Frequency);
+ mDevice->NumUpdates = static_cast<ALuint>(uint64_t{mDevice->NumUpdates} *
+ streamFormat.mSampleRate / mDevice->Frequency);
mDevice->Frequency = streamFormat.mSampleRate;
}
@@ -594,7 +594,7 @@ ALCenum CoreAudioCapture::open(const ALCchar *name)
}
// Set the AudioUnit output format frame count
- ALuint64 FrameCount64{mDevice->UpdateSize};
+ uint64_t FrameCount64{mDevice->UpdateSize};
FrameCount64 = (FrameCount64*outputFormat.mSampleRate + mDevice->Frequency-1) /
mDevice->Frequency;
FrameCount64 += MAX_RESAMPLE_PADDING*2;