Clean up implicit conversions in source.cpp
This commit is contained in:
+1197
-1193
File diff suppressed because it is too large
Load Diff
+8
-8
@@ -49,17 +49,17 @@ struct ALsource {
|
||||
std::array<ALfloat,3> Direction;
|
||||
std::array<ALfloat,3> OrientAt;
|
||||
std::array<ALfloat,3> OrientUp;
|
||||
ALboolean HeadRelative;
|
||||
ALboolean Looping;
|
||||
bool HeadRelative;
|
||||
bool Looping;
|
||||
DistanceModel mDistanceModel;
|
||||
Resampler mResampler;
|
||||
ALboolean DirectChannels;
|
||||
bool DirectChannels;
|
||||
SpatializeMode mSpatialize;
|
||||
|
||||
ALboolean DryGainHFAuto;
|
||||
ALboolean WetGainAuto;
|
||||
ALboolean WetGainHFAuto;
|
||||
ALfloat OuterGainHF;
|
||||
bool DryGainHFAuto;
|
||||
bool WetGainAuto;
|
||||
bool WetGainHFAuto;
|
||||
ALfloat OuterGainHF;
|
||||
|
||||
ALfloat AirAbsorptionFactor;
|
||||
ALfloat RoomRolloffFactor;
|
||||
@@ -98,7 +98,7 @@ struct ALsource {
|
||||
ALenum OffsetType{AL_NONE};
|
||||
|
||||
/** Source type (static, streaming, or undetermined) */
|
||||
ALint SourceType{AL_UNDETERMINED};
|
||||
ALenum SourceType{AL_UNDETERMINED};
|
||||
|
||||
/** Source state (initial, playing, paused, or stopped) */
|
||||
ALenum state{AL_INITIAL};
|
||||
|
||||
@@ -232,8 +232,8 @@ struct ALvoice {
|
||||
/* Properties for the attached buffer(s). */
|
||||
FmtChannels mFmtChannels;
|
||||
ALuint mFrequency;
|
||||
ALsizei mNumChannels;
|
||||
ALsizei mSampleSize;
|
||||
ALuint mNumChannels;
|
||||
ALuint mSampleSize;
|
||||
|
||||
/** Current target parameters used for mixing. */
|
||||
ALint mStep;
|
||||
|
||||
+2
-2
@@ -485,8 +485,8 @@ void ALvoice::mix(State vstate, ALCcontext *Context, const ALuint SamplesToDo)
|
||||
ALuint DataPosFrac{mPositionFrac.load(std::memory_order_relaxed)};
|
||||
ALbufferlistitem *BufferListItem{mCurrentBuffer.load(std::memory_order_relaxed)};
|
||||
ALbufferlistitem *BufferLoopItem{mLoopBuffer.load(std::memory_order_relaxed)};
|
||||
const auto NumChannels = static_cast<ALuint>(mNumChannels);
|
||||
const auto SampleSize = static_cast<ALuint>(mSampleSize);
|
||||
const ALuint NumChannels{mNumChannels};
|
||||
const ALuint SampleSize{mSampleSize};
|
||||
const auto increment = static_cast<ALuint>(mStep);
|
||||
if(increment < 1) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user