ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
Go to the source code of this file.
Functions | |
int | sndLoadSample (void *buf, u32 spuaddr, int size) |
u32 | sndQueryMaxFreeMemSize (void) |
int | sndStreamOpen (char *file, u32 voices, u32 flags, u32 bufaddr, u32 bufsize) |
int | sndStreamClose (void) |
int | sndStreamPlay (void) |
int | sndStreamPause (void) |
int | sndStreamSetPosition (int block) |
int | sndStreamGetPosition (void) |
int | sndStreamSetVolume (int left, int right) |
PS2SND definitions.
Definition in file ps2snd.h.
#define PS2SND_QueryMaxFreeMemSize 99 /* XXX: Hack until i can figure out how to do it right */ |
int sndLoadSample | ( | void * | buf, |
u32 | spuaddr, | ||
int | size | ||
) |
Definition at line 276 of file ps2snd.c.
References SifDmaTransfer_t::attr, SifDmaTransfer_t::dest, FlushCache(), sceSdVoiceTrans(), sceSdVoiceTransStatus(), SD_TRANS_WRITE, SifAllocIopHeap(), SifDmaStat(), SifFreeIopHeap(), SifSetDma(), SifDmaTransfer_t::size, sndQueryMaxFreeMemSize(), and SifDmaTransfer_t::src.
u32 sndQueryMaxFreeMemSize | ( | void | ) |
Definition at line 208 of file ps2snd.c.
References ALIGNED, NULL, PS2SND_QueryMaxFreeMemSize, sd_client, and SifCallRpc().
Referenced by sndLoadSample().
int sndStreamClose | ( | void | ) |
Definition at line 230 of file ps2snd.c.
References ALIGNED, NULL, PS2SND_StreamClose, sd_client, and SifCallRpc().
int sndStreamGetPosition | ( | void | ) |
Definition at line 269 of file ps2snd.c.
References ALIGNED, NULL, PS2SND_StreamGetPosition, sd_client, and SifCallRpc().
Definition at line 215 of file ps2snd.c.
References ALIGNED, NULL, PS2SND_StreamOpen, sd_client, and SifCallRpc().
Referenced by main().
int sndStreamPause | ( | void | ) |
Definition at line 245 of file ps2snd.c.
References ALIGNED, NULL, PS2SND_StreamPause, sd_client, and SifCallRpc().
int sndStreamPlay | ( | void | ) |
Definition at line 237 of file ps2snd.c.
References ALIGNED, NULL, PS2SND_StreamPlay, sd_client, and SifCallRpc().
Referenced by main().
int sndStreamSetPosition | ( | int | block | ) |
Definition at line 252 of file ps2snd.c.
References ALIGNED, NULL, PS2SND_StreamSetPosition, sd_client, and SifCallRpc().
int sndStreamSetVolume | ( | int | left, |
int | right | ||
) |
Definition at line 260 of file ps2snd.c.
References ALIGNED, NULL, PS2SND_StreamSetVolume, sd_client, and SifCallRpc().