DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
snd.hpp File Reference

Go to the source code of this file.

Classes

struct  SND_SE_INFO
 
struct  SND_SE_SEQ
 
struct  SND_INFO
 

Functions

void set3DSpriteFog (sceVif1Packet *packet, CTexture *texture, const CRect_i_ &source, int *top_left, int *bottom_right, spRGBA *colour)
 
void set3DSpriteFog (sceVif1Packet *packet, CTexture *texture, const CRect_i_ &source, int *top_left, int *top_right, int *bottom_left, int *bottom_right, unsigned char alpha)
 
void SndInitSeTable ()
 
int SndVoiceLoad (int set_no)
 
void SndInitialize (int unused0, int unused1, int unused2, int unused3)
 
void SndExit ()
 
void SndStep ()
 
int SndBgmInit ()
 
void SndStopAllSe ()
 
void SndBgmStop ()
 
void SndBgmRePlay ()
 
void SndBgmFadeOutStop ()
 
void SndAmbientStop ()
 
void SndAmbientPlay (int ambient_no)
 
void SndAmbientSetVolf (float volume)
 
int SndGetAmbientDefaultVol ()
 
int SndAmbientInit ()
 
void SndGetVolPan (float *vol, float *pan, float *pos, float near, float far)
 
int SndGetVolf (int se_no, float vol)
 
int SndGetPanf (float pan)
 
void SndSetSeVol (int se_no, int vol, int voice)
 
void SndSetSeVolf (int se_no, float vol, int voice)
 
void SndSetSePanf (int se_no, float pan, int voice)
 
void SndSePlay (int se_no, int vol, int voice)
 
void SndSePlay (int se_no, float *position, float near, float far)
 
void SndPlayFootSound (int kind, int foot, float *position)
 
int SndSeSeqPlayStop (int se_no, int length, int voice)
 
void SndSeSeqInit ()
 
void setbilinear (int on)
 
void set2DSprite (sceVif1Packet *packet, CTexture *texture, RECT *screen, RECT *texel, unsigned char alpha)
 
void set2DSprite_Start (sceVif1Packet *packet, CTexture *texture)
 
void set2DSprite_End (sceVif1Packet *packet, CTexture *texture)
 
void SetClut (sceVif1Packet *packet, CTexture *texture, i *clut)
 
void set2DSprite (sceVif1Packet *packet, CTexture *texture, const CRect_i_ &screen, const CRect_i_ &texel, unsigned char alpha)
 
void set2DSprite (sceVif1Packet *packet, CTexture *texture, const CRect_i_ &screen, const CRect_i_ &texel, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha)
 
void set2DSprite (sceVif1Packet *packet, CTexture *texture, const CRect_i_ &screen, const CRect_i_ &texel, spRGBA *top_left, spRGBA *top_right, spRGBA *bottom_left, spRGBA *bottom_right, int mode)
 
void set2DSpriteRot (sceVif1Packet *packet, CTexture *texture, const CRect_i_ &screen, const CRect_i_ &texel, int pivot_x, int pivot_y, float angle, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha)
 
void set2DSprite (sceVif1Packet *packet, CTexture *texture, const CRect_i_ &screen, const CRect_i_ &texel, int pivot_x, int pivot_y, float angle)
 
void set2DSprite (sceVif1Packet *packet, CTexture *texture, const CRect_i_ &screen, int u, int v)
 
void set2DSpriteC4 (sceVif1Packet *packet, const CRect_i_ &screen, spRGBA *top_left, spRGBA *top_right, spRGBA *bottom_left, spRGBA *bottom_right)
 
void setColSprite (sceVif1Packet *packet, int *top_left, int *top_right, int *bottom_left, int *bottom_right, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha)
 
void set3DColSprite (sceVif1Packet *packet, int *top_left, int *top_right, int *bottom_left, int *bottom_right, spRGBA *top_left_colour, spRGBA *top_right_colour, spRGBA *bottom_left_colour, spRGBA *bottom_right_colour)
 
void set3DSprite (sceVif1Packet *packet, CTexture *texture, const CRect_i_ &source, int *top_left, int *top_right, int *bottom_left, int *bottom_right, unsigned char alpha)
 
void set3DSprite (sceVif1Packet *packet, CTexture *texture, const CRect_i_ &source, int *top_left, int *top_right, int *bottom_left, int *bottom_right, spRGBA *colour)
 
void set3DSprite (sceVif1Packet *packet, CTexture *texture, const CRect_i_ &source, int *top_left, int *bottom_right, spRGBA *colour)
 
void SndSetCamera (CCamera *camera)
 
void SndSetCamera (float *position, float *rotation)
 
void SndSeStop (int se_no, int voice)
 
void SndSetBgmVol (int volume)
 
void SndSetBgmVolf (float volume)
 
int SndGetBgmVol ()
 
int SndBgmCheck ()
 
int SndGetBgmNo ()
 
