Difference between revisions of "FF7/PSX/Sound/Code Map"

From Final Fantasy Inside
< FF7
Jump to navigation Jump to search
(Initial commit)
 
m (Add headings)
Line 1: Line 1:
 +
= Code Map =
 +
 
Introduces functions, variables and data related to sound, contained in SCUS_941.63 (game program of US version). Note that all symbol names below are for convenience only.
 
Introduces functions, variables and data related to sound, contained in SCUS_941.63 (game program of US version). Note that all symbol names below are for convenience only.
  
Line 31: Line 33:
 
|-
 
|-
 
|0x80030E7C
 
|0x80030E7C
|void _AkaoDispatchVoice(MusicPlayerTrack *track, void *a1, int a2)
+
|void _AkaoDispatchVoice(struct MusicPlayerTrack *track, void *a1, int a2)
 
|Dispatch voice commands until the next note or end of track
 
|Dispatch voice commands until the next note or end of track
 
|-
 
|-
Line 49: Line 51:
 
|-
 
|-
 
|0x80049AA8
 
|0x80049AA8
|void (* const VOICE_COMMANDS[0x60])(MusicPlayerTrack *, void *, int)
+
|void (* const VOICE_COMMANDS[0x60])(struct MusicPlayerTrack *, void *, int)
 
|Address table for voice commands 0xa0-0xff
 
|Address table for voice commands 0xa0-0xff
 
|-
 
|-
Line 64: Line 66:
 
|RAM area to load AKAO sequence data
 
|RAM area to load AKAO sequence data
 
|}
 
|}
 +
 +
= Structures =
 +
 +
struct MusicPlayerTrack {
 +
};

Revision as of 19:11, 7 May 2020

Code Map

Introduces functions, variables and data related to sound, contained in SCUS_941.63 (game program of US version). Note that all symbol names below are for convenience only.

PSX Address Declaration Description
0x80029818 void AkaoLoadInstrSet(const void *akaoSampleSet, const void *akaoInstrSet) Load additional instrument set

akaoSampleSet: corresponding to SOUND/INSTR2.ALL

akaoInstrSet: corresponding to SOUND/INSTR2.DAT

0x8002988C void AkaoInit(const void *akaoSampleSet, const void *akaoInstrSet) Initialize sound driver and load initial instruments

akaoSampleSet: corresponding to SOUND/INSTR.ALL

akaoInstrSet: corresponding to SOUND/INSTR.DAT

0x8002DA7C int AkaoLoadSeq(void) Load and start playing new AKAO sequence

Parameters are given from a global structure

Returns: 0 for success, 1 for already loaded, and -1 for invalid signature

0x80030E7C void _AkaoDispatchVoice(struct MusicPlayerTrack *track, void *a1, int a2) Dispatch voice commands until the next note or end of track
0x80036298 void SpuInit(void) Initialize SPU (PsyQ library function)
0x8003D0C0 int ResetCallback() Initialize all system callbacks (PsyQ library function)
0x80049948 const unsigned char VOICE_COMMAND_LENGTHS[0x60] Length table for voice commands 0xa0-0xff

0 for end of track and branches

0x80049AA8 void (* const VOICE_COMMANDS[0x60])(struct MusicPlayerTrack *, void *, int) Address table for voice commands 0xa0-0xff
0x80049C44 const unsigned short VOLUME_TABLE_L[256]
0x80049E44 const unsigned short VOLUME_TABLE_R[256]
0x80083580 unsigned char g_AkaoSeqData[] RAM area to load AKAO sequence data

Structures

struct MusicPlayerTrack {
};