INNER CODE UNIT · TypeScript
queuedMusic
LBALab/lba2remake · src/audio/index.ts:65
queuedMusic = -1;
}
});
}
},
queueMusic: (index: number) => {
// Corner case where we've walked out of the scene and back in again.
// In this case we don't want the music to play twice, and we want
// to throw away the previous index since we're not in that scene
// anymore.
if (musicSource.getPlaying() === index) {
queuedMusic = -1;
return;
}
queuedMusic = index;
},
getPlayingMusic: () => {
return musicSource.getPlaying();