19 #include <sys/cdefs.h>
int spu_dma_init()
Initialize SPU DMA support.
void spu_memread(void *to, uint32 from, int length)
Copy a block of data from sound RAM.
void spu_cdda_pan(int left_pan, int right_pan)
Set CDDA panning.
void spu_dma_shutdown()
Shutdown SPU DMA support.
int spu_dma_transfer(void *from, uint32 dest, uint32 length, int block, spu_dma_callback_t callback, ptr_t cbdata)
Copy a block of data from SH4 RAM to sound RAM via DMA.
void spu_memset(uint32 to, uint32 what, int length)
Set a block of sound RAM to the specified value.
g2_dma_callback_t spu_dma_callback_t
SPU DMA callback type.
Definition: spu.h:72
uint32 ptr_t
Pointer arithmetic type.
Definition: types.h:47
void(* g2_dma_callback_t)(ptr_t data)
Definition: g2bus.h:74
unsigned long uint32
32-bit unsigned integer
Definition: types.h:28
int spu_init()
Initialize the SPU.
void spu_memload(uint32 to, void *from, int length)
Copy a block of data to sound RAM.
int spu_shutdown()
Shutdown the SPU.
void spu_enable()
Enable the SPU.
void spu_master_mixer(int volume, int stereo)
Set master mixer settings.
void spu_write_wait()
Waits for the sound FIFO to empty.
void spu_disable()
Disable the SPU.
void spu_cdda_volume(int left_volume, int right_volume)
Set CDDA volume.