This struct is sent over IPC and must look exactly like this.
Definition: audio.h:47
Audio output.
Definition: audio.h:36
uint32_t result_t
Function result.
Definition: types.h:51
result_t audio_ipc_output_get_released_buffer(audio_output_t *out, uint32_t *num_released, audio_output_buffer_t **buffer)
audio_ipc_output_get_released_buffer
result_t audio_ipc_output_register_buffer_event(audio_output_t *out, handle_t *event)
Get buffer-release event.
result_t audio_ipc_output_stop(audio_output_t *out)
Stop audio output.
result_t audio_ipc_output_append_buffer(audio_output_t *out, audio_output_buffer_t *buffer)
audio_ipc_output_append_buffer
result_t audio_ipc_open_output(const char name[0x20], audio_output_t *out)
Opens an audio output.
void audio_ipc_output_close(audio_output_t *out)
Closes the audio output.
result_t audio_ipc_list_outputs(char(*names)[0x20], int max_names, uint32_t *num_names)
Lists the audio outputs.
uint32_t handle_t
Resource handle.
Definition: types.h:38
result_t audio_ipc_output_start(audio_output_t *out)
Start audio output.
void audio_ipc_finalize()
Finalize audio.
result_t audio_ipc_init()
Initialize Audio.
result_t audio_ipc_output_get_state(audio_output_t *out, audio_output_state_t *state)
Get the current state of the audio output.
audio_output_state_t
Audio output state.
Definition: audio.h:27
result_t audio_ipc_output_contains_buffer(audio_output_t *out, audio_output_buffer_t *buffer, bool *contains)
audio_ipc_output_contains_buffer