Component that handles the audio playback and the timing for synchronization.
Last updated 3 years ago
Reference your SongManager as a variable and invoke the PlaySong function to pass in your SongItem
SongManager
PlaySong
SongItem
void SomeMethod() { ... songManager.PlaySong(songItem); ... }
To pause playing the song.
void SomeMethod() { ... songManager.PauseSong(); ... }
When pausing the song, the note will also be paused in the scene, util you resume.
To resume the song.
void SomeMethod() { ... songManager.ResumeSong(); ... }
To stop the song.
void SomeMethod() { ... songManager.StopSong(); ... }