int SndCheckFade ()
 
int SndSyncBG ()
 
int SndGetDefaultBgmVol ()
 
int SndBgmSyncBG ()
 
int SndSoundSyncBG ()
 
int SndVoiceSyncBG ()
 
void SndSPSePlay (int se_no, int vol)
 
void SndSPSeStop (int se_no)
 
void SndSetSPSeVolf (int se_no, float volume)
 
void SndSetSPSePanf (int se_no, float pan)
 
int SndSPSeSyncBG ()
 
int SndBgmLoad (int set_no)
 
void SndBgmPlay (int track_no)
 
int SndGetNowSetNo ()
 
void SndSetReadBuffer (unsigned int *buffer)
 
int SndSoundLoad (int set_no)
 
int SndBgmLoadBG (int set_no, u_int *buffer, int *size)
 
int SndSoundLoadBG (int set_no, u_int *buffer, int *size)
 
int SndVoiceLoadBG (int set_no, u_int *buffer, int *size)
 
int SndSPSeLoad (int set_no)
 
int SndSPSeLoadBG (int set_no, u_int *buffer, int *size)
 
void SndBgmFadeIn (int frames, int volume, int start_volume)
 
void SndBgmFadeOut (int frames, int volume)
 
void SndBgmFadeInOut ()
 
void setAlphaFlag (sceVif1Packet *packet, sceGsAlpha *alpha)
 
void set2DSprite (sceVif1Packet *packet, CTexture *texture, const CRect_i_ &screen, const CRect_i_ &texel)
 
 STATIC_ASSERT (sizeof(SND_SE_INFO)==6)
 
 STATIC_ASSERT (sizeof(SND_SE_SEQ)==8)
 
 STATIC_ASSERT (sizeof(SND_INFO)==0x10)
 

Variables

TAG_PARAM Command__3 []
 
SND_INFO * SoundInfo
 
int se_list
 
SND_SE_INFO geo [199]
 
SND_SE_INFO dun [199]
 
SND_SE_INFO se_info [2801]
 
SND_SE_INFO * cap_se_info [101]
 
SND_SE_INFO * voice_info [11]
 
SND_SE_INFO special_se_info [65]
 

Detailed Description

Declares the sound effect calls that the game makes while it draws, and the sprite calls that retail's sound translation unit also carries.

Definition in file snd.hpp.

Function Documentation

◆ set3DSpriteFog() [1/2]

void set3DSpriteFog ( sceVif1Packet *  packet,
CTexture *  texture,
const CRect_i_ &  source,
int *  top_left,
int *  bottom_right,
spRGBA *  colour 
)

Draws a projected sprite with one colour and fog depth.

Draws a fogged sprite in world space between two projected corners.

Mangled name:
set3DSpriteFog__FP13sceVif1PacketP8CTextureRC8CRect_i_PiPiP6spRGBA
Address:
0x15DCA0
Size:
0x228

Definition at line 3862 of file snd.cpp.

◆ set3DSpriteFog() [2/2]

void set3DSpriteFog ( sceVif1Packet *  packet,
CTexture *  texture,
const CRect_i_ &  source,
int *  top_left,
int *  top_right,
int *  bottom_left,
int *  bottom_right,
unsigned char  alpha 
)

Draws a projected quadrilateral with per-corner depth and a uniform alpha.

Draws a fogged sprite in world space, with four corner positions.

Mangled name:
set3DSpriteFog__FP13sceVif1PacketP8CTextureRC8CRect_i_PiPiPiPiUc
Address:
0x15D9A0
Size:
0x2FC

Definition at line 3827 of file snd.cpp.

◆ SndInitSeTable()

void SndInitSeTable ( )

Loads the sound-effect metadata table used by the sound manager.

Mangled name:
SndInitSeTable__Fv
Address:
0x159390
Size:
0x298

Definition at line 327 of file snd.cpp.

◆ SndVoiceLoad()

int SndVoiceLoad ( int  set_no)

Loads one character voice bank.

Mangled name:
SndVoiceLoad__Fi
Address:
0x15B3F0
Size:
0x90

Definition at line 1399 of file snd.cpp.

◆ SndInitialize()

void SndInitialize ( int  unused0,
int  unused1,
int  unused2,
int  unused3 
)

Resets the sound manager: the background music, the ambient loop and the sound-effect sequences start again from nothing, no sound-effect, voice or music set counts as loaded, and the configuration file names are cleared. None of the four arguments is read.

Mangled name:
SndInitialize__Fiiii
Address:
0x159200
Size:
0x8C

Definition at line 282 of file snd.cpp.

◆ SndExit()

void SndExit ( )

Stops the music, the ambient loop, sound-effect ports 10 and 12 to 15 and both voices, and resets the sound-effect sequences, the background music and the ambient loop.

Mangled name:
SndExit__Fv
Address:
0x159290
Size:
0xC0

Definition at line 306 of file snd.cpp.

◆ SndStep()

