aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'al/source.cpp')
-rw-r--r--al/source.cpp5
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);