aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-14 20:19:59 -0700
committerChris Robinson <[email protected]>2019-09-14 20:19:59 -0700
commite4cc77ea237c8a2ca67cb0a1cb28e6d652746590 (patch)
tree8baaca4469d1b28046df164a78fcc7509a3f12ce /al/source.cpp
parent4b8f78a8d633e3f39e2b708184c051465fcfef7d (diff)
Fix a few warnings from MSVC
Diffstat (limited to 'al/source.cpp')
-rw-r--r--al/source.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/al/source.cpp b/al/source.cpp
index f8d5fbcd..53d2a705 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -1126,14 +1126,14 @@ bool SetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop, const a
CHECKSIZE(values, 1);
CHECKVAL(values[0] == AL_FALSE || values[0] == AL_TRUE);
- Source->HeadRelative = static_cast<ALboolean>(values[0]);
+ Source->HeadRelative = values[0] != AL_FALSE;
return UpdateSourceProps(Source, Context);
case AL_LOOPING:
CHECKSIZE(values, 1);
CHECKVAL(values[0] == AL_FALSE || values[0] == AL_TRUE);
- Source->Looping = static_cast<ALboolean>(values[0]);
+ Source->Looping = values[0] != AL_FALSE;
if(IsPlayingOrPaused(Source))
{
if(ALvoice *voice{GetSourceVoice(Source, Context)})
@@ -1258,28 +1258,28 @@ bool SetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop, const a
CHECKSIZE(values, 1);
CHECKVAL(values[0] == AL_FALSE || values[0] == AL_TRUE);
- Source->DryGainHFAuto = values[0];
+ Source->DryGainHFAuto = values[0] != AL_FALSE;
return UpdateSourceProps(Source, Context);
case AL_AUXILIARY_SEND_FILTER_GAIN_AUTO:
CHECKSIZE(values, 1);
CHECKVAL(values[0] == AL_FALSE || values[0] == AL_TRUE);
- Source->WetGainAuto = values[0];
+ Source->WetGainAuto = values[0] != AL_FALSE;
return UpdateSourceProps(Source, Context);
case AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO:
CHECKSIZE(values, 1);
CHECKVAL(values[0] == AL_FALSE || values[0] == AL_TRUE);
- Source->WetGainHFAuto = values[0];
+ Source->WetGainHFAuto = values[0] != AL_FALSE;
return UpdateSourceProps(Source, Context);
case AL_DIRECT_CHANNELS_SOFT:
CHECKSIZE(values, 1);
CHECKVAL(values[0] == AL_FALSE || values[0] == AL_TRUE);
- Source->DirectChannels = values[0];
+ Source->DirectChannels = values[0] != AL_FALSE;
return UpdateSourceProps(Source, Context);
case AL_DISTANCE_MODEL: