You are here:
- Home
- Documentation
- Quick OS
- Modules
- Quick Music
- QuickMusic::Play
QuickMusic::Play
Starts playing the loaded piece of music. This does nothing if QuickMusic::Load was not used first or failed.
This may safely be called in an interrupt.
Incoming
Nothing
Outgoing
-
Negative
-
Set if there was a problem playing music. Clear if music will start on the next VBI.
All other registers are lost.
Example
; Loads details about the music in memory at MusicAddress
LoadXYImmediate #MusicAddress
JSR QuickMusic::Load
; Starts playing the music
; To actually have the music play, a VBI handler must JSR QuickMusic::HandleVBI each VBlank
JSR QuickMusic::Play