Song Manager

Component that handles the audio playback and the timing for synchronization.

Overview

Playing song via code

Reference your SongManager as a variable and invoke the PlaySong function to pass in your SongItem

void SomeMethod() {
    ...
    songManager.PlaySong(songItem);
    ...
}

Song controls

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();
    ...
}

Last updated