PS2SDK
PS2 Homebrew Libraries
|
Go to the source code of this file.
Macros | |
#define | AHX_IRX 0xC001D0E |
#define | AHX_INIT 0x01 |
#define | AHX_PLAY 0x02 |
#define | AHX_PAUSE 0x03 |
#define | AHX_QUIT 0x04 |
#define | AHX_LOADSONG 0x05 |
#define | AHX_SETVOLUME 0x06 |
#define | AHX_SETBOOST 0x07 |
#define | AHX_OVERSAMPLING 0x08 |
#define | AHX_SUBSONG 0x09 |
Functions | |
int | AHX_Init () |
int | AHX_LoadSongBuffer (char *songdata, int songsize) |
int | AHX_LoadSong (char *filename) |
int | AHX_SubSong (int songNo) |
int | AHX_SetVolume (int volumePercentage) |
int | AHX_SetBoost (int boostValue) |
int | AHX_ToggleOversampling () |
int | AHX_Quit () |
int | AHX_Play () |
int | AHX_Pause () |
AHX EE-side RPC code.
Definition in file ahx_rpc.h.
int AHX_Init | ( | ) |
int AHX_LoadSongBuffer | ( | char * | songdata, |
int | songsize | ||
) |
AHX LongSongBuffer
This loads a song from a buffer in memory. It copies [songsize] bytes from [songdata] to the IOP memory song buffer.
Definition at line 175 of file ahx_rpc.c.
References iop_readwrite().
Referenced by AHX_LoadSong().
int AHX_LoadSong | ( | char * | filename | ) |
AHX LongSongBuffer
This loads a song from disk etc. It loads the songdata into memory and passes it to LongSongBuffer.
Definition at line 199 of file ahx_rpc.c.
References AHX_LoadSongBuffer().
int AHX_SubSong | ( | int | songNo | ) |
AHX Play Subsong
Sends a call the the loaded AHX IRX, telling it to load subsong (songNo). You can determine the number of subsongs by checking the values returned by AHX_LoadSong() and AHX_LoadSongBuffer();
int AHX_SetVolume | ( | int | volumePercentage | ) |
int AHX_SetBoost | ( | int | boostValue | ) |
AHX Set Boost
Sends a call the the loaded AHX IRX, telling it to change the output boost value. Boost value multiplies the level of the output for the AHX Mixer. A boost value of 1 is twice as load as a boost value of 0. A boost value of 3 is twice as load as 2 etc etc (ala DB)
int AHX_ToggleOversampling | ( | ) |
int AHX_Quit | ( | ) |
int AHX_Play | ( | ) |