split out functions to respecive files and some cleanup

This commit is contained in:
Seth Barberee
2023-05-08 11:37:34 -07:00
parent a601fd3a08
commit 5a45039c2d
8 changed files with 549 additions and 536 deletions

View File

@@ -1,6 +1,15 @@
#ifndef GUARD_BG_H
#define GUARD_BG_H
enum
{
BG0,
BG1,
BG2,
BG3,
NUM_BGS
};
struct BGControlStruct
{
u16 padding;
@@ -9,6 +18,11 @@ struct BGControlStruct
s16 vofs;
};
extern struct BGControlStruct gBG0Control;
extern struct BGControlStruct gBG1Control;
extern struct BGControlStruct gBG2Control;
extern struct BGControlStruct gBG3Control;
void SetBG0RegOffsets(s32 xoffset, s32 yoffset);
void SetBG1RegOffsets(s32 xoffset, s32 yoffset);
void SetBG2RegOffsets(s32 xoffset, s32 yoffset);

View File

@@ -1,6 +1,15 @@
#ifndef GUARD_MUSIC_H
#define GUARD_MUSIC_H
// PMD keeps it's own copy of music players for some reason
struct PMDMusicPlayer
{
u16 unk0;
u16 songIndex;
u16 volume;
bool8 isNotMaxVolume;
};
void StopBGMusicVSync(void);
void StartBGMusicVSync(void);
bool8 IsValidSong(u32 songIndex);
@@ -22,6 +31,9 @@ void FadeOutFanfareSE(u16 songIndex, u16 speed);
bool8 IsFanfareSEPlaying(u16 songIndex);
void SoundBiasReset(void);
void SoundBiasSet(void);
void UpdateSound(void);
void SoundVSync(void);
void nullsub_18(void);
void nullsub_19(void);
void nullsub_20(u16 songIndex);