void SndStep ( )

Steps the background-music fade, the sound-effect sequences and the sound driver.

Mangled name:
SndStep__Fv
Address:
0x159350
Size:
0x34

Definition at line 321 of file snd.cpp.

◆ SndBgmInit()

int SndBgmInit ( )

Resets the background music so that no set counts as loaded, playing or fading, and returns 1.

Mangled name:
SndBgmInit__Fv
Address:
0x159930
Size:
0x2C

Definition at line 521 of file snd.cpp.

◆ SndStopAllSe()

void SndStopAllSe ( )

Stops every sound effect, the ambient loop and the second voice, and resets the ambient loop so that none counts as playing.

Mangled name:
SndStopAllSe__Fv
Address:
0x15A450
Size:
0xA0

Definition at line 907 of file snd.cpp.

◆ SndBgmStop()

void SndBgmStop ( )

Stops the background music at once.

Mangled name:
SndBgmStop__Fv
Address:
0x159BA0
Size:
0x58

Definition at line 617 of file snd.cpp.

◆ SndBgmRePlay()

void SndBgmRePlay ( )

Starts the background music again when a set is loaded and its play state is 2.

Mangled name:
SndBgmRePlay__Fv
Address:
0x159C00
Size:
0x4C

Definition at line 635 of file snd.cpp.

◆ SndBgmFadeOutStop()

void SndBgmFadeOutStop ( )

Fades the background music out and then stops it.

Mangled name:
SndBgmFadeOutStop__Fv
Address:
0x159C50
Size:
0xA8

Definition at line 642 of file snd.cpp.

◆ SndAmbientStop()

void SndAmbientStop ( )

Stops the ambient loop.

Mangled name:
SndAmbientStop__Fv
Address:
0x15B190
Size:
0x44

Definition at line 1323 of file snd.cpp.

◆ SndAmbientPlay()

void SndAmbientPlay ( int  ambient_no)

Starts an ambient loop at its default volume, unless that loop already plays.

Mangled name:
SndAmbientPlay__Fi
Address:
0x15B110
Size:
0x74

Definition at line 1313 of file snd.cpp.

◆ SndAmbientSetVolf()

void SndAmbientSetVolf ( float  volume)

Sets the ambient loop's normalized volume.

Sets the ambient loop's volume as a share of its default.

Mangled name:
SndAmbientSetVolf__Ff
Address:
0x15B240
Size:
0x5C

Definition at line 1355 of file snd.cpp.

◆ SndGetAmbientDefaultVol()

int SndGetAmbientDefaultVol ( )

Returns the default volume of the ambient loop that is playing, as its MIDI state records it, or 64 when that loop has no state.

Mangled name:
SndGetAmbientDefaultVol__Fv
Address:
0x15B2A0
Size:
0x68

Definition at line 1363 of file snd.cpp.

◆ SndAmbientInit()

int SndAmbientInit ( )

Resets the ambient loop so that none counts as playing, and returns 1.

Mangled name:
SndAmbientInit__Fv
Address:
0x15B0F0
Size:
0x1C

Definition at line 1306 of file snd.cpp.

◆ SndGetVolPan()

void SndGetVolPan ( float *  vol,
float *  pan,
float *  pos,
float  near,
float  far 
)

Works out the volume and the pan of a sound at a position.

Mangled name:
SndGetVolPan__FPfPfPfff
Address:
0x15AC00
Size:
0x1F8

Calculates the volume and stereo balance of a sound at a world position.

Mangled name:
SndGetVolPan__FPfPfPfff
Address:
0x15AC00
Size:
0x1F8

Definition at line 1142 of file snd.cpp.

◆ SndGetVolf()

int SndGetVolf ( int  se_no,
float  vol 
)

Scales a sound effect's table volume by a normalized factor, and clamps the result to the range the sound calls take.

Mangled name:
SndGetVolf__Fif
Address:
0x15A970
Size:
0xB4

Definition at line 1067 of file snd.cpp.

◆ SndGetPanf()

int SndGetPanf ( float  pan)

Converts a pan from -1 to 1, clamped to that range, into the pan from 1 to 127 that the sound calls take.

Mangled name:
SndGetPanf__Ff
Address:
0x15AA30
Size:
0x74

Definition at line 1096 of file snd.cpp.

◆ SndSetSeVol()

void SndSetSeVol ( int  se_no,
int  vol,
int  voice 
)

Sets the volume of a sound effect.

Mangled name:
SndSetSeVol__Fiii
Address:
0x15A900
Size:
0x70

Definition at line 1053 of file snd.cpp.

◆ SndSetSeVolf()

void SndSetSeVolf ( int  se_no,
float  vol,
int  voice 
)

Sets the volume of a sound effect, as a share of the loudest volume.

Mangled name:
SndSetSeVolf__Fifi
Address:
0x15AAB0
Size:
0x5C

Definition at line 1108 of file snd.cpp.

