ShapeBase::playAudio bug
by Michael Gingerich · in Torque Game Engine Advanced · 06/13/2008 (5:06 am) · 0 replies
Void ShapeBase::playAudio(U32 slot,SFXProfile* profile)
{
AssertFatal( slot < MaxScriptThreads, "ShapeBase::playAudio() bad slot index" );
Sound& st = mSoundThread[slot];
if ( profile && ( !st.play || st.profile != profile ) )
{
setMaskBits(SoundMaskN << slot);
st.play = true;
st.profile = profile;
updateAudioState(st);
}
}
MaxScriptThreads should be MaxSoundThreads, right? I noticed when I was changing MaxScriptThreads.
{
AssertFatal( slot < MaxScriptThreads, "ShapeBase::playAudio() bad slot index" );
Sound& st = mSoundThread[slot];
if ( profile && ( !st.play || st.profile != profile ) )
{
setMaskBits(SoundMaskN << slot);
st.play = true;
st.profile = profile;
updateAudioState(st);
}
}
MaxScriptThreads should be MaxSoundThreads, right? I noticed when I was changing MaxScriptThreads.