aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/wave.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/backends/wave.cpp')
-rw-r--r--alc/backends/wave.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/alc/backends/wave.cpp b/alc/backends/wave.cpp
index 20f0d3f2..f1171747 100644
--- a/alc/backends/wave.cpp
+++ b/alc/backends/wave.cpp
@@ -125,7 +125,7 @@ int WaveBackend::mixerProc()
althrd_setname(MIXER_THREAD_NAME);
- const auto frameSize = static_cast<ALuint>(mDevice->frameSizeFromFmt());
+ const ALuint frameSize{mDevice->frameSizeFromFmt()};
int64_t done{0};
auto start = std::chrono::steady_clock::now();
@@ -151,7 +151,7 @@ int WaveBackend::mixerProc()
if(!IS_LITTLE_ENDIAN)
{
- const ALsizei bytesize{mDevice->bytesFromFmt()};
+ const ALuint bytesize{mDevice->bytesFromFmt()};
if(bytesize == 2)
{
@@ -281,8 +281,8 @@ ALCboolean WaveBackend::reset()
chanmask = 0;
break;
}
- bytes = static_cast<ALuint>(mDevice->bytesFromFmt());
- channels = static_cast<ALuint>(mDevice->channelsFromFmt());
+ bytes = mDevice->bytesFromFmt();
+ channels = mDevice->channelsFromFmt();
rewind(mFile);
@@ -330,7 +330,7 @@ ALCboolean WaveBackend::reset()
SetDefaultWFXChannelOrder(mDevice);
- const ALuint bufsize{static_cast<ALuint>(mDevice->frameSizeFromFmt())*mDevice->UpdateSize};
+ const ALuint bufsize{mDevice->frameSizeFromFmt() * mDevice->UpdateSize};
mBuffer.resize(bufsize);
return ALC_TRUE;