35#define AUDIO_ERR_NOT_INITIALIZED 1
36#define AUDIO_ERR_ALREADY_INITIALIZED 2
37#define AUDIO_ERR_RPC_FAILED 3
38#define AUDIO_ERR_FORMAT_NOT_SUPPORTED 4
39#define AUDIO_ERR_OUT_OF_MEMORY 5
40#define AUDIO_ERR_INVALID_ARGUMENT 6
41#define AUDIO_ERR_NO_FREE_CHANNEL 7
42#define AUDIO_ERR_OUT_OF_SPU_MEMORY 8
43#define AUDIO_ERR_BAD_SOUND_DATA 9
44#define AUDIO_ERR_STREAM_NOT_STARTED 10
45#define AUDIO_ERR_STREAM_PAUSED 11
46#define AUDIO_ERR_TIMEOUT 12
47#define AUDIO_ERR_INTERRUPTED 13
48#define AUDIO_ERR_DRIVER_LOAD_FAILED 14
49#define AUDIO_ERR_BUSY 15
59#define AUDIO_EFFECT_OFF 0
60#define AUDIO_EFFECT_ROOM 1
61#define AUDIO_EFFECT_STUDIO_SMALL 2
62#define AUDIO_EFFECT_STUDIO_MEDIUM 3
63#define AUDIO_EFFECT_STUDIO_LARGE 4
64#define AUDIO_EFFECT_HALL 5
65#define AUDIO_EFFECT_SPACE 6
66#define AUDIO_EFFECT_ECHO 7
67#define AUDIO_EFFECT_DELAY 8
68#define AUDIO_EFFECT_PIPE 9
75#define AUDIO_SOUND_INVALID 0
struct audio_sound_desc audio_sound_desc_t
void(*) audio_low_data_fn(void *user, int32_t queued_source_bytes)
struct audio_version audio_version_t
struct audio_stream_format audio_stream_format_t
int audio_channel_is_playing(int channel)
int audio_play_sound(audio_sound_t sound)
int audio_channel_stop(int channel)
int audio_channel_get_playing_sound(int channel, audio_sound_t *sound_out)
int audio_channel_set_volume_and_pan(int channel, int volume_percent, int pan)
int audio_channel_play_sound(int channel, audio_sound_t sound)
int audio_channel_set_volume(int channel, int volume_percent)
int audio_channel_set_pitch(int channel, float ratio)
int audio_effect_set_depth(int depth_percent)
int audio_stream_set_effect_send(int enabled)
int audio_effect_set_delay_and_feedback(int delay, int feedback)
int audio_effect_set_preset(int preset)
int audio_channel_set_effect_send(int channel, int enabled)
const char * audio_get_error_message(int error_code)
int audio_set_master_volume(int volume_percent)
int audio_get_version(audio_version_t *version_out)
int audio_get_channel_count(void)
int audio_sound_load_adpcm(const audio_sound_desc_t *desc, audio_sound_t *sound_out)
int audio_sound_free(audio_sound_t sound)
int audio_sound_free_all(void)
int audio_sound_load_apcm(const void *file_data, int32_t file_size_bytes, audio_sound_t *sound_out)
int audio_stream_get_queued_bytes(void)
int audio_stream_end(void)
int audio_stream_start(const audio_stream_format_t *format)
int audio_stream_queue_pcm(const void *pcm, int32_t byte_count)
int audio_stream_resume(void)
int audio_stream_wait_until_writable(int32_t byte_count, int32_t timeout_ms)
int audio_stream_set_volume(int volume_percent)
int audio_stream_get_free_bytes(void)
int audio_stream_pause(void)
int audio_stream_stop_and_clear(void)
int audio_stream_set_low_data_callback(int32_t threshold_bytes, audio_low_data_fn callback, void *user)