summaryrefslogtreecommitdiff
path: root/src/music.c
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-10-22 10:01:07 -0700
committerGitHub <noreply@github.com>2021-10-22 10:01:07 -0700
commit3e5dd1d047bada52ab0dce2fe58b04e39bcaa1cc (patch)
tree0e40067d711c783ef97667f4a8256f38ab0d4b0a /src/music.c
parent3f7ee3a806d965fae70fd98f2cd1af13a2e4cf0b (diff)
Death by 74 files (#65)
* death by 74 files * 20% reached * doc move stuff in pokemon * fix undef reference * doc more and plumb a few more constanst for num party members and num moves * that struct is def PokemonMove.. clean up all code with it
Diffstat (limited to 'src/music.c')
-rw-r--r--src/music.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/music.c b/src/music.c
index 896bd5b..8d06025 100644
--- a/src/music.c
+++ b/src/music.c
@@ -1,6 +1,7 @@
#include "global.h"
#include "m4a.h"
#include "constants/bg_music.h"
+#include "music.h"
extern u8 sub_80023E4(u32);
extern void sub_80118C4(u16);
@@ -27,11 +28,6 @@ extern u8 gUnknown_202D694;
extern u32 gUnknown_203B0B8;
extern u16 gRawKeyInput;
-bool8 IsBGSong(u32);
-bool8 sub_800CAAC(u32);
-bool8 sub_800CACC(u32);
-u16 sub_800CAE0(u16);
-
void StopBGMusicVSync(void)
{
bool8 interrupt_flag;
@@ -106,21 +102,21 @@ u8 sub_800CA38(u32 songIndex)
{
if(IsBGSong(songIndex))
{
- if(sub_800CAE0(songIndex) == 0)
+ if(GetMusicPlayerIndex(songIndex) == 0)
{
return 1;
}
}
if(sub_800CACC(songIndex))
{
- if(sub_800CAE0(songIndex) == 1)
+ if(GetMusicPlayerIndex(songIndex) == 1)
{
return 1;
}
}
else if(sub_800CAAC(songIndex))
{
- if(sub_800CAE0(songIndex) > 1)
+ if(GetMusicPlayerIndex(songIndex) > 1)
{
return 1;
}
@@ -159,7 +155,7 @@ bool8 sub_800CACC(u32 songIndex)
return FALSE;
}
-u16 sub_800CAE0(u16 songIndex)
+u16 GetMusicPlayerIndex(u16 songIndex)
{
return gSongTable[songIndex].ms;
}
@@ -178,7 +174,7 @@ void nullsub_20(u16 songIndex)
{
}
-void nullsub_21(void)
+void nullsub_21(u16 songIndex)
{
}