Classes | Macros | Typedefs | Enumerations | Functions
rhino/demo/c/dr_libs/old/dr_audio.h File Reference
#include <stddef.h>
#include <stdint.h>
Include dependency graph for rhino/demo/c/dr_libs/old/dr_audio.h:

Go to the source code of this file.

Classes

struct  dra__event
 
struct  dra__event_queue
 
struct  dra__memory_stream
 
struct  dra_context
 
struct  dra_decoder
 
struct  dra_device
 
struct  dra_mixer
 
struct  dra_sound
 
struct  dra_sound_desc
 
struct  dra_sound_world
 
struct  dra_voice
 

Macros

#define DR_AUDIO_EVENT_ID_PLAY   0xFFFFFFFFFFFFFFFEULL
 
#define DR_AUDIO_EVENT_ID_STOP   0xFFFFFFFFFFFFFFFFULL
 
#define DR_AUDIO_MAX_CHANNEL_COUNT   16
 
#define DR_AUDIO_MAX_EVENT_COUNT   16
 
#define DR_FALSE   0
 
#define DR_SIZED_TYPES_DEFINED
 
#define DR_TRUE   1
 
#define DRA_FAILED(result)   ((result) != 0)
 
#define DRA_MIXER_FLAG_PAUSED   (1 << 0)
 
#define DRA_RESULT_FAILED_TO_OPEN_FILE   -4
 
#define DRA_RESULT_INVALID_ARGS   -2
 
#define DRA_RESULT_NO_BACKEND   -1024
 
#define DRA_RESULT_NO_BACKEND_DEVICE   -1025
 
#define DRA_RESULT_NO_DECODER   -1026
 
#define DRA_RESULT_OUT_OF_MEMORY   -3
 
#define DRA_RESULT_SUCCESS   0
 
#define DRA_RESULT_UNKNOWN_ERROR   -1
 
#define DRA_SUCCEEDED(result)   ((result) == 0)
 

Typedefs

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
 

Enumerations

enum  dra_device_type { dra_device_type_playback = 0, dra_device_type_capture, dra_device_type_playback = 0, dra_device_type_capture }
 
enum  dra_format {
  dra_format_u8 = 0, dra_format_s16, dra_format_s24, dra_format_s32,
  dra_format_f32, dra_format_default = dra_format_f32, dra_format_u8 = 0, dra_format_s16,
  dra_format_s24, dra_format_s32, dra_format_f32, dra_format_default = dra_format_f32
}
 
enum  dra_seek_origin { dra_seek_origin_start, dra_seek_origin_current, dra_seek_origin_start, dra_seek_origin_current }
 
enum  dra_src_algorithm { dra_src_algorithm_none, dra_src_algorithm_linear, dra_src_algorithm_none, dra_src_algorithm_linear }
 
enum  dra_thread_event_type {
  dra_thread_event_type_none, dra_thread_event_type_terminate, dra_thread_event_type_play, dra_thread_event_type_none,
  dra_thread_event_type_terminate, dra_thread_event_type_play
}
 

Functions

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_sounddra_sound_create (dra_sound_world *pWorld, dra_sound_desc *pDesc)
 
dra_sounddra_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_worlddra_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)
 

Macro Definition Documentation

◆ DR_AUDIO_EVENT_ID_PLAY

#define DR_AUDIO_EVENT_ID_PLAY   0xFFFFFFFFFFFFFFFEULL

Definition at line 210 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DR_AUDIO_EVENT_ID_STOP

#define DR_AUDIO_EVENT_ID_STOP   0xFFFFFFFFFFFFFFFFULL

Definition at line 209 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DR_AUDIO_MAX_CHANNEL_COUNT

#define DR_AUDIO_MAX_CHANNEL_COUNT   16

Definition at line 202 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DR_AUDIO_MAX_EVENT_COUNT

#define DR_AUDIO_MAX_EVENT_COUNT   16

Definition at line 206 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DR_FALSE

#define DR_FALSE   0

Definition at line 198 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DR_SIZED_TYPES_DEFINED

#define DR_SIZED_TYPES_DEFINED

Definition at line 174 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DR_TRUE

#define DR_TRUE   1

