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.
s32 audioInit()
Initialize audio subsystem.
s32 audioPortOpen(audioPortParam *param, u32 *portNum)
Open audio port.
s32 audioRemoveNotifyEventQueue(sys_ipc_key_t queueKey)
Disconnect the current event queue from the audio subsystem.
struct _audio_port_config audioPortConfig
Audio port config data structure.
s32 audioPortStop(u32 portNum)
Stop playing on audio port.
s32 audioPortClose(u32 portNum)
Close an opened audio port.
struct _audio_port_param audioPortParam
Audio port parameter data structure.
s32 audioQuit()
Initialize audio subsystem.
s32 audioCreateNotifyEventQueue(sys_event_queue_t *eventQ, sys_ipc_key_t *queueKey)
Create a notify event queue for audio events.
s32 audioPortStart(u32 portNum)
Start playing on audio port.
s32 audioGetPortConfig(u32 portNum, audioPortConfig *config)
Get config of opened audio port.
Event queue management functions.
Audio port config data structure.
u64 numBlocks
number of blocks
u32 status
audio port status
u32 audioDataStart
start address of audio port buffer
u64 channelCount
number of channels
u32 readIndex
index of currently read block in audio port buffer
Audio port parameter data structure.
u64 numBlocks
Number of blocks in audio buffer.
u64 numChannels
Number of channels.
u64 attrib
Special attributes.