◆ SndSetSePanf()

void SndSetSePanf ( int  se_no,
float  pan,
int  voice 
)

Sets the pan of a sound effect, as a share of the widest pan.

Mangled name:
SndSetSePanf__Fifi
Address:
0x15AB10
Size:
0x80

Definition at line 1114 of file snd.cpp.

◆ SndSePlay() [1/2]

void SndSePlay ( int  se_no,
int  vol,
int  voice 
)

Plays one sound effect with an integer volume and pan.

Mangled name:
SndSePlay__Fiii
Address:
0x15A6B0
Size:
0xA4

Definition at line 981 of file snd.cpp.

◆ SndSePlay() [2/2]

void SndSePlay ( int  se_no,
float *  position,
float  near,
float  far 
)

Plays a positional sound effect with distance attenuation.

Mangled name:
SndSePlay__FiPfff
Address:
0x15A820
Size:
0x90

Definition at line 1022 of file snd.cpp.

◆ SndPlayFootSound()

void SndPlayFootSound ( int  kind,
int  foot,
float *  position 
)

Plays the sound of one foot at a world position.

Mangled name:
SndPlayFootSound__FiiPf
Address:
0x15AB90
Size:
0x68
Return type:
Not recovered.

Definition at line 1124 of file snd.cpp.

◆ SndSeSeqPlayStop()

int SndSeSeqPlayStop ( int  se_no,
int  length,
int  voice 
)

Plays or stops one sound-effect sequence.

Mangled name:
SndSeSeqPlayStop__Fiii
Address:
0x15AF20
Size:
0x74

Definition at line 1242 of file snd.cpp.

◆ SndSeSeqInit()

void SndSeSeqInit ( )

Clears every sound-effect sequence slot.

Mangled name:
SndSeSeqInit__Fv
Address:
0x15AED0
Size:
0x4C

Definition at line 1234 of file snd.cpp.

◆ setbilinear()

void setbilinear ( int  on)

Turns the bilinear filter on or off for the sprites that follow.

Mangled name:
setbilinear__Fi
Address:
0x15BC10
Size:
0xC

Definition at line 3499 of file snd.cpp.

◆ set2DSprite() [1/7]

void set2DSprite ( sceVif1Packet *  packet,
CTexture *  texture,
RECT *  screen,
RECT *  texel,
unsigned char  alpha 
)

Draws a textured sprite using plain screen and texture rectangles.

Mangled name:
set2DSprite__FP13sceVif1PacketP8CTextureP4RECTP4RECTUc
Address:
0x15F090
Size:
0x68

Draws a textured sprite in screen space.

Mangled name:
set2DSprite__FP13sceVif1PacketP8CTextureP4RECTP4RECTUc
Address:
0x15F090
Size:
0x68

Definition at line 4063 of file snd.cpp.

◆ set2DSprite_Start()

void set2DSprite_Start ( sceVif1Packet *  packet,
CTexture *  texture 
)

Opens a run of sprites that all draw out of one texture.

Mangled name:
set2DSprite_Start__FP13sceVif1PacketP8CTexture
Address:
0x14C220
Size:
0x19C
Return type:
Not recovered.

Opens a batch of textured two-dimensional sprites in a VIF1 packet.

Mangled name:
set2DSprite_Start__FP13sceVif1PacketP8CTexture
Address:
0x14C220
Size:
0x19C

Definition at line 2032 of file gameutil.cpp.

◆ set2DSprite_End()

void set2DSprite_End ( sceVif1Packet *  packet,
CTexture *  texture 
)

Closes that run.

Mangled name:
set2DSprite_End__FP13sceVif1PacketP8CTexture
Address:
0x14C4F0
Size:
0xA4
Return type:
Not recovered.

Closes the current two-dimensional sprite batch and fixes its tag lengths.

Mangled name:
set2DSprite_End__FP13sceVif1PacketP8CTexture
Address:
0x14C4F0
Size:
0xA4

Definition at line 2099 of file gameutil.cpp.

◆ SetClut()

void SetClut ( sceVif1Packet *  packet,
CTexture *  texture,
i *  clut 
)

Sends the palette a texture draws through.

Mangled name:
SetClut__FP13sceVif1PacketP8CTextureP1i
Address:
0x14C5A0
Size:
0x60
Return type:
Not recovered.

Uploads a texture's 16-by-16 colour lookup table through a VIF1 packet.

Mangled name:
SetClut__FP13sceVif1PacketP8CTextureP1i
Address:
0x14C5A0
Size:
0x60

Definition at line 2118 of file gameutil.cpp.

◆ set2DSprite() [2/7]

void set2DSprite ( sceVif1Packet *  packet,
CTexture *  texture,
const CRect_i_ &  screen,
const CRect_i_ &  texel,
unsigned char  alpha 
)

Draws one part of a texture into a rectangle of the screen, at one alpha.

