mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00
19 lines
454 B
NASM
19 lines
454 B
NASM
Music_PokeFluteInBattle::
|
|
; begin playing the "caught mon" sound effect
|
|
ld a, SFX_CAUGHT_MON
|
|
call PlaySoundWaitForCurrent
|
|
; then immediately overwrite the channel pointers
|
|
ld hl, wChannelCommandPointers + CHAN5 * 2
|
|
ld de, SFX_Pokeflute_Ch5
|
|
call Audio2_OverwriteChannelPointer
|
|
ld de, SFX_Pokeflute_Ch6
|
|
call Audio2_OverwriteChannelPointer
|
|
ld de, SFX_Pokeflute_Ch7
|
|
|
|
Audio2_OverwriteChannelPointer:
|
|
ld a, e
|
|
ld [hli], a
|
|
ld a, d
|
|
ld [hli], a
|
|
ret
|