KAPI f32 calculate_spatial_gain(f32 distance, f32 inner_radius, f32 outer_radius, f32 falloff_factor, kaudio_attenuation_model model)
Computes spatial gain based on position, radius and attenuation model parameters.
KAPI i16 * kaudio_downmix_stereo_to_mono(const i16 *stereo_data, u32 sample_count)
Downmixes the provided stereo data to mono data by averaging the left and right channels and scaling ...
KAPI const char * attenuation_model_to_string(kaudio_attenuation_model model)
Gets the string representation of the given attenuation model. NOTE: string is constant and does not ...
KAPI const char * audio_space_to_string(kaudio_space space)
Gets the string representation of the given sound space. NOTE: string is constant and does not need t...
KAPI kaudio_space string_to_audio_space(const char *str)
Parses the audio space from the given string. Defaults to 2D if not valid.
KAPI kaudio_attenuation_model string_to_attenuation_model(const char *str)
Parses the attenuation model from the given string. Defaults to linear if not valid.
kaudio_attenuation_model
Represents the attenuation models supported by the audio system. These affect how sounds fall off as ...
Definition: core_audio_types.h:37
kaudio_space
Describes the dimensionality of audio.
Definition: core_audio_types.h:26
This file contains global type definitions which are used throughout the entire engine and applicatio...
#define KAPI
Import/export qualifier.
Definition: defines.h:205
unsigned int u32
Unsigned 32-bit integer.
Definition: defines.h:25
float f32
32-bit floating point number
Definition: defines.h:47
signed short i16
Signed 16-bit integer.
Definition: defines.h:36