Mangled name:
set2DSprite__FP13sceVif1PacketP8CTextureRC8CRect_i_RC8CRect_i_Uc
Address:
0x15C310
Size:
0x318

Definition at line 3593 of file snd.cpp.

◆ set2DSprite() [3/7]

void set2DSprite ( sceVif1Packet *  packet,
CTexture *  texture,
const CRect_i_ &  screen,
const CRect_i_ &  texel,
unsigned char  red,
unsigned char  green,
unsigned char  blue,
unsigned char  alpha 
)

Draws one part of a texture into a rectangle of the screen, at one colour.

Mangled name:
set2DSprite__FP13sceVif1PacketP8CTextureRC8CRect_i_RC8CRect_i_UcUcUcUc
Address:
0x15C630
Size:
0x350

Definition at line 3630 of file snd.cpp.

◆ set2DSprite() [4/7]

void set2DSprite ( sceVif1Packet *  packet,
CTexture *  texture,
const CRect_i_ &  screen,
const CRect_i_ &  texel,
spRGBA *  top_left,
spRGBA *  top_right,
spRGBA *  bottom_left,
spRGBA *  bottom_right,
int  mode 
)

Draws one part of a texture into a rectangle of the screen, shading each corner with its own colour.

Mangled name:
set2DSprite__FP13sceVif1PacketP8CTextureRC8CRect_i_RC8CRect_i_P6spRGBAP6spRGBAP6spRGBAP6spRGBAi
Address:
0x15C980
Size:
0x82C

Definition at line 3667 of file snd.cpp.

◆ set2DSpriteRot()

void set2DSpriteRot ( sceVif1Packet *  packet,
CTexture *  texture,
const CRect_i_ &  screen,
const CRect_i_ &  texel,
int  pivot_x,
int  pivot_y,
float  angle,
unsigned char  red,
unsigned char  green,
unsigned char  blue,
unsigned char  alpha 
)

Draws one tinted texture rectangle rotated about a caller-supplied pivot.

Mangled name:
set2DSpriteRot__FP13sceVif1PacketP8CTextureRC8CRect_i_RC8CRect_i_iifUcUcUcUc
Address:
0x15EAD0
Size:
0x5BC

Definition at line 4002 of file snd.cpp.

◆ set2DSprite() [5/7]

void set2DSprite ( sceVif1Packet *  packet,
CTexture *  texture,
const CRect_i_ &  screen,
const CRect_i_ &  texel,
int  pivot_x,
int  pivot_y,
float  angle 
)

Draws one part of a texture into a rectangle of the screen, turned about a point.

Mangled name:
set2DSprite__FP13sceVif1PacketP8CTextureRC8CRect_i_RC8CRect_i_iif
Address:
0x15E540
Size:
0x58C

Definition at line 3944 of file snd.cpp.

◆ set2DSprite() [6/7]

void set2DSprite ( sceVif1Packet *  packet,
CTexture *  texture,
const CRect_i_ &  screen,
int  u,
int  v 
)

Draws a whole texture into a rectangle of the screen, turned about a point.

Mangled name:
set2DSprite__FP13sceVif1PacketP8CTextureRC8CRect_i_ii
Address:
0x15BD00
Size:
0x300

Definition at line 3519 of file snd.cpp.

◆ set2DSpriteC4()

void set2DSpriteC4 ( sceVif1Packet *  packet,
const CRect_i_ &  screen,
spRGBA *  top_left,
spRGBA *  top_right,
spRGBA *  bottom_left,
spRGBA *  bottom_right 
)

Draws an untextured rectangle with a colour at each of its four corners.

Mangled name:
set2DSpriteC4__FP13sceVif1PacketRC8CRect_i_P6spRGBAP6spRGBAP6spRGBAP6spRGBA
Address:
0x15E120
Size:
0x41C

Definition at line 3910 of file snd.cpp.

◆ setColSprite()

void setColSprite ( sceVif1Packet *  packet,
int *  top_left,
int *  top_right,
int *  bottom_left,
int *  bottom_right,
unsigned char  red,
unsigned char  green,
unsigned char  blue,
unsigned char  alpha 
)

Draws one four-cornered shape of one colour.

Mangled name:
setColSprite__FP13sceVif1PacketPiPiPiPiUcUcUcUc
Address:
0x15DED0
Size:
0x250

Definition at line 3886 of file snd.cpp.

◆ set3DColSprite()

void set3DColSprite ( sceVif1Packet *  packet,
int *  top_left,
int *  top_right,
int *  bottom_left,
int *  bottom_right,
spRGBA *  top_left_colour,
spRGBA *  top_right_colour,
spRGBA *  bottom_left_colour,
spRGBA *  bottom_right_colour 
)

Draws a four-cornered shape of the screen in a flat colour, giving each corner its own.

Mangled name:
set3DColSprite__FP13sceVif1PacketPiPiPiPiP6spRGBAP6spRGBAP6spRGBAP6spRGBA
Address:
0x15D1B0
Size:
0x2BC

