Name some mp3 symbols and properties

This commit is contained in:
Ryan Dwyer
2025-02-13 19:31:33 +10:00
parent 74983e2b7d
commit 7fa351dba5
13 changed files with 312 additions and 302 deletions
+7
View File
@@ -2621,6 +2621,13 @@
#define MP3RESPONSETYPE_WHISPER 2
#define MP3RESPONSETYPE_GREETING 3
#define MP3STATE_IDLE 0
#define MP3STATE_PLAYING 1
#define MP3STATE_PAUSED 2
#define MP3STATE_STOPPED 3
#define MP3STATE_LOADING 4
#define MP3STATE_UNPAUSING 5
#define MPBODY_DARK_COMBAT 0x00
#define MPBODY_DARK_TRENCH 0x01
#define MPBODY_DARK_FROCK 0x02
+7 -7
View File
@@ -6,12 +6,12 @@
void mp3_init(ALHeap *heap);
void mp3_play_file(s32 romaddr, s32 filesize);
void func00037e1c(void);
void func00037e38(void);
void func00037e68(void);
s32 func00037ea4(void);
void func00037f08(s32 arg0, bool arg1);
void func00037f5c(s32 arg0, bool arg1);
s32 func00037fc0(s32 arg0, Acmd **cmd);
void mp3_stop(void);
void mp3_pause(void);
void mp3_unpause(void);
s32 mp3_is_busy(void);
void mp3_set_vol(s32 vol, bool arg1);
void mp3_set_pan(s32 pan, bool immediate);
bool mp3_make_samples(s32 arg0, Acmd **cmd);
#endif
+4 -4
View File
@@ -12,17 +12,17 @@ void snd_set_sound_mode(s32 mode);
ALSound *snd_load_sound(s16 soundnum);
void snd_init(void);
bool snd_is_mp3(s16 soundnum);
bool snd_stop_mp3(s16 arg0);
bool snd_stop_mp3(s16 soundnum);
bool seq_play(struct seqinstance *seq, s32 tracknum);
void seq_set_volume(struct seqinstance *seq, u16 volume);
void snd_handle_retrace(void);
void snd0000fe20(void);
void snd0000fe50(void);
void snd_pause_mp3(void);
void snd_unpause_mp3(void);
void snd_tick(void);
bool snd_is_disabled(void);
void snd_start_mp3_by_filenum(u32 filenum);
void snd_adjust(struct sndstate **handle, bool ismp3, s32 vol, s32 pan, s32 soundnum, f32 pitch, s32 fxbus, s32 fxmix, bool forcefxmix);
struct sndstate *snd00010718(struct sndstate **handle, s32 flags, s32 volume, s32 pan, s32 soundnum, f32 pitch, s32 fxbus, s32 fxmix, bool forcefxmix);
struct sndstate *snd00010718(struct sndstate **handle, bool ismp3, s32 volume, s32 pan, s32 soundnum, f32 pitch, s32 fxbus, s32 fxmix, bool forcefxmix);
struct sndstate *snd_start(s32 arg0, s16 sound, struct sndstate **handle, s32 volume, s32 pan, f32 pitch, s32 fxbus, s32 fxmix);
void snd_start_mp3(s16 soundnum, s32 volume, s32 pan, s32 responseflags);
void snd_play_nosedive(s32 seconds);
+25 -25
View File
@@ -5584,38 +5584,38 @@ struct mp3thing {
struct mp3vars {
/*0x00*/ s32 romaddr;
/*0x04*/ struct asistream *var8009c394;
/*0x08*/ u8 *var8009c398;
/*0x0c*/ s16 var8009c39c;
/*0x0e*/ s16 var8009c39e;
/*0x10*/ s16 ivol1;
/*0x12*/ s16 ivol2;
/*0x14*/ s16 var8009c3a4;
/*0x16*/ s16 var8009c3a6;
/*0x18*/ u16 ratel1;
/*0x1a*/ s16 ratem1;
/*0x1c*/ s16 var8009c3ac;
/*0x1e*/ u16 ratel2;
/*0x20*/ s16 ratem2;
/*0x22*/ s16 var8009c3b2;
/*0x24*/ s16 var8009c3b4;
/*0x28*/ s32 samples;
/*0x2c*/ s32 var8009c3bc;
/*0x04*/ struct asistream *stream;
/*0x08*/ ENVMIX_STATE *em_state;
/*0x0c*/ s16 em_pan;
/*0x0e*/ s16 em_volume;
/*0x10*/ s16 em_cvolL;
/*0x12*/ s16 em_cvolR;
/*0x14*/ s16 em_dryamt;
/*0x16*/ s16 em_wetamt;
/*0x18*/ u16 em_lratl;
/*0x1a*/ s16 em_lratm;
/*0x1c*/ s16 em_ltgt;
/*0x1e*/ u16 em_rratl;
/*0x20*/ s16 em_rratm;
/*0x22*/ s16 em_rtgt;
/*0x24*/ s16 em_first;
/*0x28*/ s32 em_delta;
/*0x2c*/ s32 em_segEnd;
/*0x30*/ s32 filesize;
/*0x34*/ s32 var8009c3c4;
/*0x34*/ s32 dmaoffset;
/*0x38*/ struct mp3thing *var8009c3c8;
/*0x3c*/ s32 var8009c3cc;
/*0x40*/ s32 var8009c3d0;
/*0x44*/ u32 *var8009c3d4[1];
/*0x48*/ u32 var8009c3d8;
/*0x4c*/ void *var8009c3dc;
/*0x50*/ u32 var8009c3e0;
/*0x54*/ u32 var8009c3e4;
/*0x4c*/ void *dmafunc;
/*0x50*/ u32 state;
/*0x54*/ u32 currentvol;
/*0x58*/ u32 var8009c3e8;
/*0x5c*/ s16 var8009c3ec;
/*0x5e*/ s16 var8009c3ee;
/*0x60*/ u8 var8009c3f0;
/*0x61*/ u8 var8009c3f1;
/*0x5c*/ s16 currentpan;
/*0x5e*/ s16 targetpan;
/*0x60*/ u8 statetimer;
/*0x61*/ u8 dualchannel;
};
struct rdptask {