DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
CSound Class Reference

Public Member Functions

MIDI_STATE * GetMidiState ()
 
short * GetSeInfTbl ()
 
int GetSeNo (int bank, int program)
 
void StopVoice (int core)
 
void SetReverb (int core, int mode, int depth)
 
int LoadSoundFileFromPack (char *name, unsigned int *pack)
 
int LoadSqInf (char *name, unsigned int *buffer)
 
int LoadSeInf (char *name, unsigned int *buffer)
 
int Init (int mode0, int mode1, int depth0, int depth1)
 
void SQ_Play (int port, int seq_no)
 
void SQ_Play (int port, int seq_no, int volume)
 
void SQ_RePlay (int port)
 
void SE_Play (int port, int bank, int program, int pan, int velocity, int volume, int voice)
 
void SE_Play (int port, int se_no, int voice)
 
void SE_Play (int port, int bank, int program, int volume, int voice)
 
void SE_Play (int port, int bank, int program, int voice)
 
void SE_SetVol (int port, int bank, int program, int volume, int voice)
 
void SE_SetPan (int port, int bank, int program, int pan, int voice)
 
void SE_SetPan (int port, int se_no, int pan, int voice)
 
void SE_Stop (int port, int bank, int program, int voice)
 
void Fade (int port, float step, int volume)
 
void Step ()
 
void Stop (int port)
 
void SetVol (int port, int volume)
 
void SetStereoMode (int mode)
 
int LoadHdBd_A (int hd, int hd_size, int bd, int bd_size)
 
int LoadHdBd_C (int hd, int hd_size, int bd, int bd_size)
 
int LoadHdBd_E (int hd, int hd_size, int bd, int bd_size)
 
int LoadHdBd_G (int hd, int hd_size, int bd, int bd_size)
 
int LoadHdBd_I (int hd, int hd_size, int bd, int bd_size)
 
int LoadHdBd_M (int hd, int hd_size, int bd, int bd_size)
 
int LoadHdBd_Q (int hd, int hd_size, int bd, int bd_size)
 
int LoadHdBd_S (int hd, int hd_size, int bd, int bd_size)
 
int LoadSeq_A (int address, int size)
 
int LoadSeq_E (int address, int size)
 
int LoadSeq_I (int address, int size)
 

Detailed Description

Definition at line 126 of file sound.hpp.

Member Function Documentation

◆ GetMidiState()

MIDI_STATE * CSound::GetMidiState ( )

Gives the sequencer's state word.

Mangled name:
GetMidiState__6CSoundFv
Address:
0x143B50
Size:
0x10

Definition at line 45 of file sound.cpp.

◆ GetSeInfTbl()

short * CSound::GetSeInfTbl ( )

Gives the table describing each sound effect.

Mangled name:
GetSeInfTbl__6CSoundFv
Address:
0x143B60
Size:
0x10

Definition at line 49 of file sound.cpp.

◆ GetSeNo()

int CSound::GetSeNo ( int  bank,
int  program 
)

Gives the bank entry one sound effect plays from.

Mangled name:
GetSeNo__6CSoundFii
Address:
0x143B70
Size:
0x78

Definition at line 53 of file sound.cpp.

◆ StopVoice()

void CSound::StopVoice ( int  core)

Silences one hardware voice.

Mangled name:
StopVoice__6CSoundFi
Address:
0x143BF0
Size:
0x54

Definition at line 69 of file sound.cpp.

◆ SetReverb()

void CSound::SetReverb ( int  core,
int  mode,
int  depth 
)

Sets the reverberation mode and depth of one channel.

Mangled name:
SetReverb__6CSoundFiii
Address:
0x143C50
Size:
0x120

Definition at line 74 of file sound.cpp.

◆ LoadSoundFileFromPack()

int CSound::LoadSoundFileFromPack ( char *  name,
unsigned int *  pack 
)

Reads one sound file out of an archive.

Mangled name:
LoadSoundFileFromPack__6CSoundFPcPUi
Address:
0x1440D0
Size:
0x9B8

Definition at line 186 of file sound.cpp.

◆ LoadSqInf()

int CSound::LoadSqInf ( char *  name,
unsigned int *  buffer 
)

Reads the sequence description table.

Mangled name:
LoadSqInf__6CSoundFPcPUi
Address:
0x144A90
Size:
0x12C

Definition at line 321 of file sound.cpp.

◆ LoadSeInf()

int CSound::LoadSeInf ( char *  name,
unsigned int *  buffer 
)

Reads the sound-effect description table.

