|
typedef dr_int32 | dr_bool32 |
|
typedef dr_int8 | dr_bool8 |
|
typedef int16_t | dr_int16 |
|
typedef int32_t | dr_int32 |
|
typedef int64_t | dr_int64 |
|
typedef int8_t | dr_int8 |
|
typedef uint16_t | dr_uint16 |
|
typedef uint32_t | dr_uint32 |
|
typedef uint64_t | dr_uint64 |
|
typedef uint8_t | dr_uint8 |
|
typedef struct dra_backend | dra_backend |
|
typedef struct dra_backend_device | dra_backend_device |
|
typedef struct dra_context | dra_context |
|
typedef void(* | dra_decoder_on_delete_proc) (void *pBackendDecoder) |
|
typedef size_t(* | dra_decoder_on_read_proc) (void *pUserData, void *pDataOut, size_t bytesToRead) |
|
typedef dr_uint64(* | dra_decoder_on_read_samples_proc) (void *pBackendDecoder, dr_uint64 samplesToRead, float *pSamplesOut) |
|
typedef dr_bool32(* | dra_decoder_on_seek_proc) (void *pUserData, int offset, dra_seek_origin origin) |
|
typedef dr_bool32(* | dra_decoder_on_seek_samples_proc) (void *pBackendDecoder, dr_uint64 sample) |
|
typedef struct dra_device | dra_device |
|
typedef void(* | dra_event_proc) (dr_uint64 eventID, void *pUserData) |
|
typedef struct dra_mixer | dra_mixer |
|
typedef void * | dra_mutex |
|
typedef int | dra_result |
|
typedef void(* | dra_samples_processed_proc) (dra_device *pDevice, const size_t sampleCount, const float *pSamples, void *pUserData) |
|
typedef void * | dra_semaphore |
|
typedef struct dra_sound | dra_sound |
|
typedef struct dra_sound_desc | dra_sound_desc |
|
typedef void(* | dra_sound_on_delete_proc) (dra_sound *pSound) |
|
typedef dr_uint64(* | dra_sound_on_read_proc) (dra_sound *pSound, dr_uint64 samplesToRead, void *pSamplesOut) |
|
typedef dr_bool32(* | dra_sound_on_seek_proc) (dra_sound *pSound, dr_uint64 sample) |
|
typedef struct dra_sound_world | dra_sound_world |
|
typedef void * | dra_thread |
|
typedef struct dra_voice | dra_voice |
|
|
dra_result | dra_context_create (dra_context **ppContext) |
|
void | dra_context_delete (dra_context *pContext) |
|
dra_result | dra_context_init (dra_context *pContext) |
|
void | dra_context_uninit (dra_context *pContext) |
|
void | dra_decoder_close (dra_decoder *pDecoder) |
|
dra_result | dra_decoder_open (dra_decoder *pDecoder, dra_decoder_on_read_proc onRead, dra_decoder_on_seek_proc onSeek, void *pUserData) |
|
float * | dra_decoder_open_and_decode_f32 (dra_decoder_on_read_proc onRead, dra_decoder_on_seek_proc onSeek, void *pUserData, unsigned int *channels, unsigned int *sampleRate, dr_uint64 *totalSampleCount) |
|
float * | dra_decoder_open_and_decode_file_f32 (const char *filePath, unsigned int *channels, unsigned int *sampleRate, dr_uint64 *totalSampleCount) |
|
float * | dra_decoder_open_and_decode_memory_f32 (const void *pData, size_t dataSize, unsigned int *channels, unsigned int *sampleRate, dr_uint64 *totalSampleCount) |
|
dra_result | dra_decoder_open_file (dra_decoder *pDecoder, const char *filePath) |
|
dra_result | dra_decoder_open_memory (dra_decoder *pDecoder, const void *pData, size_t dataSize) |
|
dr_uint64 | dra_decoder_read_f32 (dra_decoder *pDecoder, dr_uint64 samplesToRead, float *pSamplesOut) |
|
dr_bool32 | dra_decoder_seek_to_sample (dra_decoder *pDecoder, dr_uint64 sample) |
|
dra_result | dra_device_create (dra_context *pContext, dra_device_type type, dra_device **ppDevice) |
|
dra_result | dra_device_create_ex (dra_context *pContext, dra_device_type type, unsigned int deviceID, unsigned int channels, unsigned int sampleRate, unsigned int latencyInMilliseconds, dra_device **ppDevice) |
|
void | dra_device_delete (dra_device *pDevice) |
|
dra_result | dra_device_init (dra_context *pContext, dra_device_type type, dra_device *pDevice) |
|
dra_result | dra_device_init_ex (dra_context *pContext, dra_device_type type, unsigned int deviceID, unsigned int channels, unsigned int sampleRate, unsigned int latencyInMilliseconds, dra_device *pDevice) |
|
void | dra_device_set_samples_processed_callback (dra_device *pDevice, dra_samples_processed_proc proc, void *pUserData) |
|
dra_result | dra_device_start (dra_device *pDevice) |
|
dra_result | dra_device_stop (dra_device *pDevice) |
|
void | dra_device_uninit (dra_device *pDevice) |
|
void | dra_free (void *p) |
|
unsigned int | dra_get_bits_per_sample_by_format (dra_format format) |
|
unsigned int | dra_get_bytes_per_sample_by_format (dra_format format) |
|
void | dra_mixer_attach_submixer (dra_mixer *pMixer, dra_mixer *pSubmixer) |
|
void | dra_mixer_attach_voice (dra_mixer *pMixer, dra_voice *pVoice) |
|
size_t | dra_mixer_count_attached_voices (dra_mixer *pMixer) |
|
size_t | dra_mixer_count_attached_voices_recursive (dra_mixer *pMixer) |
|
dra_result | dra_mixer_create (dra_device *pDevice, dra_mixer **ppMixer) |
|
void | dra_mixer_delete (dra_mixer *pMixer) |
|
void | dra_mixer_detach_all_submixers (dra_mixer *pMixer) |
|
void | dra_mixer_detach_all_voices (dra_mixer *pMixer) |
|
void | dra_mixer_detach_submixer (dra_mixer *pMixer, dra_mixer *pSubmixer) |
|
void | dra_mixer_detach_voice (dra_mixer *pMixer, dra_voice *pVoice) |
|
size_t | dra_mixer_gather_attached_voices (dra_mixer *pMixer, dra_voice **ppVoicesOut) |
|
size_t | dra_mixer_gather_attached_voices_recursive (dra_mixer *pMixer, dra_voice **ppVoicesOut) |
|
float | dra_mixer_get_volume (dra_mixer *pMixer) |
|
dr_bool32 | dra_mixer_is_paused (dra_mixer *pMixer) |
|
size_t | dra_mixer_mix_next_frames (dra_mixer *pMixer, size_t frameCount) |
|
void | dra_mixer_pause (dra_mixer *pMixer) |
|
void | dra_mixer_resume (dra_mixer *pMixer) |
|
void | dra_mixer_set_volume (dra_mixer *pMixer, float linearVolume) |
|
void | dra_sound_attach_to_mixer (dra_sound *pSound, dra_mixer *pMixer) |
|
dra_sound * | dra_sound_create (dra_sound_world *pWorld, dra_sound_desc *pDesc) |
|
dra_sound * | dra_sound_create_from_file (dra_sound_world *pWorld, const char *filePath) |
|
void | dra_sound_delete (dra_sound *pSound) |
|
void | dra_sound_play (dra_sound *pSound, dr_bool32 loop) |
|
void | dra_sound_set_on_play (dra_sound *pSound, dra_event_proc proc, void *pUserData) |
|
void | dra_sound_set_on_stop (dra_sound *pSound, dra_event_proc proc, void *pUserData) |
|
void | dra_sound_stop (dra_sound *pSound) |
|
dra_sound_world * | dra_sound_world_create (dra_device *pPlaybackDevice) |
|
void | dra_sound_world_delete (dra_sound_world *pWorld) |
|
void | dra_sound_world_play_inline (dra_sound_world *pWorld, dra_sound_desc *pDesc, dra_mixer *pMixer) |
|
void | dra_sound_world_play_inline_3f (dra_sound_world *pWorld, dra_sound_desc *pDesc, dra_mixer *pMixer, float xPos, float yPos, float zPos) |
|
void | dra_sound_world_set_listener_orientation (dra_sound_world *pWorld, float xForward, float yForward, float zForward, float xUp, float yUp, float zUp) |
|
void | dra_sound_world_set_listener_position (dra_sound_world *pWorld, float xPos, float yPos, float zPos) |
|
void | dra_sound_world_stop_all_sounds (dra_sound_world *pWorld) |
|
dr_bool32 | dra_voice_add_playback_event (dra_voice *pVoice, dr_uint64 sampleIndex, dr_uint64 eventID, dra_event_proc proc, void *pUserData) |
|
dra_result | dra_voice_create (dra_device *pDevice, dra_format format, unsigned int channels, unsigned int sampleRate, size_t sizeInBytes, const void *pInitialData, dra_voice **ppVoice) |
|
dra_result | dra_voice_create_compatible (dra_device *pDevice, size_t sizeInBytes, const void *pInitialData, dra_voice **ppVoice) |
|
dra_result | dra_voice_create_from_file (dra_device *pDevice, const char *filePath, dra_voice **ppVoice) |
|
void | dra_voice_delete (dra_voice *pVoice) |
|
void * | dra_voice_get_buffer_ptr_by_sample (dra_voice *pVoice, dr_uint64 sample) |
|
dr_uint64 | dra_voice_get_playback_position (dra_voice *pVoice) |
|
float | dra_voice_get_volume (dra_voice *pVoice) |
|
dr_bool32 | dra_voice_is_looping (dra_voice *pVoice) |
|
dr_bool32 | dra_voice_is_playing (dra_voice *pVoice) |
|
void | dra_voice_play (dra_voice *pVoice, dr_bool32 loop) |
|
void | dra_voice_remove_playback_event (dra_voice *pVoice, dr_uint64 eventID) |
|
void | dra_voice_set_on_play (dra_voice *pVoice, dra_event_proc proc, void *pUserData) |
|
void | dra_voice_set_on_stop (dra_voice *pVoice, dra_event_proc proc, void *pUserData) |
|
void | dra_voice_set_playback_position (dra_voice *pVoice, dr_uint64 sampleIndex) |
|
void | dra_voice_set_volume (dra_voice *pVoice, float linearVolume) |
|
void | dra_voice_stop (dra_voice *pVoice) |
|
void | dra_voice_write_silence (dra_voice *pVoice, dr_uint64 sampleOffset, dr_uint64 sampleCount) |
|