42 #ifndef __LV2_AUDIO_H__ 43 #define __LV2_AUDIO_H__ 48 #define AUDIO_BLOCK_SAMPLES 256 51 #define AUDIO_STATUS_READY 1 53 #define AUDIO_STATUS_RUN 2 55 #define AUDIO_STATUS_CLOSE 0x1010 58 #define AUDIO_PORT_2CH 2 60 #define AUDIO_PORT_8CH 8 63 #define AUDIO_PORT_INITLEVEL 0x1000 66 #define AUDIO_BLOCK_8 8 68 #define AUDIO_BLOCK_16 16 70 #define AUDIO_BLOCK_32 32 s32 audioSetNotifyEventQueue(sys_ipc_key_t queueKey)
Set the current event queue for audio events.
u64 numChannels
Number of channels.
Definition: audio.h:85
s32 audioGetPortConfig(u32 portNum, audioPortConfig *config)
Get config of opened audio port.
u32 readIndex
index of currently read block in audio port buffer
Definition: audio.h:113
u32 audioDataStart
start address of audio port buffer
Definition: audio.h:132
u64 attrib
Special attributes.
Definition: audio.h:99
Audio port config data structure.
Definition: audio.h:111
s32 audioPortStop(u32 portNum)
Stop playing on audio port.
struct _audio_port_config audioPortConfig
Audio port config data structure.
u64 channelCount
number of channels
Definition: audio.h:122
s32 audioPortStart(u32 portNum)
Start playing on audio port.
s32 audioQuit()
Initialize audio subsystem.
u64 numBlocks
number of blocks
Definition: audio.h:130
Event queue management functions.
s32 audioPortOpen(audioPortParam *param, u32 *portNum)
Open audio port.
s32 audioCreateNotifyEventQueue(sys_event_queue_t *eventQ, sys_ipc_key_t *queueKey)
Create a notify event queue for audio events.
s32 audioRemoveNotifyEventQueue(sys_ipc_key_t queueKey)
Disconnect the current event queue from the audio subsystem.
u32 status
audio port status
Definition: audio.h:121
u64 numBlocks
Number of blocks in audio buffer.
Definition: audio.h:93
s32 audioPortClose(u32 portNum)
Close an opened audio port.
f32 level
Definition: audio.h:107
struct _audio_port_param audioPortParam
Audio port parameter data structure.
u32 portSize
port size
Definition: audio.h:131
Audio port parameter data structure.
Definition: audio.h:77
s32 audioInit()
Initialize audio subsystem.