mirror of
https://github.com/pret/pmd-red.git
synced 2026-09-28 11:57:42 -05:00
split out functions to respecive files and some cleanup
This commit is contained in:
14
include/bg.h
14
include/bg.h
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user