audPlayMusic

Plays music in a continuous loop and returns a voice handle. Takes music (music handle from audLoadMusic). Returns a voice handle.

Audio

Parameters & Returns

Parameters

music Int

Returns

Int

Quick Summary

Plays music in a continuous loop and returns a voice handle. Takes music (music handle from audLoadMusic). Returns a voice handle.

Technical Exegesis...

Plays the specified music stream continuously in a loop and returns a voice handle (not a channel handle). Returns 0 if the music handle is invalid or <= 0.

Music automatically loops forever until stopped. The returned handle is used directly with audStopMusic, audPauseMusic, audResumeMusic, audSetMusicVolume, and audSetMusicPan. Note: This returns a SoLoud voice handle, not a channel ID.

Example

Example.bam
Local channel:Int = BBR_PlayMusic(music)