Untitled
Loading...
Searching...
No Matches
audio_ir.h File Reference

Audio IR processing, hrtf loading and parsing, and audio threading. More...

Go to the source code of this file.

Functions

void rotate_sh (float *OUT, float SH[SH_MAX], mat3 rot)
 Converts a position to local OBB space and returns the coord as if it was a texture from \(0 \rightarrow 1\).
void fft_channels (ConvolverNode *node, bool crossfading)
 FFTs the newest audio chunk with the partitioned overlap-add buffer.
void evaluate_sh (vec3 dir, float SH[SH_MAX])
 Evaluates 9 spherical harmonics based on direction.
void load_hrtf_from_binary (const char *filename)
 Loads a stored HRTF from engine binary.
void init_hrtf_worker_thread (HRTFThreadData *td)
 Initializes the worker thread that convolves the audio probes with the HRTF.
void delete_hrtf_worker_thread (HRTFThreadData *td)
 Cleans up the worker thread that convolves the audio probes with the HRTF.

Detailed Description

Audio IR processing, hrtf loading and parsing, and audio threading.

See also
init.c for the audio thread convolution.

Definition in file audio_ir.h.