Hamazing/source/framework/framework_music.asm

23 lines
630 B
NASM
Raw Normal View History

2023-05-22 16:17:35 +02:00
;--------------------------------------------------------------------
; Starts the music playback with the given module
;
; Data and samples should be provided in fw_MusicData(a6) and
; fw_MusicSamples(a6) respectively.
;
fw_StartMusic:
move.l fw_MusicData(a6),a0
move.l fw_MusicSamples(a6),a1
bsr fw_MusicInit
rts
;--------------------------------------------------------------------
; Stops the music playback if music is active
;
fw_StopMusic:
tst.l fw_MusicTickRoutine(a6)
2023-05-22 16:17:35 +02:00
bne.s .cont
rts
.cont clr.l fw_MusicTickRoutine(a6)
2023-05-22 16:17:35 +02:00
bra fw_MusicStop