aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/solaris.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-13 14:29:25 -0700
committerChris Robinson <[email protected]>2019-09-13 14:29:25 -0700
commita250b6a98639571eedcaaf858d014d22eb008999 (patch)
tree66b20aa2015bab606dcb19381efc39edd7adbdc2 /alc/backends/solaris.cpp
parentfcd3bed0c0923ca2eff463e0e6cffc60e00f4a7d (diff)
Return unsigned values from the FromDevFmt functions
Diffstat (limited to 'alc/backends/solaris.cpp')
-rw-r--r--alc/backends/solaris.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/alc/backends/solaris.cpp b/alc/backends/solaris.cpp
index 584f6e66..2e8fe458 100644
--- a/alc/backends/solaris.cpp
+++ b/alc/backends/solaris.cpp
@@ -88,7 +88,7 @@ int SolarisBackend::mixerProc()
SetRTPriority();
althrd_setname(MIXER_THREAD_NAME);
- const int frame_size{mDevice->frameSizeFromFmt()};
+ const ALuint frame_size{mDevice->frameSizeFromFmt()};
lock();
while(!mKillNow.load(std::memory_order_acquire) &&
@@ -169,7 +169,7 @@ ALCboolean SolarisBackend::reset()
if(mDevice->FmtChans != DevFmtMono)
mDevice->FmtChans = DevFmtStereo;
- ALsizei numChannels{mDevice->channelsFromFmt()};
+ ALuint numChannels{mDevice->channelsFromFmt()};
info.play.channels = numChannels;
switch(mDevice->FmtType)
@@ -194,7 +194,7 @@ ALCboolean SolarisBackend::reset()
break;
}
- ALsizei frameSize{numChannels * mDevice->bytesFromFmt()};
+ ALuint frameSize{numChannels * mDevice->bytesFromFmt()};
info.play.buffer_size = mDevice->BufferSize * frameSize;
if(ioctl(mFd, AUDIO_SETINFO, &info) < 0)
@@ -203,7 +203,7 @@ ALCboolean SolarisBackend::reset()
return ALC_FALSE;
}
- if(mDevice->channelsFromFmt() != (ALsizei)info.play.channels)
+ if(mDevice->channelsFromFmt() != info.play.channels)
{
ERR("Failed to set %s, got %u channels instead\n", DevFmtChannelsString(mDevice->FmtChans),
info.play.channels);