Definition at line 197 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DRA_FAILED

#define DRA_FAILED (   result)    ((result) != 0)

Definition at line 221 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DRA_MIXER_FLAG_PAUSED

#define DRA_MIXER_FLAG_PAUSED   (1 << 0)

Definition at line 224 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DRA_RESULT_FAILED_TO_OPEN_FILE

#define DRA_RESULT_FAILED_TO_OPEN_FILE   -4

Definition at line 217 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DRA_RESULT_INVALID_ARGS

#define DRA_RESULT_INVALID_ARGS   -2

Definition at line 215 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DRA_RESULT_NO_BACKEND

#define DRA_RESULT_NO_BACKEND   -1024

Definition at line 218 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DRA_RESULT_NO_BACKEND_DEVICE

#define DRA_RESULT_NO_BACKEND_DEVICE   -1025

Definition at line 219 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DRA_RESULT_NO_DECODER

#define DRA_RESULT_NO_DECODER   -1026

Definition at line 220 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DRA_RESULT_OUT_OF_MEMORY

#define DRA_RESULT_OUT_OF_MEMORY   -3

Definition at line 216 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DRA_RESULT_SUCCESS

#define DRA_RESULT_SUCCESS   0

Definition at line 213 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DRA_RESULT_UNKNOWN_ERROR

#define DRA_RESULT_UNKNOWN_ERROR   -1

Definition at line 214 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ DRA_SUCCEEDED

#define DRA_SUCCEEDED (   result)    ((result) == 0)

Definition at line 222 of file rhino/demo/c/dr_libs/old/dr_audio.h.

Typedef Documentation

◆ dr_bool32

Definition at line 196 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dr_bool8

typedef dr_int8 dr_bool8

Definition at line 195 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dr_int16

typedef int16_t dr_int16

Definition at line 188 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dr_int32

typedef int32_t dr_int32

Definition at line 190 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dr_int64

typedef int64_t dr_int64

Definition at line 192 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dr_int8

typedef int8_t dr_int8

Definition at line 186 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dr_uint16

typedef uint16_t dr_uint16

Definition at line 189 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dr_uint32

typedef uint32_t dr_uint32

Definition at line 191 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dr_uint64

typedef uint64_t dr_uint64

Definition at line 193 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dr_uint8

typedef uint8_t dr_uint8

Definition at line 187 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_backend

typedef struct dra_backend dra_backend

Definition at line 256 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_backend_device

Definition at line 257 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_context

typedef struct dra_context dra_context

Definition at line 259 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_decoder_on_delete_proc

typedef void(* dra_decoder_on_delete_proc) (void *pBackendDecoder)

Definition at line 709 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_decoder_on_read_proc

typedef size_t(* dra_decoder_on_read_proc) (void *pUserData, void *pDataOut, size_t bytesToRead)

Definition at line 706 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_decoder_on_read_samples_proc

typedef dr_uint64(* dra_decoder_on_read_samples_proc) (void *pBackendDecoder, dr_uint64 samplesToRead, float *pSamplesOut)

Definition at line 710 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_decoder_on_seek_proc

typedef dr_bool32(* dra_decoder_on_seek_proc) (void *pUserData, int offset, dra_seek_origin origin)

Definition at line 707 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_decoder_on_seek_samples_proc

typedef dr_bool32(* dra_decoder_on_seek_samples_proc) (void *pBackendDecoder, dr_uint64 sample)

Definition at line 711 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_device

typedef struct dra_device dra_device

Definition at line 260 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_event_proc

typedef void(* dra_event_proc) (dr_uint64 eventID, void *pUserData)

Definition at line 268 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_mixer

typedef struct dra_mixer dra_mixer

Definition at line 261 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_mutex

typedef void* dra_mutex

Definition at line 265 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_result

typedef int dra_result

Definition at line 212 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_samples_processed_proc

typedef void(* dra_samples_processed_proc) (dra_device *pDevice, const size_t sampleCount, const float *pSamples, void *pUserData)

Definition at line 269 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_semaphore

typedef void* dra_semaphore

Definition at line 266 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_sound

typedef struct dra_sound dra_sound

Definition at line 773 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_sound_desc

