|
sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
|
#include <tamtypes.h>#include <kernel.h>#include <sifrpc.h>#include <stdarg.h>#include <string.h>#include <stdlib.h>#include <fcntl.h>#include <unistd.h>#include <stdio.h>#include <iopcontrol.h>#include "ahx_rpc.h"Go to the source code of this file.
Macros | |
| #define | IOP_MEM 0xbc000000 |
| #define | AHX_BINDRPC() |
Functions | |
| void | iop_readwrite (void *addr, void *buf, u32 size, u32 read) |
| int | AHX_Init () |
| int | AHX_Play () |
| int | AHX_Pause () |
| int | AHX_SubSong (int songNo) |
| int | AHX_SetVolume (int volumePercentage) |
| int | AHX_SetBoost (int boostValue) |
| int | AHX_ToggleOversampling () |
| int | AHX_Quit () |
| int | AHX_LoadSongBuffer (char *songdata, int songsize) |
| int | AHX_LoadSong (char *filename) |
Variables | |
| char * | songbuffer_addr |
AHX EE-side RPC code.
Definition in file ahx_rpc.c.
| #define AHX_BINDRPC | ( | ) |
| int AHX_Init | ( | ) |
| int AHX_LoadSong | ( | char * | filename | ) |
| int AHX_LoadSongBuffer | ( | char * | songdata, |
| int | songsize ) |
| int AHX_Pause | ( | ) |
| int AHX_Play | ( | ) |
| int AHX_Quit | ( | ) |
| 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_SetVolume | ( | int | volumePercentage | ) |
| 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_ToggleOversampling | ( | ) |
| void iop_readwrite | ( | void * | addr, |
| void * | buf, | ||
| u32 | size, | ||
| u32 | read ) |