|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
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] |
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.
| 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 | ||
| ) |
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.
| 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 | ||
| ) |
Works out the volume and the pan of a sound at a position.
Calculates the volume and stereo balance of a sound at a world position.
| 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 | ||
| ) |
Draws a textured sprite using plain screen and texture rectangles.
Draws a textured sprite in screen space.
| void set2DSprite_Start | ( | sceVif1Packet * | packet, |
| CTexture * | texture | ||
| ) |
Opens a run of sprites that all draw out of one texture.
Opens a batch of textured two-dimensional sprites in a VIF1 packet.
Definition at line 2032 of file gameutil.cpp.
| void set2DSprite_End | ( | sceVif1Packet * | packet, |
| CTexture * | texture | ||
| ) |
Closes that run.
Closes the current two-dimensional sprite batch and fixes its tag lengths.
Definition at line 2099 of file gameutil.cpp.
| void SetClut | ( | sceVif1Packet * | packet, |
| CTexture * | texture, | ||
| i * | clut | ||
| ) |
Sends the palette a texture draws through.
Uploads a texture's 16-by-16 colour lookup table through a VIF1 packet.
Definition at line 2118 of file gameutil.cpp.
| 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 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 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 | ||
| ) |
Draws one part of a texture into a projected quadrilateral with one colour.
Draws a textured sprite in world space, with four corner positions and colours.
| 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 | ||
| ) |
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.
| 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.
| 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.
| 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 | ||
| ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |