KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Functions related to sound. More...
Go to the source code of this file.
Macros | |
#define | SPU_RAM_BASE 0x00800000 |
Sound ram address from the SH4 side. | |
#define | SPU_RAM_UNCACHED_BASE (MEM_AREA_P2_BASE | SPU_RAM_BASE) |
Typedefs | |
typedef g2_dma_callback_t | spu_dma_callback_t |
SPU DMA callback type. | |
Functions | |
void | spu_memload (uintptr_t to, void *from, size_t length) |
Copy a block of data to sound RAM. | |
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_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. | |
void | spu_memset (uintptr_t to, uint32_t what, size_t length) |
Set a block of sound RAM to the specified value. | |
void | spu_memset_sq (uintptr_t to, uint32_t what, size_t length) |
Set a block of sound RAM to the specified value. | |
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_disable (void) |
Disable the SPU. | |
void | spu_cdda_volume (int left_volume, int right_volume) |
Set CDDA volume. | |
void | spu_cdda_pan (int left_pan, int right_pan) |
Set CDDA panning. | |
void | spu_master_mixer (int volume, int stereo) |
Set master mixer settings. | |
int | spu_init (void) |
Initialize the SPU. | |
int | spu_shutdown (void) |
Shutdown the SPU. | |
void | spu_reset_chans (void) |
Reset SPU channels. | |
Functions related to sound.
This file deals with memory transfers and the like for the sound hardware.