Definition at line 774 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_sound_on_delete_proc

typedef void(* dra_sound_on_delete_proc) (dra_sound *pSound)

Definition at line 776 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_sound_on_read_proc

typedef dr_uint64(* dra_sound_on_read_proc) (dra_sound *pSound, dr_uint64 samplesToRead, void *pSamplesOut)

Definition at line 777 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_sound_on_seek_proc

typedef dr_bool32(* dra_sound_on_seek_proc) (dra_sound *pSound, dr_uint64 sample)

Definition at line 778 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_sound_world

Definition at line 772 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_thread

typedef void* dra_thread

Definition at line 264 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_voice

typedef struct dra_voice dra_voice

Definition at line 262 of file rhino/demo/c/dr_libs/old/dr_audio.h.

Enumeration Type Documentation

◆ dra_device_type

Enumerator
dra_device_type_playback 
dra_device_type_capture 
dra_device_type_playback 
dra_device_type_capture 

Definition at line 226 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_format

enum dra_format
Enumerator
dra_format_u8 
dra_format_s16 
dra_format_s24 
dra_format_s32 
dra_format_f32 
dra_format_default 
dra_format_u8 
dra_format_s16 
dra_format_s24 
dra_format_s32 
dra_format_f32 
dra_format_default 

Definition at line 232 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_seek_origin

Enumerator
dra_seek_origin_start 
dra_seek_origin_current 
dra_seek_origin_start 
dra_seek_origin_current 

Definition at line 700 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_src_algorithm

Enumerator
dra_src_algorithm_none 
dra_src_algorithm_linear 
dra_src_algorithm_none 
dra_src_algorithm_linear 

Definition at line 242 of file rhino/demo/c/dr_libs/old/dr_audio.h.

◆ dra_thread_event_type

Enumerator
dra_thread_event_type_none 
dra_thread_event_type_terminate 
dra_thread_event_type_play 
dra_thread_event_type_none 
dra_thread_event_type_terminate 
dra_thread_event_type_play 

Definition at line 249 of file rhino/demo/c/dr_libs/old/dr_audio.h.

Function Documentation

◆ dra_context_create()

dra_result dra_context_create ( dra_context **  ppContext)

◆ dra_context_delete()

void dra_context_delete ( dra_context pContext)

◆ dra_context_init()

dra_result dra_context_init ( dra_context pContext)

◆ dra_context_uninit()

void dra_context_uninit ( dra_context pContext)

◆ dra_decoder_close()

void dra_decoder_close ( dra_decoder pDecoder)

◆ dra_decoder_open()

dra_result dra_decoder_open ( dra_decoder pDecoder,
dra_decoder_on_read_proc  onRead,
dra_decoder_on_seek_proc  onSeek,
void *  pUserData 
)

◆ dra_decoder_open_and_decode_f32()

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 
)

◆ dra_decoder_open_and_decode_file_f32()

float* dra_decoder_open_and_decode_file_f32 ( const char *  filePath,
unsigned int *  channels,
unsigned int *  sampleRate,
dr_uint64 totalSampleCount 
)

◆ dra_decoder_open_and_decode_memory_f32()

float* dra_decoder_open_and_decode_memory_f32 ( const void *  pData,
size_t  dataSize,
unsigned int *  channels,
unsigned int *  sampleRate,
dr_uint64 totalSampleCount 
)

◆ dra_decoder_open_file()

dra_result dra_decoder_open_file ( dra_decoder pDecoder,
const char *  filePath 
)

◆ dra_decoder_open_memory()

dra_result dra_decoder_open_memory ( dra_decoder pDecoder,
const void *  pData,
size_t  dataSize 
)

◆ dra_decoder_read_f32()

dr_uint64 dra_decoder_read_f32 ( dra_decoder pDecoder,
dr_uint64  samplesToRead,
float *  pSamplesOut 
)

◆ dra_decoder_seek_to_sample()

dr_bool32 dra_decoder_seek_to_sample ( dra_decoder pDecoder,
dr_uint64  sample 
)

◆ dra_device_create()

dra_result dra_device_create ( dra_context pContext,
dra_device_type  type,
dra_device **  ppDevice 
)

◆ dra_device_create_ex()

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 
)

◆ dra_device_delete()

void dra_device_delete ( dra_device pDevice)

◆ dra_device_init()

dra_result dra_device_init ( dra_context pContext,
dra_device_type  type,
dra_device pDevice 
)

◆ dra_device_init_ex()

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 
)

◆ dra_device_set_samples_processed_callback()

void dra_device_set_samples_processed_callback ( dra_device pDevice,
dra_samples_processed_proc  proc,
void *  pUserData 
)

◆ dra_device_start()

dra_result dra_device_start ( dra_device pDevice)

◆ dra_device_stop()

dra_result dra_device_stop ( dra_device pDevice)

◆ dra_device_uninit()

void dra_device_uninit ( dra_device pDevice)

◆ dra_free()

void dra_free ( void *  p)

◆ dra_get_bits_per_sample_by_format()

unsigned int dra_get_bits_per_sample_by_format ( dra_format  format)

◆ dra_get_bytes_per_sample_by_format()

unsigned int dra_get_bytes_per_sample_by_format ( dra_format  format)

◆ dra_mixer_attach_submixer()

void dra_mixer_attach_submixer ( dra_mixer pMixer,
dra_mixer pSubmixer 
)

◆ dra_mixer_attach_voice()

void dra_mixer_attach_voice ( dra_mixer pMixer,
dra_voice pVoice 
)

◆ dra_mixer_count_attached_voices()

size_t dra_mixer_count_attached_voices ( dra_mixer pMixer)

◆ dra_mixer_count_attached_voices_recursive()

size_t dra_mixer_count_attached_voices_recursive ( dra_mixer pMixer)

◆ dra_mixer_create()

dra_result dra_mixer_create ( dra_device pDevice,
dra_mixer **  ppMixer 
)

◆ dra_mixer_delete()

void dra_mixer_delete ( dra_mixer pMixer)

◆ dra_mixer_detach_all_submixers()

void dra_mixer_detach_all_submixers ( dra_mixer pMixer)

◆ dra_mixer_detach_all_voices()

void dra_mixer_detach_all_voices ( dra_mixer pMixer)

◆ dra_mixer_detach_submixer()

void dra_mixer_detach_submixer ( dra_mixer pMixer,
dra_mixer pSubmixer 
)

◆ dra_mixer_detach_voice()

void dra_mixer_detach_voice ( dra_mixer pMixer,
dra_voice pVoice 
)

◆ dra_mixer_gather_attached_voices()

size_t dra_mixer_gather_attached_voices ( dra_mixer pMixer,
dra_voice **  ppVoicesOut 
)

◆ dra_mixer_gather_attached_voices_recursive()

size_t dra_mixer_gather_attached_voices_recursive ( dra_mixer pMixer,
dra_voice **  ppVoicesOut 
)

◆ dra_mixer_get_volume()

float dra_mixer_get_volume ( dra_mixer pMixer)

◆ dra_mixer_is_paused()

dr_bool32 dra_mixer_is_paused ( dra_mixer pMixer)

◆ dra_mixer_mix_next_frames()

size_t dra_mixer_mix_next_frames ( dra_mixer pMixer,
size_t  frameCount 
)

◆ dra_mixer_pause()

void dra_mixer_pause ( dra_mixer pMixer)

◆ dra_mixer_resume()

void dra_mixer_resume ( dra_mixer pMixer)

◆ dra_mixer_set_volume()

void dra_mixer_set_volume ( dra_mixer pMixer,
float  linearVolume 
)

◆ dra_sound_attach_to_mixer()

void dra_sound_attach_to_mixer ( dra_sound pSound,
dra_mixer pMixer 
)

◆ dra_sound_create()

dra_sound* dra_sound_create ( dra_sound_world pWorld,
dra_sound_desc pDesc 
)

◆ dra_sound_create_from_file()

dra_sound* dra_sound_create_from_file ( dra_sound_world pWorld,
const char *  filePath 
)

◆ dra_sound_delete()

void dra_sound_delete ( dra_sound pSound)

◆ dra_sound_play()

void dra_sound_play ( dra_sound pSound,
dr_bool32  loop 
)

