summaryrefslogtreecommitdiff
path: root/src/code_800029B0.c
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2025-07-28 21:19:53 -0600
committerKiritoDv <kiritodev01@gmail.com>2025-07-28 21:19:53 -0600
commit7eb925d3515cbe30e9d97319ee0b878b8d7d6c4b (patch)
treefea6d8e1caf70759475f699a5427adb6acd56ba7 /src/code_800029B0.c
parentd45f201d44e1b0c6ec0a725d399604b24288ee4b (diff)
Fixed L button volume to match port's sliders
Diffstat (limited to 'src/code_800029B0.c')
-rw-r--r--src/code_800029B0.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/code_800029B0.c b/src/code_800029B0.c
index 562a9fa3a..c90e24a37 100644
--- a/src/code_800029B0.c
+++ b/src/code_800029B0.c
@@ -163,16 +163,22 @@ s32 D_801625F4;
uintptr_t D_801625F8;
f32 D_801625FC;
+void update_music_volume(s32 target){
+ float volume = (float) target / 127.0f;
+ CVarSetFloat("gMainMusicVolume", volume);
+ audio_set_player_volume(SEQ_PLAYER_LEVEL, volume);
+}
+
void func_800029B0(void) {
switch (D_800DC5A8) {
case 0:
- func_800C8F44(127);
+ update_music_volume(127);
break;
case 1:
- func_800C8F44(75);
+ update_music_volume(75);
break;
case 2:
- func_800C8F44(0);
+ update_music_volume(0);
break;
}
}