pmd-red/include/music.h

47 lines
1.1 KiB
C
Raw Normal View History

2021-01-07 22:10:24 +00:00
#ifndef GUARD_MUSIC_H
#define GUARD_MUSIC_H
2021-01-28 00:46:39 +00:00
void StopBGMusicVSync(void);
void StartBGMusicVSync(void);
2022-06-16 23:38:44 +00:00
bool8 IsValidSong(u32 songIndex);
2021-01-07 22:10:24 +00:00
void StartNewBGM(u16 songIndex);
bool8 IsBGSong(u32 songIndex);
2022-06-12 14:46:47 +00:00
bool8 IsSoundEffect(u32 songIndex);
bool8 IsFanfare(u32 songIndex);
u16 GetMusicPlayerIndex(u16 songIndex);
2022-06-16 23:38:44 +00:00
bool8 IsMusicPlayerPlaying(u16 songIndex);
2021-01-07 22:10:24 +00:00
void StartNewBGM(u16 songIndex);
void FadeInNewBGM(u16 SongIndex, u16 speed);
u16 GetCurrentBGSong(void);
void sub_800BF48(u16 SongIndex);
2022-06-17 18:39:29 +00:00
void StopBGM(void); // stops all BGM, fanfares and SE's
void FadeOutBGM(u16 speed);
2022-06-17 18:39:29 +00:00
void PlayFanfareSE(u16 SongIndex, u16 param_2);
void StopFanfareSE(u16 songIndex);
void FadeOutFanfareSE(u16 songIndex, u16 speed);
bool8 IsFanfareSEPlaying(u16 songIndex);
2021-01-07 22:10:24 +00:00
void nullsub_19(void);
void nullsub_20(u16 songIndex);
2022-06-17 18:39:29 +00:00
enum MusicPlayerIndex
2022-06-16 23:38:44 +00:00
{
INDEX_BGM,
INDEX_FANFARE,
INDEX_SE1,
INDEX_SE2,
INDEX_SE3,
INDEX_SE4,
INDEX_SE5,
INDEX_SE6,
};
enum BG_Player_State
{
BG_PLAYER_STATE_INITIALIZE = 0,
BG_PLAYER_STATE_PLAYING = 1,
BG_PLAYER_STATE_STOPPED = 4,
};
2021-01-07 22:10:24 +00:00
#endif //GUARD_MUSIC_H