sound asset conversions - playlist (as a point of significance, that no longer uses mSlots.mTrack[ i ] on the backend. just th equivalent of mTrack[i]. While the former was certainly useful for clustering, it's actively fighting standarization)

This commit is contained in:
AzaezelX 2021-10-14 22:33:13 -05:00
parent 9ab5f61c39
commit 670b246a2a
4 changed files with 22 additions and 12 deletions

View file

@ -166,7 +166,7 @@ void SFXController::_compileList( SFXPlayList* playList )
// If there's no track in this slot, ignore it.
if( !playList->getSlots().mTrack[ slotIndex ] )
if( !playList->getTrackProfile(slotIndex))
continue;
// If this is a looped slot and the list is not set to loop
@ -393,7 +393,7 @@ bool SFXController::_execInsn()
case OP_Play:
{
SFXPlayList* playList = getPlayList();
SFXTrack* track = playList->getSlots().mTrack[ insn.mSlotIndex ];
SFXTrack* track = playList->getTrackProfile(insn.mSlotIndex);
// Handle existing sources playing on this slot and find
// whether we need to start a new source.