Definition at line 3728 of file snd.cpp.

◆ set3DSprite() [1/3]

void set3DSprite ( sceVif1Packet *  packet,
CTexture *  texture,
const CRect_i_ &  source,
int *  top_left,
int *  top_right,
int *  bottom_left,
int *  bottom_right,
unsigned char  alpha 
)

Draws one part of a texture into a four-cornered shape of the screen, at one alpha.

Mangled name:
set3DSprite__FP13sceVif1PacketP8CTextureRC8CRect_i_PiPiPiPiUc
Address:
0x15D470
Size:
0x34

Definition at line 3747 of file snd.cpp.

◆ set3DSprite() [2/3]

void set3DSprite ( sceVif1Packet *  packet,
CTexture *  texture,
const CRect_i_ &  source,
int *  top_left,
int *  top_right,
int *  bottom_left,
int *  bottom_right,
spRGBA *  colour 
)

Draws one part of a texture into a projected quadrilateral with one colour.

Mangled name:
set3DSprite__FP13sceVif1PacketP8CTextureRC8CRect_i_PiPiPiPiP6spRGBA
Address:
0x15D4B0
Size:
0x2E0

Draws a textured sprite in world space, with four corner positions and colours.

Mangled name:
set3DSprite__FP13sceVif1PacketP8CTextureRC8CRect_i_PiPiPiPiP6spRGBA
Address:
0x15D4B0
Size:
0x2E0

Definition at line 3761 of file snd.cpp.

◆ set3DSprite() [3/3]

void set3DSprite ( sceVif1Packet *  packet,
CTexture *  texture,
const CRect_i_ &  source,
int *  top_left,
int *  bottom_right,
spRGBA *  colour 
)

Draws a textured sprite in world space between two projected corners.

Mangled name:
set3DSprite__FP13sceVif1PacketP8CTextureRC8CRect_i_PiPiP6spRGBA
Address:
0x15D790
Size:
0x210

Definition at line 3796 of file snd.cpp.

◆ SndSetCamera() [1/2]

void SndSetCamera ( CCamera *  camera)

Tells the sound where the camera stands, so that it can pan what it plays.

Mangled name:
SndSetCamera__FP7CCamera
Address:
0x1596F0
Size:
0x48

Definition at line 445 of file snd.cpp.

◆ SndSetCamera() [2/2]

void SndSetCamera ( float *  position,
float *  rotation 
)

Sets the listener directly from position and rotation vectors.

Tells the sound where the camera stands and which way it looks.

Mangled name:
SndSetCamera__FPfPf
Address:
0x159740
Size:
0x50

Definition at line 457 of file snd.cpp.

◆ SndSeStop()

void SndSeStop ( int  se_no,
int  voice 
)

Stops one playing sound-effect voice.

Stops a sounding effect.

Mangled name:
SndSeStop__Fii
Address:
0x15A8B0
Size:
0x50

Definition at line 1045 of file snd.cpp.

◆ SndSetBgmVol()

void SndSetBgmVol ( int  volume)

Sets the background music's volume.

Mangled name:
SndSetBgmVol__Fi
Address:
0x159D20
Size:
0x70 Sets the background-music volume.

Sets the background music's volume.

Mangled name:
SndSetBgmVol__Fi
Address:
0x159D20
Size:
0x70

Definition at line 672 of file snd.cpp.

◆ SndSetBgmVolf()

void SndSetBgmVolf ( float  volume)

Sets the background music's volume as a share of its default.

Mangled name:
SndSetBgmVolf__Ff
Address:
0x159D90
Size:
0x50

Definition at line 692 of file snd.cpp.

◆ SndGetBgmVol()

int SndGetBgmVol ( )

Returns the background-music volume that is set now.

Mangled name:
SndGetBgmVol__Fv
Address:
0x159DE0
Size:
0xC

Definition at line 696 of file snd.cpp.

◆ SndBgmCheck()

int SndBgmCheck ( )

Returns the play state of the background music: 0 while it is stopped and 1 while it plays.

Mangled name:
SndBgmCheck__Fv
Address:
0x159D00
Size:
0xC

Definition at line 657 of file snd.cpp.

◆ SndGetBgmNo()

int SndGetBgmNo ( )

Returns the number of the background music that is loaded now, or -1 when no set counts as loaded.

Mangled name:
SndGetBgmNo__Fv
Address:
0x159D10
Size:
0xC

Definition at line 661 of file snd.cpp.

◆ SndCheckFade()

int SndCheckFade ( )

Returns whether the background music has no fade running.

Mangled name:
SndCheckFade__Fv
Address:
0x15A090
Size:
0x14

Definition at line 776 of file snd.cpp.

◆ SndSyncBG()

int SndSyncBG ( )

Polls the background sound loader.

Reports whether any of the background sound loads is still running.

Mangled name:
SndSyncBG__Fv
Address:
0x159670
Size:
0x80

