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:
|
2024-09-15 17:43:33 +02:00
|
|
|
tst.l fw_MusicTickRoutine(a6)
|
2023-05-22 16:17:35 +02:00
|
|
|
bne.s .cont
|
|
|
|
rts
|
2024-09-15 17:43:33 +02:00
|
|
|
.cont clr.l fw_MusicTickRoutine(a6)
|
2023-05-22 16:17:35 +02:00
|
|
|
bra fw_MusicStop
|
|
|
|
|