summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kamek_pal.x2
-rw-r--r--src/soundPlayer.S6
2 files changed, 5 insertions, 3 deletions
diff --git a/kamek_pal.x b/kamek_pal.x
index 8e8b34c..7ef8799 100644
--- a/kamek_pal.x
+++ b/kamek_pal.x
@@ -43,7 +43,7 @@ SECTIONS {
AnotherSoundRelatedFunction = 0x80198040;
YetAnotherSoundPlayer = 0x80199100;
CheckIfPlayingSound = 0x80196740;
- StopSound = 0x801955E0;
+ StopSoundBasic = 0x801955E0;
RelatedToPlayingSoundsAlongsideAnims = 0x80105350;
diff --git a/src/soundPlayer.S b/src/soundPlayer.S
index 5304330..0eb165a 100644
--- a/src/soundPlayer.S
+++ b/src/soundPlayer.S
@@ -27,7 +27,6 @@
# PlaySound(dActor_c *, int soundID)
-# There's somehardcoding in here, might need to fix that for NTSC versions.
.global PlaySound
@@ -79,9 +78,12 @@ GoAwaySoundGuy:
blr
+# StopSound(int soundID)
+
.global StopSound
StopSound:
+ mr r4, r3
lwz r3, 0xA768(r13)
- b StopSound
+ b StopSoundBasic