Changes

Jump to navigation Jump to search

FF7/PSX/Sound/Code Map

1,695 bytes added, 19:03, 7 May 2020
Initial commit
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.

{| class="wikitable"
! 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(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])(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
|}
112
edits

Navigation menu