chrisly42
9c48c11cd1
- Bugfix: WaitForFrame was completely broken. Now also caters for race-condition that would have waited one extra frame. - Bugfix: InitPart would overwrite innocent memory (reported by Gigabates and Losso) - Bugfix: Palette LERP had wrong bias. - Removed extra paths in include statement, use default include paths instead - Added Raspberry Casket no-jitter background calc mode (FW_MUSIC_PLAYER_CHOICE = 6) - Updated Raspberry Casket to V2.0 presto branch (WIP) - Removed fw_FrameCounterLong, use fw_FrameCounter-2 for debug purposes - Support for blue noise palette LERPing (like in Is Real). Provide your own blue noise table (4 KB), stuff it into fw_BlueNoiseTablePtr, set FW_PALETTE_LERP_SUPPORT to 2 - Music tick routine is now replaceable during runtime (fw_MusicTickRoutine) - Support for softints and audio interrupts - LMB exit can also be disabled dynamically when using FW_LMB_EXIT_SUPPORT = 2 and fw_DisableLMBExit != 0 - Added LSP Micro support and LSP Nano (custom format that uses note pitches instead of periods) - Minor other things
23 lines
630 B
NASM
23 lines
630 B
NASM
;--------------------------------------------------------------------
|
|
; 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)
|
|
bne.s .cont
|
|
rts
|
|
.cont clr.l fw_MusicTickRoutine(a6)
|
|
bra fw_MusicStop
|
|
|