Fix some return types

This commit is contained in:
Chris Robinson 2019-08-12 14:30:47 -07:00
parent 1aaf65abfe
commit 81d17bb80f

View File

@ -1552,7 +1552,7 @@ bool GetSourcedv(ALsource *Source, ALCcontext *Context, SourceProp prop, const a
ClockLatency clocktime; ClockLatency clocktime;
std::chrono::nanoseconds srcclock; std::chrono::nanoseconds srcclock;
ALint ivals[MaxValues]; ALint ivals[MaxValues];
ALboolean err; bool err;
switch(prop) switch(prop)
{ {
@ -1719,7 +1719,7 @@ bool GetSourcedv(ALsource *Source, ALCcontext *Context, SourceProp prop, const a
case AL_SOURCE_RESAMPLER_SOFT: case AL_SOURCE_RESAMPLER_SOFT:
case AL_SOURCE_SPATIALIZE_SOFT: case AL_SOURCE_SPATIALIZE_SOFT:
CHECKSIZE(values, 1); 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]); values[0] = static_cast<ALdouble>(ivals[0]);
return err; return err;
@ -1740,7 +1740,7 @@ bool GetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop, const a
{ {
ALbufferlistitem *BufferList; ALbufferlistitem *BufferList;
ALdouble dvals[MaxValues]; ALdouble dvals[MaxValues];
ALboolean err; bool err;
switch(prop) switch(prop)
{ {
@ -1926,7 +1926,7 @@ bool GetSourcei64v(ALsource *Source, ALCcontext *Context, SourceProp prop, const
std::chrono::nanoseconds srcclock; std::chrono::nanoseconds srcclock;
ALdouble dvals[MaxValues]; ALdouble dvals[MaxValues];
ALint ivals[MaxValues]; ALint ivals[MaxValues];
ALboolean err; bool err;
switch(prop) switch(prop)
{ {
@ -1956,7 +1956,7 @@ bool GetSourcei64v(ALsource *Source, ALCcontext *Context, SourceProp prop, const
CHECKSIZE(values, 2); CHECKSIZE(values, 2);
values[0] = GetSourceSampleOffset(Source, Context, &srcclock); values[0] = GetSourceSampleOffset(Source, Context, &srcclock);
values[1] = srcclock.count(); values[1] = srcclock.count();
return AL_TRUE; return true;
/* 1x float/double */ /* 1x float/double */
case AL_CONE_INNER_ANGLE: case AL_CONE_INNER_ANGLE: