#include <stdint.h>
#include <stddef.h>
#include <sys/types.h>
#include <boolean.h>
#include <audio/audio_mixer.h>
#include <audio/audio_resampler.h>
#include <retro_common_api.h>
Go to the source code of this file.
|
enum | audio_action {
AUDIO_ACTION_NONE = 0,
AUDIO_ACTION_RATE_CONTROL_DELTA,
AUDIO_ACTION_MIXER_MUTE_ENABLE,
AUDIO_ACTION_MUTE_ENABLE,
AUDIO_ACTION_VOLUME_GAIN,
AUDIO_ACTION_MIXER_VOLUME_GAIN,
AUDIO_ACTION_MIXER
} |
|
enum | audio_mixer_state {
AUDIO_STREAM_STATE_NONE = 0,
AUDIO_STREAM_STATE_STOPPED,
AUDIO_STREAM_STATE_PLAYING,
AUDIO_STREAM_STATE_PLAYING_LOOPED,
AUDIO_STREAM_STATE_PLAYING_SEQUENTIAL
} |
|
◆ AUDIO_CHUNK_SIZE_BLOCKING
#define AUDIO_CHUNK_SIZE_BLOCKING 512 |
◆ AUDIO_CHUNK_SIZE_NONBLOCKING
#define AUDIO_CHUNK_SIZE_NONBLOCKING 2048 |
◆ AUDIO_MAX_RATIO
#define AUDIO_MAX_RATIO 16 |
◆ AUDIO_MIXER_MAX_STREAMS
#define AUDIO_MIXER_MAX_STREAMS 16 |
◆ audio_driver_t
◆ audio_mixer_stream_params_t
◆ audio_mixer_stream_t
◆ audio_statistics_t
◆ audio_action
Enumerator |
---|
AUDIO_ACTION_NONE | |
AUDIO_ACTION_RATE_CONTROL_DELTA | |
AUDIO_ACTION_MIXER_MUTE_ENABLE | |
AUDIO_ACTION_MUTE_ENABLE | |
AUDIO_ACTION_VOLUME_GAIN | |
AUDIO_ACTION_MIXER_VOLUME_GAIN | |
AUDIO_ACTION_MIXER | |
◆ audio_mixer_state
Enumerator |
---|
AUDIO_STREAM_STATE_NONE | |
AUDIO_STREAM_STATE_STOPPED | |
AUDIO_STREAM_STATE_PLAYING | |
AUDIO_STREAM_STATE_PLAYING_LOOPED | |
AUDIO_STREAM_STATE_PLAYING_SEQUENTIAL | |
◆ audio_driver_callback()
◆ audio_driver_deinit()
◆ audio_driver_deinit_resampler()
void audio_driver_deinit_resampler |
( |
void |
| ) |
|
◆ audio_driver_destroy()
◆ audio_driver_destroy_data()
◆ audio_driver_disable_callback()
bool audio_driver_disable_callback |
( |
void |
| ) |
|
◆ audio_driver_dsp_filter_free()
void audio_driver_dsp_filter_free |
( |
void |
| ) |
|
◆ audio_driver_dsp_filter_init()
void audio_driver_dsp_filter_init |
( |
const char * |
device | ) |
|
◆ audio_driver_enable_callback()
bool audio_driver_enable_callback |
( |
void |
| ) |
|
◆ audio_driver_find_driver()
◆ audio_driver_find_handle()
const void* audio_driver_find_handle |
( |
int |
idx | ) |
|
audio_driver_find_handle: : index of driver to get handle to.
Returns: handle to audio driver at index. Can be NULL if nothing found.
audio_driver_find_handle: : index of driver to get handle to.
Returns: handle to audio driver at index. Can be NULL if nothing found.
◆ audio_driver_find_ident()
const char* audio_driver_find_ident |
( |
int |
idx | ) |
|
audio_driver_find_ident: : index of driver to get handle to.
Returns: Human-readable identifier of audio driver at index. Can be NULL if nothing found.
audio_driver_find_ident: : index of driver to get handle to.
Returns: Human-readable identifier of audio driver at index. Can be NULL if nothing found.
◆ audio_driver_frame_is_reverse()
void audio_driver_frame_is_reverse |
( |
void |
| ) |
|
◆ audio_driver_free_devices_list()
bool audio_driver_free_devices_list |
( |
void |
| ) |
|
◆ audio_driver_get_devices_list()
bool audio_driver_get_devices_list |
( |
void ** |
ptr | ) |
|
◆ audio_driver_get_resampler_quality()
◆ audio_driver_has_callback()
◆ audio_driver_init()
◆ audio_driver_is_active()
◆ audio_driver_is_suspended()
◆ audio_driver_menu_sample()
◆ audio_driver_mixer_add_stream()
◆ audio_driver_mixer_extension_supported()
bool audio_driver_mixer_extension_supported |
( |
const char * |
ext | ) |
|
◆ audio_driver_mixer_get_stream()
◆ audio_driver_mixer_get_stream_name()
const char* audio_driver_mixer_get_stream_name |
( |
unsigned |
i | ) |
|
◆ audio_driver_mixer_get_stream_state()
◆ audio_driver_mixer_get_stream_volume()
float audio_driver_mixer_get_stream_volume |
( |
unsigned |
i | ) |
|
◆ audio_driver_mixer_play_stream()
void audio_driver_mixer_play_stream |
( |
unsigned |
i | ) |
|
◆ audio_driver_mixer_play_stream_looped()
void audio_driver_mixer_play_stream_looped |
( |
unsigned |
i | ) |
|
◆ audio_driver_mixer_play_stream_sequential()
void audio_driver_mixer_play_stream_sequential |
( |
unsigned |
i | ) |
|
◆ audio_driver_mixer_remove_stream()
void audio_driver_mixer_remove_stream |
( |
unsigned |
i | ) |
|
◆ audio_driver_mixer_set_stream_volume()
void audio_driver_mixer_set_stream_volume |
( |
unsigned |
i, |
|
|
float |
vol |
|
) |
| |
◆ audio_driver_mixer_stop_stream()
void audio_driver_mixer_stop_stream |
( |
unsigned |
i | ) |
|
◆ audio_driver_monitor_adjust_system_rates()
void audio_driver_monitor_adjust_system_rates |
( |
void |
| ) |
|
◆ audio_driver_monitor_set_rate()
void audio_driver_monitor_set_rate |
( |
void |
| ) |
|
◆ audio_driver_new_devices_list()
bool audio_driver_new_devices_list |
( |
void |
| ) |
|
◆ audio_driver_owns_driver()
◆ audio_driver_resume()
◆ audio_driver_sample()
audio_driver_sample: : value of the left audio channel. : value of the right audio channel.
Audio sample render callback function.
◆ audio_driver_sample_batch()
size_t audio_driver_sample_batch |
( |
const int16_t * |
data, |
|
|
size_t |
frames |
|
) |
| |
audio_driver_sample_batch: : pointer to audio buffer. : amount of audio frames to push.
Batched audio sample render callback function.
Returns: amount of frames sampled. Will be equal to unless exceeds (AUDIO_CHUNK_SIZE_NONBLOCKING / 2).
◆ audio_driver_sample_batch_rewind()
size_t audio_driver_sample_batch_rewind |
( |
const int16_t * |
data, |
|
|
size_t |
frames |
|
) |
| |
audio_driver_sample_batch_rewind: : pointer to audio buffer. : amount of audio frames to push.
Batched audio sample render callback function (rewind version).
This callback function will be used instead of audio_driver_sample_batch when rewinding is activated.
Returns: amount of frames sampled. Will be equal to unless exceeds (AUDIO_CHUNK_SIZE_NONBLOCKING / 2).
◆ audio_driver_sample_rewind()
audio_driver_sample_rewind: : value of the left audio channel. : value of the right audio channel.
Audio sample render callback function (rewind version). This callback function will be used instead of audio_driver_sample when rewinding is activated.
◆ audio_driver_set_active()
◆ audio_driver_set_buffer_size()
void audio_driver_set_buffer_size |
( |
size_t |
bufsize | ) |
|
◆ audio_driver_set_callback()
◆ audio_driver_set_nonblocking_state()
void audio_driver_set_nonblocking_state |
( |
bool |
enable | ) |
|
◆ audio_driver_set_own_driver()
void audio_driver_set_own_driver |
( |
void |
| ) |
|
◆ audio_driver_setup_rewind()
◆ audio_driver_start()
bool audio_driver_start |
( |
bool |
is_shutdown | ) |
|
◆ audio_driver_stop()
◆ audio_driver_suspend()
◆ audio_driver_toggle_mute()
◆ audio_driver_unset_callback()
void audio_driver_unset_callback |
( |
void |
| ) |
|
◆ audio_driver_unset_own_driver()
void audio_driver_unset_own_driver |
( |
void |
| ) |
|
◆ audio_get_bool_ptr()
◆ audio_get_float_ptr()
◆ audio_set_bool()
◆ audio_set_float()
◆ audio_unset_bool()
◆ compute_audio_buffer_statistics()
compute_audio_buffer_statistics:
Computes audio buffer statistics.
◆ config_get_audio_driver_options()
const char* config_get_audio_driver_options |
( |
void |
| ) |
|
config_get_audio_driver_options:
Get an enumerated list of all audio driver names, separated by '|'.
Returns: string listing of all audio driver names, separated by '|'.
◆ audio_alsa
◆ audio_alsathread
◆ audio_audioio
◆ audio_ax
◆ audio_coreaudio
◆ audio_ctr_csnd
◆ audio_ctr_dsp
◆ audio_dsound
◆ audio_gx
◆ audio_jack
◆ audio_null
◆ audio_openal
◆ audio_opensl
◆ audio_oss
◆ audio_ps2
◆ audio_ps3
◆ audio_psp
◆ audio_pulse
◆ audio_roar
◆ audio_rsound
◆ audio_rwebaudio
◆ audio_sdl
◆ audio_switch
◆ audio_switch_thread
◆ audio_tinyalsa
◆ audio_wasapi
◆ audio_xa
◆ audio_xenon360