48 #define AI_STREAM_STOP 0x00000000 49 #define AI_STREAM_START 0x00000001 62 #define AI_SAMPLERATE_32KHZ 0x00000000 63 #define AI_SAMPLERATE_48KHZ 0x00000001 u8 AUDIO_GetStreamVolLeft()
Get streaming volume of the left channel.
u32 AUDIO_GetDMALength()
Get the DMA transfer length configured in the audio DMA interface.
Definition: audio.c:363
void AUDIO_ResetStreamSampleCnt()
Reset the stream sample count register.
u32 AUDIO_GetStreamSampleRate()
Get streaming sample rate.
u8 AUDIO_GetStreamVolRight()
Get streaming volume of the right channel.
GLenum GLsizei len
Definition: glext.h:7389
void AUDIO_SetStreamVolLeft(u8 vol)
Set streaming volume on the left channel.
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
void AUDIO_Init(u8 *stack)
Initialize the AUDIO subsystem.
Definition: audio.c:199
u16 AUDIO_GetDMAEnableFlag()
Get the audio DMA flag.
Definition: audio.c:338
void callback(s32 result, dvdcmdblk *block)
Definition: dvd.c:2293
void AUDIO_SetDSPSampleRate(u8 rate)
Set the sampling rate for the DSP interface.
Definition: audio.c:368
void AUDIO_SetStreamPlayState(u32 state)
Set the play state for the streaming audio interface.
void AUDIO_StopDMA()
Stop the previously started audio DMA operation.
Definition: audio.c:348
uint16_t u16
16bit unsigned integer
Definition: gctypes.h:18
u32 AUDIO_GetDSPSampleRate()
Get the sampling rate for the DSP interface.
Definition: audio.c:383
void AUDIO_SetStreamSampleRate(u32 rate)
Set streaming sample rate.
u32 AUDIO_GetDMAStartAddr()
Get the main memory address for the DMA operation.
Definition: audio.c:358
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
void(* AIDCallback)(void)
function pointer typedef for the user's Audio DMA interrupt callback
Definition: audio.h:79
void AUDIO_SetStreamTrigger(u32 cnt)
Set the sample count for the stream trigger.
AISCallback AUDIO_RegisterStreamCallback(AISCallback callback)
Register a user callback function for the AUDIO streaming interface.
void AUDIO_SetStreamVolRight(u8 vol)
set streaming volume of the right channel.
u32 AUDIO_GetStreamPlayState()
Get the play state from the streaming audio interface.
AIDCallback AUDIO_RegisterDMACallback(AIDCallback callback)
Register a user callback function for the audio DMA interface.
Definition: audio.c:315
void AUDIO_StartDMA()
Start the audio DMA operation.
Definition: audio.c:343
void AUDIO_InitDMA(u32 startaddr, u32 len)
Initialize an audio DMA transfer.
Definition: audio.c:327
uint8_t u8
8bit unsigned integer
Definition: gctypes.h:17
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19
void(* AISCallback)(u32 smp_cnt)
function pointer typedef for the user's Audio Streaming interrupt callback
Definition: audio.h:88
u32 AUDIO_GetDMABytesLeft()
Get the count of bytes, left to play, from the audio DMA interface.
Definition: audio.c:353