|
PS2SDK
PS2 Homebrew Libraries
|
#include "types.h"#include "irx.h"#include "loadcore.h"#include "stdio.h"#include "intrman.h"#include "freesd.h"#include "spu2regs.h"
Include dependency graph for freesd.c:Go to the source code of this file.
Macros | |
| #define | BANNER "FREESD %s\n" |
| #define | VERSION "v1.01" |
| #define | MODNAME "freesd" |
| #define | M_PRINTF(format, args...) |
Functions | |
| IRX_ID (MODNAME, 1, 1) | |
| void | SetESA (s32 core, u32 value) |
| u32 | GetEEA (int chan) |
| void | nopdelay () |
| void | InitSpu2 () |
| int | _start (int argc, char *argv[]) |
| int | TransInterrupt (void *data) |
| int | Spu2Interrupt (void *data) |
| void | RegisterInterrupts () |
| void | ResetAll () |
| void | Reset (s32 flag) |
| sceSdSpu2IntrHandler | sceSdSetSpu2IntrHandler (sceSdSpu2IntrHandler handler, void *data) |
| void | InitVoices () |
| void | InitCoreVolume (s32 flag) |
| void | InitSpdif () |
| int | sceSdInit (int flag) |
| void | sceSdSetParam (u16 reg, u16 val) |
| u16 | sceSdGetParam (u16 reg) |
| void | sceSdSetSwitch (u16 reg, u32 val) |
| u32 | sceSdGetSwitch (u16 reg) |
| u32 | DmaStop (u32 core) |
| void | SetDmaWrite (s32 chan) |
| void | SetDmaRead (s32 chan) |
| u16 | sceSdNote2Pitch (u16 center_note, u16 center_fine, u16 note, short fine) |
| u16 | sceSdPitch2Note (u16 center_note, u16 center_fine, u16 pitch) |
| void | SetSpdifMode (u16 val) |
| void | sceSdSetCoreAttr (u16 entry, u16 val) |
| u16 | sceSdGetCoreAttr (u16 entry) |
| sceSdTransIntrHandler | sceSdSetTransIntrHandler (int chan, sceSdTransIntrHandler func, void *data) |
| int | sceSdQuit () |
| void | sceSdSetAddr (u16 reg, u32 val) |
| u32 | sceSdGetAddr (u16 reg) |
| SdIntrCallback | sceSdSetTransCallback (s32 core, SdIntrCallback cb) |
| SdIntrCallback | sceSdSetIRQCallback (SdIntrCallback cb) |
Variables | |
| struct irx_export_table | _exp_libsd |
| u32 | BlockTransBuff [2] |
| u32 | BlockTransAddr [2] |
| u32 | BlockTransSize [2] |
| u32 | EffectSizes [10] |
| sceSdEffectAttr | EffectAttr [2] |
| u32 | EffectAddr [2] |
| u32 | VoiceTransStatus [2] |
| volatile u16 | VoiceTransComplete [2] |
| u32 | VoiceTransIoMode [2] |
| u16 | SpdifSettings |
| void * | Spu2IntrData |
| sceSdTransIntrHandler | TransIntrHandlers [2] |
| SdIntrCallback | TransIntrCallbacks [2] |
| sceSdSpu2IntrHandler | Spu2IntrHandler |
| SdIntrCallback | Spu2IrqCallback |
| IntrData | TransIntrData [2] |
| volatile u16 * | ParamRegList [] |
| u16 | NotePitchTable [] |
| u16 | VoiceDataInit [16] |
| u8 | CoreAttrShifts [4] = {7, 6, 14, 8} |
Part of the IOP Sound Driver
Definition in file freesd.c.
| #define M_PRINTF | ( | format, | |
| args... ) |
| sceSdSpu2IntrHandler sceSdSetSpu2IntrHandler | ( | sceSdSpu2IntrHandler | handler, |
| void * | data ) |
| u16 sceSdNote2Pitch | ( | u16 | center_note, |
| u16 | center_fine, | ||
| u16 | note, | ||
| short | fine ) |
| u16 sceSdPitch2Note | ( | u16 | center_note, |
| u16 | center_fine, | ||
| u16 | pitch ) |
| sceSdTransIntrHandler sceSdSetTransIntrHandler | ( | int | chan, |
| sceSdTransIntrHandler | func, | ||
| void * | data ) |
| SdIntrCallback sceSdSetTransCallback | ( | s32 | core, |
| SdIntrCallback | cb ) |
|
extern |
| volatile u16* ParamRegList[] |
| u16 NotePitchTable[] |
| u16 VoiceDataInit[16] |