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
39 lines
1.0 KiB
NASM
39 lines
1.0 KiB
NASM
IF FW_VBL_MUSIC_IRQ
|
|
fail "FW_VBL_MUSIC_IRQ must be disabled"
|
|
ENDC
|
|
|
|
fw_MusicInit:
|
|
PUTMSG 10,<"Music-Init %p %p">,a0,a1
|
|
PUSHM d4-d7/a3-a4
|
|
move.l fw_VBR(a6),a2
|
|
IF FW_STANDALONE_FILE_MODE
|
|
move.l $78(a2),fw_OldCiaIRQ(a6)
|
|
ENDC
|
|
moveq.l #0,d0
|
|
bsr.s LSP_MusicDriver_CIA_Start
|
|
moveq.l #-1,d0
|
|
move.w d0,fw_MusicFrameCount(a6)
|
|
POPM
|
|
PUTMSG 10,<"Music-Init done">
|
|
rts
|
|
|
|
fw_MusicStop:
|
|
bsr.s LSP_MusicDriver_CIA_Stop
|
|
IF FW_STANDALONE_FILE_MODE
|
|
move.l fw_VBR(a6),a2
|
|
move.l fw_OldCiaIRQ(a6),$78(a2)
|
|
ENDC
|
|
rts
|
|
|
|
;--------------------------------------------------------------------
|
|
; sets the position if supported
|
|
; d0.w = new position
|
|
IFNE DEBUG_DETAIL
|
|
fw_MusicSetPosition EQU LSP_MusicSetPos
|
|
ELSE
|
|
fw_MusicSetPosition:
|
|
rts
|
|
ENDC
|
|
|
|
include "musicplayers/lightspeedplayer_cia.asm"
|
|
include "musicplayers/lightspeedplayer.asm" |