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

To resume the song.

void SomeMethod() {
    ...
    songManager.ResumeSong();
    ...
}

To stop the song.

void SomeMethod() {
    ...
    songManager.StopSong();
    ...
}

Last updated

Was this helpful?