Mangled name:
LoadSeInf__6CSoundFPcPUi
Address:
0x144BC0
Size:
0x198

Definition at line 344 of file sound.cpp.

◆ Init()

int CSound::Init ( int  mode0,
int  mode1,
int  depth0,
int  depth1 
)

Starts the sound system and its sequencer.

Mangled name:
Init__6CSoundFiiii
Address:
0x144D60
Size:
0x4C0

Definition at line 372 of file sound.cpp.

◆ SQ_Play() [1/2]

void CSound::SQ_Play ( int  port,
int  seq_no 
)

Starts a sequence playing.

Mangled name:
SQ_Play__6CSoundFii
Address:
0x145220
Size:
0x1D0

Definition at line 495 of file sound.cpp.

◆ SQ_Play() [2/2]

void CSound::SQ_Play ( int  port,
int  seq_no,
int  volume 
)

Starts a sequence playing at a given volume.

Mangled name:
SQ_Play__6CSoundFiii
Address:
0x1453F0
Size:
0x1A8

Definition at line 536 of file sound.cpp.

◆ SQ_RePlay()

void CSound::SQ_RePlay ( int  port)

Starts a sequence again from its beginning.

Mangled name:
SQ_RePlay__6CSoundFi
Address:
0x1455A0
Size:
0x44

Definition at line 574 of file sound.cpp.

◆ SE_Play() [1/4]

void CSound::SE_Play ( int  port,
int  bank,
int  program,
int  pan,
int  velocity,
int  volume,
int  voice 
)

Plays one sound effect with every parameter given.

Mangled name:
SE_Play__6CSoundFiiiiiii
Address:
0x1455F0
Size:
0x1C8

Definition at line 579 of file sound.cpp.

◆ SE_Play() [2/4]

void CSound::SE_Play ( int  port,
int  se_no,
int  voice 
)

Plays one sound effect, taking its parameters from the description table.

Mangled name:
SE_Play__6CSoundFiii
Address:
0x1457C0
Size:
0x60

Definition at line 631 of file sound.cpp.

◆ SE_Play() [3/4]

void CSound::SE_Play ( int  port,
int  bank,
int  program,
int  volume,
int  voice 
)

Plays a sound effect with the default pan and priority settings.

Mangled name:
SE_Play__6CSoundFiiiii
Address:
0x145820
Size:
0x30

Definition at line 635 of file sound.cpp.

◆ SE_Play() [4/4]

void CSound::SE_Play ( int  port,
int  bank,
int  program,
int  voice 
)

Plays one sound effect at the middle pan and full volume.

Mangled name:
SE_Play__6CSoundFiiii
Address:
0x145850
Size:
0x30

Definition at line 639 of file sound.cpp.

◆ SE_SetVol()

void CSound::SE_SetVol ( int  port,
int  bank,
int  program,
int  volume,
int  voice 
)

Sets the volume of a sounding effect.

Mangled name:
SE_SetVol__6CSoundFiiiii
Address:
0x145880
Size:
0x108

Definition at line 643 of file sound.cpp.

◆ SE_SetPan() [1/2]

void CSound::SE_SetPan ( int  port,
int  bank,
int  program,
int  pan,
int  voice 
)

Sets the stereo position of a sounding effect.

Mangled name:
SE_SetPan__6CSoundFiiiii
Address:
0x145990
Size:
0x10C

Definition at line 679 of file sound.cpp.

◆ SE_SetPan() [2/2]

void CSound::SE_SetPan ( int  port,
int  se_no,
int  pan,
int  voice 
)

Sets the stereo position of a sounding effect, naming it through the description table.

Mangled name:
SE_SetPan__6CSoundFiiii
Address:
0x145AA0
Size:
0x50

Definition at line 715 of file sound.cpp.

◆ SE_Stop()

void CSound::SE_Stop ( int  port,
int  bank,
int  program,
int  voice 
)

Stops a sounding effect.

Mangled name:
SE_Stop__6CSoundFiiii
Address:
0x145AF0
Size:
0x100

Definition at line 719 of file sound.cpp.

◆ Fade()

void CSound::Fade ( int  port,
float  step,
int  volume 
)

Fades a channel towards a volume over a number of steps.

Mangled name:
Fade__6CSoundFifi
Address:
0x145BF0
Size:
0x324

Definition at line 755 of file sound.cpp.

◆ Step()

void CSound::Step ( )

Advances the fades and the sequencer by one frame.

Mangled name:
Step__6CSoundFv
Address:
0x145F20
Size:
0x9F0

