Untitled
Loading...
Searching...
No Matches
audio_ir.h
Go to the documentation of this file.
1
6
7#ifndef AUDIO_IR_H
8#define AUDIO_IR_H
9
10#include "core/engine_types.h"
11
20void rotate_sh(float * OUT, float SH[SH_MAX], mat3 rot);
21
28void fft_channels(ConvolverNode * node, bool crossfading);
29
36void evaluate_sh(vec3 dir, float SH[SH_MAX]);
37
43void load_hrtf_from_binary(const char * filename);
44
45
52
59
60
61#endif
vec3 rot(vec3 M[3], vec3 a)
Refer to Ken Perlin's 2 joint IK implmentation.
Definition camera.c:1004
Engine specific types and defines.
#define SH_MAX
void evaluate_sh(vec3 dir, float SH[SH_MAX])
Evaluates 9 spherical harmonics based on direction.
Definition audio_ir.c:51
void fft_channels(ConvolverNode *node, bool crossfading)
Applies an impulse response filter via discrete convolution.
Definition audio_ir.c:138
void delete_hrtf_worker_thread(HRTFThreadData *td)
Cleans up the worker thread that convolves the audio probes with the HRTF.
Definition audio_ir.c:543
void load_hrtf_from_binary(const char *filename)
Loads a stored HRTF from engine binary.
Definition audio_ir.c:111
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 .
Definition audio_ir.c:234
void init_hrtf_worker_thread(HRTFThreadData *td)
Initializes the worker thread that convolves the audio probes with the HRTF.
Definition audio_ir.c:512
The IR CONVOLVER_NODE used to process frames in the audio thread.
The data for the thread that prepares IRs by rotating then convolving them with an HRTF before it pre...
Definition types.h:20
Definition types.h:12