diff options
author | Chris Robinson <[email protected]> | 2019-09-21 16:47:33 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-21 16:47:33 -0700 |
commit | 564c953e9465855890149a2d1b4b51f1f644fd9b (patch) | |
tree | c57f4d1f9fcba4f60c3482ce8ea0922c67c17419 /al/source.cpp | |
parent | 146afcbd7087e07dd9245ac503a9d7f93a45ec18 (diff) |
Make the buffer frequency unsigned
Diffstat (limited to 'al/source.cpp')
-rw-r--r-- | al/source.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/al/source.cpp b/al/source.cpp index f5550caf..7eda4fb6 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -267,8 +267,7 @@ ALdouble GetSourceSecOffset(ALsource *Source, ALCcontext *context, nanoseconds * } assert(BufferFmt != nullptr); - offset = static_cast<ALdouble>(readPos) / ALdouble{FRACTIONONE} / - static_cast<ALdouble>(BufferFmt->Frequency); + offset = static_cast<ALdouble>(readPos) / ALdouble{FRACTIONONE} / BufferFmt->Frequency; } return offset; @@ -2784,7 +2783,7 @@ START_API_FUNC } ALbuffer *buffer{BufferList->mBuffer}; - voice->mFrequency = static_cast<ALuint>(buffer->Frequency); + voice->mFrequency = buffer->Frequency; voice->mFmtChannels = buffer->mFmtChannels; voice->mNumChannels = ChannelsFromFmt(buffer->mFmtChannels); voice->mSampleSize = BytesFromFmt(buffer->mFmtType); |