Added fix so if a looping sound is preview-playing in the AB and you edit the properties, it doesn't try to reload the asset while it's playing, causing a crash

Added console method for looking up a soundAsset by filename
Added initial pass of project importer for sound assets content
This commit is contained in:
Areloch 2021-09-05 03:43:41 -05:00
parent df0f8dafa6
commit 0ca66b99db
7 changed files with 309 additions and 8 deletions

View file

@ -791,6 +791,9 @@ void SFXSource::_setStatus( SFXStatus status )
void SFXSource::_updateVolume( const MatrixF& listener )
{
if (!mDescription)
return;
// Handle fades (compute mFadedVolume).
mFadedVolume = mPreFadeVolume;
@ -919,13 +922,19 @@ void SFXSource::_updateVolume( const MatrixF& listener )
void SFXSource::_updatePitch()
{
if (!mDescription)
return;
mEffectivePitch = mModulativePitch * mPitch;
}
//-----------------------------------------------------------------------------
void SFXSource::_updatePriority()
{
{
if (!mDescription)
return;
mEffectivePriority = mPriority * mModulativePriority;
SFXSource* group = getSourceGroup();