mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-23 08:33:50 +00:00
clang: constructor initialization order
while not a major issue per-se, the sheer number of times the engine has to jump back in memory and backfill data in a given class can add up. First run of... many.,
This commit is contained in:
parent
1131ed15df
commit
fbfd3ed8ed
64 changed files with 260 additions and 255 deletions
|
|
@ -69,10 +69,10 @@ SFXALVoice::SFXALVoice( const OPENALFNTABLE &oalft,
|
|||
ALuint sourceName )
|
||||
|
||||
: Parent( buffer ),
|
||||
mOpenAL( oalft ),
|
||||
mResumeAtSampleOffset( -1.0f ),
|
||||
mSourceName( sourceName ),
|
||||
mSampleOffset( 0 )
|
||||
mResumeAtSampleOffset( -1.0f ),
|
||||
mSampleOffset( 0 ),
|
||||
mOpenAL( oalft )
|
||||
{
|
||||
AL_SANITY_CHECK();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,13 +36,13 @@ Signal< void( SFXBuffer* ) > SFXBuffer::smBufferDestroyedSignal;
|
|||
|
||||
SFXBuffer::SFXBuffer( const ThreadSafeRef< SFXStream >& stream, SFXDescription* description, bool createAsyncState )
|
||||
: mStatus( STATUS_Null ),
|
||||
mIsStreaming( description->mIsStreaming ),
|
||||
mFormat( stream->getFormat() ),
|
||||
mDuration( stream->getDuration() ),
|
||||
mUniqueVoice( NULL ),
|
||||
mIsDead( false ),
|
||||
mIsStreaming( description->mIsStreaming ),
|
||||
mIsLooping( description->mIsLooping ),
|
||||
mIsUnique( description->mIsStreaming )
|
||||
mIsUnique( description->mIsStreaming ),
|
||||
mIsDead( false ),
|
||||
mUniqueVoice( NULL )
|
||||
{
|
||||
using namespace SFXInternal;
|
||||
|
||||
|
|
@ -63,12 +63,12 @@ SFXBuffer::SFXBuffer( const ThreadSafeRef< SFXStream >& stream, SFXDescription*
|
|||
|
||||
SFXBuffer::SFXBuffer( SFXDescription* description )
|
||||
: mStatus( STATUS_Ready ),
|
||||
mIsStreaming( false ), // Not streaming through our system.
|
||||
mDuration( 0 ), // Must be set by subclass.
|
||||
mUniqueVoice( NULL ),
|
||||
mIsDead( false ),
|
||||
mIsStreaming( false ), // Not streaming through our system.
|
||||
mIsLooping( description->mIsLooping ),
|
||||
mIsUnique( false ) // Must be set by subclass.
|
||||
mIsUnique( false ), // Must be set by subclass.
|
||||
mIsDead( false ),
|
||||
mUniqueVoice( NULL )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -191,9 +191,7 @@ SFXSource::SFXSource()
|
|||
: mStatus( SFXStatusStopped ),
|
||||
mSavedStatus( SFXStatusNull ),
|
||||
mStatusCallback( NULL ),
|
||||
mPitch( 1.f ),
|
||||
mModulativePitch( 1.f ),
|
||||
mEffectivePitch( 1.f ),
|
||||
mDescription( NULL ),
|
||||
mVolume( 1.f ),
|
||||
mPreFadeVolume( 1.f ),
|
||||
mFadedVolume( 1.f ),
|
||||
|
|
@ -203,26 +201,28 @@ SFXSource::SFXSource()
|
|||
mPriority( 0 ),
|
||||
mModulativePriority( 1.f ),
|
||||
mEffectivePriority( 0 ),
|
||||
mVelocity( 0, 0, 0 ),
|
||||
mPitch( 1.f ),
|
||||
mModulativePitch( 1.f ),
|
||||
mEffectivePitch( 1.f ),
|
||||
mTransform( true ),
|
||||
mVelocity( 0, 0, 0 ),
|
||||
mMinDistance( 1 ),
|
||||
mMaxDistance( 100 ),
|
||||
mConeInsideAngle( 360 ),
|
||||
mConeOutsideAngle( 360 ),
|
||||
mConeOutsideVolume( 1 ),
|
||||
mDescription( NULL ),
|
||||
mDistToListener( 0.f ),
|
||||
mTransformScattered( false ),
|
||||
mPlayStartTick( 0 ),
|
||||
mFadeSegmentEase( NULL ),
|
||||
mFadeInTime( 0.f ),
|
||||
mFadeOutTime( 0.f ),
|
||||
mFadeInPoint( -1.f ),
|
||||
mFadeOutPoint( -1.f ),
|
||||
mFadeSegmentType( FadeSegmentNone ),
|
||||
mFadeSegmentEase( NULL ),
|
||||
mFadeSegmentStartPoint( 0.f ),
|
||||
mFadeSegmentEndPoint( 0.f ),
|
||||
mSavedFadeTime( -1.f ),
|
||||
mDistToListener( 0.f )
|
||||
mPlayStartTick( 0 )
|
||||
{
|
||||
VECTOR_SET_ASSOCIATION( mParameters );
|
||||
}
|
||||
|
|
@ -232,12 +232,9 @@ SFXSource::SFXSource()
|
|||
SFXSource::SFXSource( SFXTrack* track, SFXDescription* description )
|
||||
: mStatus( SFXStatusStopped ),
|
||||
mSavedStatus( SFXStatusNull ),
|
||||
mStatusCallback( NULL ),
|
||||
mTrack( track ),
|
||||
mDescription( description ),
|
||||
mStatusCallback( NULL ),
|
||||
mPitch( 1.f ),
|
||||
mModulativePitch( 1.f ),
|
||||
mEffectivePitch( 1.f ),
|
||||
mVolume( 1.f ),
|
||||
mPreFadeVolume( 1.f ),
|
||||
mFadedVolume( 1.f ),
|
||||
|
|
@ -247,25 +244,28 @@ SFXSource::SFXSource( SFXTrack* track, SFXDescription* description )
|
|||
mPriority( 0 ),
|
||||
mModulativePriority( 1.f ),
|
||||
mEffectivePriority( 0 ),
|
||||
mVelocity( 0, 0, 0 ),
|
||||
mPitch( 1.f ),
|
||||
mModulativePitch( 1.f ),
|
||||
mEffectivePitch( 1.f ),
|
||||
mTransform( true ),
|
||||
mVelocity( 0, 0, 0 ),
|
||||
mMinDistance( 1 ),
|
||||
mMaxDistance( 100 ),
|
||||
mConeInsideAngle( 360 ),
|
||||
mConeOutsideAngle( 360 ),
|
||||
mConeOutsideVolume( 1 ),
|
||||
mDistToListener( 0.f ),
|
||||
mTransformScattered( false ),
|
||||
mPlayStartTick( 0 ),
|
||||
mFadeInTime( 0.f ),
|
||||
mFadeOutTime( 0.f ),
|
||||
mFadeSegmentEase( NULL ),
|
||||
mFadeInPoint( -1.f ),
|
||||
mFadeOutPoint( -1.f ),
|
||||
mFadeSegmentType( FadeSegmentNone ),
|
||||
mFadeSegmentEase( NULL ),
|
||||
mFadeSegmentStartPoint( 0.f ),
|
||||
mFadeSegmentEndPoint( 0.f ),
|
||||
mSavedFadeTime( -1.f ),
|
||||
mDistToListener( 0.f )
|
||||
mPlayStartTick( 0 )
|
||||
{
|
||||
VECTOR_SET_ASSOCIATION( mParameters );
|
||||
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ Signal< void( SFXVoice* voice ) > SFXVoice::smVoiceDestroyedSignal;
|
|||
//-----------------------------------------------------------------------------
|
||||
|
||||
SFXVoice::SFXVoice( SFXBuffer* buffer )
|
||||
: mBuffer( buffer ),
|
||||
mStatus( SFXStatusNull ),
|
||||
: mStatus( SFXStatusNull ),
|
||||
mBuffer( buffer ),
|
||||
mOffset( 0 )
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue