34#define SPU_RAM_BASE 0x00800000
35#define SPU_RAM_UNCACHED_BASE (MEM_AREA_P2_BASE | SPU_RAM_BASE)
98void spu_memset(uintptr_t to, uint32_t what,
size_t length);
void spu_master_mixer(int volume, int stereo)
Set master mixer settings.
void spu_cdda_volume(int left_volume, int right_volume)
Set CDDA volume.
void spu_reset_chans(void)
Reset SPU channels.
g2_dma_callback_t spu_dma_callback_t
SPU DMA callback type.
Definition spu.h:121
int spu_dma_transfer(void *from, uintptr_t dest, size_t length, int block, spu_dma_callback_t callback, void *cbdata)
Copy a block of data from SH4 RAM to sound RAM via DMA.
void spu_enable(void)
Enable the SPU.
void spu_memload_dma(uintptr_t to, void *from, size_t length)
Copy a block of data to sound RAM by using DMA (or SQ on fails).
void spu_memread(void *to, uintptr_t from, size_t length)
Copy a block of data from sound RAM.
int spu_shutdown(void)
Shutdown the SPU.
void spu_cdda_pan(int left_pan, int right_pan)
Set CDDA panning.
void spu_memset_sq(uintptr_t to, uint32_t what, size_t length)
Set a block of sound RAM to the specified value.
void spu_memset(uintptr_t to, uint32_t what, size_t length)
Set a block of sound RAM to the specified value.
void spu_memload_sq(uintptr_t to, void *from, size_t length)
Copy a block of data to sound RAM by using the Store Queues.
void spu_disable(void)
Disable the SPU.
void spu_memload(uintptr_t to, void *from, size_t length)
Copy a block of data to sound RAM.
int spu_init(void)
Initialize the SPU.
void(* g2_dma_callback_t)(void *data)
G2Bus DMA interrupt callback type.
Definition g2bus.h:88
Constants for areas of the system memory map.