aboutsummaryrefslogtreecommitdiffstats
path: root/audio/engine_2.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2025-07-02 21:15:13 -0500
committerdannye <33dannye@gmail.com>2025-07-02 21:15:13 -0500
commitca019eac8fd96559f4d4e712f0b53e95492e5dcb (patch)
tree209a500e3bda6c2109e5acec60448e9e52f8c2af /audio/engine_2.asm
parentUse more ldpikacry (diff)
parentRequire RGBDS 0.9.3 for its DMG palette specs (#513) (diff)
downloadpokeyellow-ca019eac8fd96559f4d4e712f0b53e95492e5dcb.tar.gz
pokeyellow-ca019eac8fd96559f4d4e712f0b53e95492e5dcb.tar.xz
pokeyellow-ca019eac8fd96559f4d4e712f0b53e95492e5dcb.zip
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'audio/engine_2.asm')
-rw-r--r--audio/engine_2.asm54
1 files changed, 27 insertions, 27 deletions
diff --git a/audio/engine_2.asm b/audio/engine_2.asm
index 2b5a219c..4d925ed4 100644
--- a/audio/engine_2.asm
+++ b/audio/engine_2.asm
@@ -182,10 +182,10 @@ Audio2_PlaySound::
ld a, [wSavedVolume]
and a
jr nz, .done
- ldh a, [rNR50]
+ ldh a, [rAUDVOL]
ld [wSavedVolume], a
ld a, $77
- ldh [rNR50], a
+ ldh [rAUDVOL], a
.done
ret
@@ -256,17 +256,17 @@ Audio2_InitMusicVariables::
ld a, $ff
ld [wStereoPanning], a
xor a
- ldh [rNR50], a
- ld a, $8
- ldh [rNR10], a
+ ldh [rAUDVOL], a
+ ld a, AUD1SWEEP_DOWN
+ ldh [rAUD1SWEEP], a
ld a, 0
- ldh [rNR51], a
+ ldh [rAUDTERM], a
xor a
- ldh [rNR30], a
- ld a, $80
- ldh [rNR30], a
+ ldh [rAUD3ENA], a
+ ld a, AUD3ENA_ON
+ ldh [rAUD3ENA], a
ld a, $77
- ldh [rNR50], a
+ ldh [rAUDVOL], a
ret
Audio2_InitSFXVariables::
@@ -353,28 +353,28 @@ Audio2_InitSFXVariables::
ld a, e
cp CHAN5
ret nz
- ld a, $8
- ldh [rNR10], a ; sweep off
+ ld a, AUD1SWEEP_DOWN
+ ldh [rAUD1SWEEP], a ; sweep off
ret
Audio2_StopAllAudio::
- ld a, $80
- ldh [rNR52], a ; sound hardware on
- ldh [rNR30], a ; wave playback on
+ ld a, AUDENA_ON
+ ldh [rAUDENA], a ; sound hardware on
+ ldh [rAUD3ENA], a ; wave playback on
xor a
- ldh [rNR51], a ; no sound output
- ldh [rNR32], a ; mute channel 3 (wave channel)
- ld a, $8
- ldh [rNR10], a ; sweep off
- ldh [rNR12], a ; mute channel 1 (pulse channel 1)
- ldh [rNR22], a ; mute channel 2 (pulse channel 2)
- ldh [rNR42], a ; mute channel 4 (noise channel)
- ld a, $40
- ldh [rNR14], a ; counter mode
- ldh [rNR24], a
- ldh [rNR44], a
+ ldh [rAUDTERM], a ; no sound output
+ ldh [rAUD3LEVEL], a ; mute channel 3 (wave channel)
+ ld a, AUD1SWEEP_DOWN
+ ldh [rAUD1SWEEP], a ; sweep off
+ ldh [rAUD1ENV], a ; mute channel 1 (pulse channel 1)
+ ldh [rAUD2ENV], a ; mute channel 2 (pulse channel 2)
+ ldh [rAUD4ENV], a ; mute channel 4 (noise channel)
+ ld a, AUD1HIGH_LENGTH_ON
+ ldh [rAUD1HIGH], a ; counter mode
+ ldh [rAUD2HIGH], a
+ ldh [rAUD4GO], a
ld a, $77
- ldh [rNR50], a ; full volume
+ ldh [rAUDVOL], a ; full volume
xor a
ld [wUnusedMusicByte], a
ld [wDisableChannelOutputWhenSfxEnds], a