diff options
author | Chris Robinson <[email protected]> | 2019-08-12 14:30:47 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-12 14:30:47 -0700 |
commit | 81d17bb80f77cc5d078547b5fb102a2b44fecee0 (patch) | |
tree | 3f1ddaedcb6d03855013e5fbea0b447623cddfb8 /al/source.cpp | |
parent | 1aaf65abfecbde8548f90b1d0b0308b21bd0776d (diff) |
Fix some return types
Diffstat (limited to 'al/source.cpp')
-rw-r--r-- | al/source.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/al/source.cpp b/al/source.cpp index b20f6e81..018e49a0 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -1552,7 +1552,7 @@ bool GetSourcedv(ALsource *Source, ALCcontext *Context, SourceProp prop, const a ClockLatency clocktime; std::chrono::nanoseconds srcclock; ALint ivals[MaxValues]; - ALboolean err; + bool err; switch(prop) { @@ -1719,7 +1719,7 @@ bool GetSourcedv(ALsource *Source, ALCcontext *Context, SourceProp prop, const a case AL_SOURCE_RESAMPLER_SOFT: case AL_SOURCE_SPATIALIZE_SOFT: CHECKSIZE(values, 1); - if((err=GetSourceiv(Source, Context, prop, {ivals, 1u})) != AL_FALSE) + if((err=GetSourceiv(Source, Context, prop, {ivals, 1u})) != false) values[0] = static_cast<ALdouble>(ivals[0]); return err; @@ -1740,7 +1740,7 @@ bool GetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop, const a { ALbufferlistitem *BufferList; ALdouble dvals[MaxValues]; - ALboolean err; + bool err; switch(prop) { @@ -1926,7 +1926,7 @@ bool GetSourcei64v(ALsource *Source, ALCcontext *Context, SourceProp prop, const std::chrono::nanoseconds srcclock; ALdouble dvals[MaxValues]; ALint ivals[MaxValues]; - ALboolean err; + bool err; switch(prop) { @@ -1956,7 +1956,7 @@ bool GetSourcei64v(ALsource *Source, ALCcontext *Context, SourceProp prop, const CHECKSIZE(values, 2); values[0] = GetSourceSampleOffset(Source, Context, &srcclock); values[1] = srcclock.count(); - return AL_TRUE; + return true; /* 1x float/double */ case AL_CONE_INNER_ANGLE: |