Definition at line 429 of file snd.cpp.

◆ SndGetDefaultBgmVol()

int SndGetDefaultBgmVol ( )

Returns the volume of the background-music sequence the MIDI player holds, or zero when no background-music set is loaded.

Mangled name:
SndGetDefaultBgmVol__Fv
Address:
0x159DF0
Size:
0x48

Definition at line 700 of file snd.cpp.

◆ SndBgmSyncBG()

int SndBgmSyncBG ( )

Polls the background-music bank load, and hands the file to the driver once it lands.

Mangled name:
SndBgmSyncBG__Fv
Address:
0x159AB0
Size:
0x80

Definition at line 594 of file snd.cpp.

◆ SndSoundSyncBG()

int SndSoundSyncBG ( )

Polls the sound-effect bank load, and hands the file to the driver once it lands.

Mangled name:
SndSoundSyncBG__Fv
Address:
0x15A630
Size:
0x80

Definition at line 966 of file snd.cpp.

◆ SndVoiceSyncBG()

int SndVoiceSyncBG ( )

Polls the voice bank load, and hands the file to the driver once it lands.

Mangled name:
SndVoiceSyncBG__Fv
Address:
0x15B530
Size:
0x80

Definition at line 1446 of file snd.cpp.

◆ SndSPSePlay()

void SndSPSePlay ( int  se_no,
int  vol 
)

Plays one menu sound effect.

Plays one special sound effect.

Mangled name:
SndSPSePlay__Fii
Address:
0x15B880
Size:
0x7C

Definition at line 1570 of file snd.cpp.

◆ SndSPSeStop()

void SndSPSeStop ( int  se_no)

Stops a playing special sound effect.

Mangled name:
SndSPSeStop__Fi
Address:
0x15B900
Size:
0x44

Definition at line 1586 of file snd.cpp.

◆ SndSetSPSeVolf()

void SndSetSPSeVolf ( int  se_no,
float  volume 
)

Sets the normalized volume of a playing special sound effect.

Sets a special sound effect's volume as a share of its table value.

Mangled name:
SndSetSPSeVolf__Fif
Address:
0x15B950
Size:
0xB0

Definition at line 1601 of file snd.cpp.

◆ SndSetSPSePanf()

void SndSetSPSePanf ( int  se_no,
float  pan 
)

Sets the normalized pan of a playing special sound effect.

Sets a special sound effect's pan as a share of the widest pan.

Mangled name:
SndSetSPSePanf__Fif
Address:
0x15BA00
Size:
0xA8

Definition at line 1629 of file snd.cpp.

◆ SndSPSeSyncBG()

int SndSPSeSyncBG ( )

Returns zero once the background sound-effect load has finished.

Polls the special-effect set load and hands the file to the driver once it lands.

Mangled name:
SndSPSeSyncBG__Fv
Address:
0x15B800
Size:
0x80

Definition at line 1548 of file snd.cpp.

◆ SndBgmLoad()

int SndBgmLoad ( int  set_no)

Reads one background-music set and hands it to the driver, and returns 1; returns 0 when that set is already loaded or its file cannot be read.

Mangled name:
SndBgmLoad__Fi
Address:
0x159960
Size:
0x90

Definition at line 546 of file snd.cpp.

◆ SndBgmPlay()

void SndBgmPlay ( int  track_no)

Plays one track of the loaded background music set.

Mangled name:
SndBgmPlay__Fi
Address:
0x159B30
Size:
0x68

Definition at line 609 of file snd.cpp.

◆ SndGetNowSetNo()

int SndGetNowSetNo ( )

Returns the sound-effect set that is loaded now, or -1 when none is.

Mangled name:
SndGetNowSetNo__Fv
Address:
0x15A440
Size:
0xC

Definition at line 903 of file snd.cpp.

◆ SndSetReadBuffer()

void SndSetReadBuffer ( unsigned int *  buffer)

Points the sound loader at its read buffer.

Mangled name:
SndSetReadBuffer__FPUi
Address:
0x159630
Size:
0x38

Definition at line 412 of file snd.cpp.

◆ SndSoundLoad()

int SndSoundLoad ( int  set_no)

Reads one sound-effect set and hands it to the driver, and returns 1; returns 0 when that set is already loaded or its file cannot be read.

Mangled name:
SndSoundLoad__Fi
Address:
0x15A4F0
Size:
0x90

Definition at line 919 of file snd.cpp.

◆ SndBgmLoadBG()

int SndBgmLoadBG ( int  set_no,
u_int *  buffer,
int *  size 
)

Starts loading a background-music bank into a caller-provided buffer, and returns whether it did: zero when that bank is already the one loaded, or when the load could not be started.

Starts loading one music set in the background.

Mangled name:
SndBgmLoadBG__FiPUiPi
Address:
0x1599F0
Size:
0xC0

Definition at line 571 of file snd.cpp.

◆ SndSoundLoadBG()