◆ dra_sound_set_on_play()

void dra_sound_set_on_play ( dra_sound pSound,
dra_event_proc  proc,
void *  pUserData 
)

◆ dra_sound_set_on_stop()

void dra_sound_set_on_stop ( dra_sound pSound,
dra_event_proc  proc,
void *  pUserData 
)

◆ dra_sound_stop()

void dra_sound_stop ( dra_sound pSound)

◆ dra_sound_world_create()

dra_sound_world* dra_sound_world_create ( dra_device pPlaybackDevice)

◆ dra_sound_world_delete()

void dra_sound_world_delete ( dra_sound_world pWorld)

◆ dra_sound_world_play_inline()

void dra_sound_world_play_inline ( dra_sound_world pWorld,
dra_sound_desc pDesc,
dra_mixer pMixer 
)

◆ dra_sound_world_play_inline_3f()

void dra_sound_world_play_inline_3f ( dra_sound_world pWorld,
dra_sound_desc pDesc,
dra_mixer pMixer,
float  xPos,
float  yPos,
float  zPos 
)

◆ dra_sound_world_set_listener_orientation()

void dra_sound_world_set_listener_orientation ( dra_sound_world pWorld,
float  xForward,
float  yForward,
float  zForward,
float  xUp,
float  yUp,
float  zUp 
)

◆ dra_sound_world_set_listener_position()

void dra_sound_world_set_listener_position ( dra_sound_world pWorld,
float  xPos,
float  yPos,
float  zPos 
)

◆ dra_sound_world_stop_all_sounds()

void dra_sound_world_stop_all_sounds ( dra_sound_world pWorld)

◆ dra_voice_add_playback_event()

dr_bool32 dra_voice_add_playback_event ( dra_voice pVoice,
dr_uint64  sampleIndex,
dr_uint64  eventID,
dra_event_proc  proc,
void *  pUserData 
)

◆ dra_voice_create()

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_voice_create_compatible()

dra_result dra_voice_create_compatible ( dra_device pDevice,
size_t  sizeInBytes,
const void *  pInitialData,
dra_voice **  ppVoice 
)

◆ dra_voice_create_from_file()

dra_result dra_voice_create_from_file ( dra_device pDevice,
const char *  filePath,
dra_voice **  ppVoice 
)

◆ dra_voice_delete()

void dra_voice_delete ( dra_voice pVoice)

◆ dra_voice_get_buffer_ptr_by_sample()

void* dra_voice_get_buffer_ptr_by_sample ( dra_voice pVoice,
dr_uint64  sample 
)

◆ dra_voice_get_playback_position()

dr_uint64 dra_voice_get_playback_position ( dra_voice pVoice)

◆ dra_voice_get_volume()

float dra_voice_get_volume ( dra_voice pVoice)

◆ dra_voice_is_looping()

dr_bool32 dra_voice_is_looping ( dra_voice pVoice)

◆ dra_voice_is_playing()

dr_bool32 dra_voice_is_playing ( dra_voice pVoice)

◆ dra_voice_play()

void dra_voice_play ( dra_voice pVoice,
dr_bool32  loop 
)

◆ dra_voice_remove_playback_event()

void dra_voice_remove_playback_event ( dra_voice pVoice,
dr_uint64  eventID 
)

◆ dra_voice_set_on_play()

void dra_voice_set_on_play ( dra_voice pVoice,
dra_event_proc  proc,
void *  pUserData 
)

◆ dra_voice_set_on_stop()

void dra_voice_set_on_stop ( dra_voice pVoice,
dra_event_proc  proc,
void *  pUserData 
)

◆ dra_voice_set_playback_position()

void dra_voice_set_playback_position ( dra_voice pVoice,
dr_uint64  sampleIndex 
)

◆ dra_voice_set_volume()

void dra_voice_set_volume ( dra_voice pVoice,
float  linearVolume 
)

◆ dra_voice_stop()

void dra_voice_stop ( dra_voice pVoice)

◆ dra_voice_write_silence()

void dra_voice_write_silence ( dra_voice pVoice,
dr_uint64  sampleOffset,
dr_uint64  sampleCount 
)


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:57