Definition at line 814 of file sound.cpp.

◆ Stop()

void CSound::Stop ( int  port)

Stops a sequence.

Mangled name:
Stop__6CSoundFi
Address:
0x146910
Size:
0x48

Definition at line 978 of file sound.cpp.

◆ SetVol()

void CSound::SetVol ( int  port,
int  volume 
)

Sets a sequence's volume.

Mangled name:
SetVol__6CSoundFii
Address:
0x146960
Size:
0x28

Definition at line 983 of file sound.cpp.

◆ SetStereoMode()

void CSound::SetStereoMode ( int  mode)

Chooses between stereo and monaural output.

Mangled name:
SetStereoMode__6CSoundFi
Address:
0x146990
Size:
0x24

Definition at line 987 of file sound.cpp.

◆ LoadHdBd_A()

int CSound::LoadHdBd_A ( int  hd,
int  hd_size,
int  bd,
int  bd_size 
)

Loads the ambient bank into the sound processor.

Mangled name:
LoadHdBd_A__6CSoundFiiii
Address:
0x1469C0
Size:
0x17C

Definition at line 991 of file sound.cpp.

◆ LoadHdBd_C()

int CSound::LoadHdBd_C ( int  hd,
int  hd_size,
int  bd,
int  bd_size 
)

Loads the common bank into the sound processor.

Mangled name:
LoadHdBd_C__6CSoundFiiii
Address:
0x146B40
Size:
0x228

Definition at line 1022 of file sound.cpp.

◆ LoadHdBd_E()

int CSound::LoadHdBd_E ( int  hd,
int  hd_size,
int  bd,
int  bd_size 
)

Loads the effect bank into the sound processor.

Mangled name:
LoadHdBd_E__6CSoundFiiii
Address:
0x146D70
Size:
0x17C

Definition at line 1065 of file sound.cpp.

◆ LoadHdBd_G()

int CSound::LoadHdBd_G ( int  hd,
int  hd_size,
int  bd,
int  bd_size 
)

Loads the georama bank into the sound processor.

Mangled name:
LoadHdBd_G__6CSoundFiiii
Address:
0x146EF0
Size:
0x17C

Definition at line 1096 of file sound.cpp.

◆ LoadHdBd_I()

int CSound::LoadHdBd_I ( int  hd,
int  hd_size,
int  bd,
int  bd_size 
)

Loads the interior bank into the sound processor.

Mangled name:
LoadHdBd_I__6CSoundFiiii
Address:
0x147070
Size:
0x26C

Definition at line 1125 of file sound.cpp.

◆ LoadHdBd_M()

int CSound::LoadHdBd_M ( int  hd,
int  hd_size,
int  bd,
int  bd_size 
)

Loads the music bank into the sound processor.

Mangled name:
LoadHdBd_M__6CSoundFiiii
Address:
0x1472E0
Size:
0x164

Definition at line 1174 of file sound.cpp.

◆ LoadHdBd_Q()

int CSound::LoadHdBd_Q ( int  hd,
int  hd_size,
int  bd,
int  bd_size 
)

Loads the quest bank into the sound processor.

Mangled name:
LoadHdBd_Q__6CSoundFiiii
Address:
0x147450
Size:
0x164

Definition at line 1202 of file sound.cpp.

◆ LoadHdBd_S()

int CSound::LoadHdBd_S ( int  hd,
int  hd_size,
int  bd,
int  bd_size 
)

Loads the system bank into the sound processor.

Mangled name:
LoadHdBd_S__6CSoundFiiii
Address:
0x1475C0
Size:
0x164

Definition at line 1230 of file sound.cpp.

◆ LoadSeq_A()

int CSound::LoadSeq_A ( int  address,
int  size 
)

Loads the ambient sequence set through the sound processor's heap.

Mangled name:
LoadSeq_A__6CSoundFii
Address:
0x147730
Size:
0xBC

Definition at line 1258 of file sound.cpp.

◆ LoadSeq_E()

int CSound::LoadSeq_E ( int  address,
int  size 
)

Loads the effect sequence set through the sound processor's heap.

Mangled name:
LoadSeq_E__6CSoundFii
Address:
0x1477F0
Size:
0xBC

Definition at line 1275 of file sound.cpp.

◆ LoadSeq_I()

int CSound::LoadSeq_I ( int  address,
int  size 
)

Loads the interior sequence set through the sound processor's heap.

Mangled name:
LoadSeq_I__6CSoundFii
Address:
0x1478B0
Size:
0xBC

Definition at line 1292 of file sound.cpp.