int SndSoundLoadBG ( int  set_no,
u_int *  buffer,
int *  size 
)

Starts loading a sound-effect bank into a caller-provided buffer, and returns whether it did: zero when that set is already the one loaded, or when the load could not be started.

Starts loading one sound-effect set in the background.

Mangled name:
SndSoundLoadBG__FiPUiPi
Address:
0x15A580
Size:
0xAC

Definition at line 944 of file snd.cpp.

◆ SndVoiceLoadBG()

int SndVoiceLoadBG ( int  set_no,
u_int *  buffer,
int *  size 
)

Starts loading a voice bank into a caller-provided buffer, and returns whether it did: zero when that set is already the one loaded, or when the load could not be started.

Starts loading one voice set in the background.

Mangled name:
SndVoiceLoadBG__FiPUiPi
Address:
0x15B480
Size:
0xAC

Definition at line 1424 of file snd.cpp.

◆ SndSPSeLoad()

int SndSPSeLoad ( int  set_no)

Reads one special-effect set and hands it to SetSPSeFile; returns 0 when the set is already current or its file cannot be read, otherwise 1.

Mangled name:
SndSPSeLoad__Fi
Address:
0x15B6D0
Size:
0x90

Definition at line 1505 of file snd.cpp.

◆ SndSPSeLoadBG()

int SndSPSeLoadBG ( int  set_no,
u_int *  buffer,
int *  size 
)

Starts loading a special-effect sound bank into a caller-provided buffer, and returns whether the load was started.

Mangled name:
SndSPSeLoadBG__FiPUiPi
Address:
0x15B760
Size:
0x94

Definition at line 1523 of file snd.cpp.

◆ SndBgmFadeIn()

void SndBgmFadeIn ( int  frames,
int  volume,
int  start_volume 
)

Fades a background-music stream in.

Fades the background music up to a volume over a number of steps.

Mangled name:
SndBgmFadeIn__Fiii
Address:
0x159E40
Size:
0xC8

Definition at line 715 of file snd.cpp.

◆ SndBgmFadeOut()

void SndBgmFadeOut ( int  frames,
int  volume 
)

Fades a background-music stream out.

Fades the background music down to a volume over a number of steps.

Mangled name:
SndBgmFadeOut__Fii
Address:
0x159F10
Size:
0x74

Definition at line 742 of file snd.cpp.

◆ SndBgmFadeInOut()

void SndBgmFadeInOut ( )

Steps the background-music fade, and applies the volume it reaches.

Mangled name:
SndBgmFadeInOut__Fv
Address:
0x159F90
Size:
0xF4

Definition at line 751 of file snd.cpp.

◆ setAlphaFlag()

void setAlphaFlag ( sceVif1Packet *  packet,
sceGsAlpha *  alpha 
)

Submits the blending register that sprites draw with.

Mangled name:
setAlphaFlag__FP13sceVif1PacketP10sceGsAlpha
Address:
0x15BC20
Size:
0xDC

Definition at line 3503 of file snd.cpp.

◆ set2DSprite() [7/7]

void set2DSprite ( sceVif1Packet *  packet,
CTexture *  texture,
const CRect_i_ &  screen,
const CRect_i_ &  texel 
)

Draws a sprite with the default alpha.

Mangled name:
set2DSprite__FP13sceVif1PacketP8CTextureRC8CRect_i_RC8CRect_i_
Address:
0x15C000
Size:
0x304

Definition at line 3556 of file snd.cpp.

Variable Documentation

◆ Command__3

TAG_PARAM Command__3[]
extern

The two script tags LoadSoundInfo recognises.

Definition at line 3446 of file snd.cpp.

◆ SoundInfo

SND_INFO* SoundInfo
extern

The sound configuration the command handlers fill in.

Definition at line 3453 of file snd.cpp.

◆ se_list

int se_list
extern

Count of entries the TABLE command has read this file.

Definition at line 3451 of file snd.cpp.

◆ geo

SND_SE_INFO geo[199]
extern

The basic sound-effect set the town maps use.

Definition at line 2352 of file snd.cpp.

◆ dun

SND_SE_INFO dun[199]
extern

The basic sound-effect set the dungeon maps use.

Definition at line 2407 of file snd.cpp.

◆ se_info

SND_SE_INFO se_info[2801]
extern

The fixed sound-effect table, addressed by sound number.

Definition at line 1646 of file snd.cpp.

◆ cap_se_info

SND_SE_INFO* cap_se_info[101]
extern

The chapter sound-effect sets; entries the game never loads are zero.

Definition at line 3270 of file snd.cpp.

◆ voice_info

SND_SE_INFO* voice_info[11]
extern

The character voice sets; entries the game never loads are zero.

Definition at line 3418 of file snd.cpp.

◆ special_se_info

SND_SE_INFO special_se_info[65]
extern

The menu sound-effect table, addressed by menu sound number.

Definition at line 3425 of file snd.cpp.