Untitled
Toggle main menu visibility
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
20
void
rotate_sh
(
float
* OUT,
float
SH[
SH_MAX
],
mat3
rot
);
21
28
void
fft_channels
(
ConvolverNode
* node,
bool
crossfading);
29
36
void
evaluate_sh
(
vec3
dir,
float
SH[
SH_MAX
]);
37
43
void
load_hrtf_from_binary
(
const
char
* filename);
44
45
51
void
init_hrtf_worker_thread
(
HRTFThreadData
* td);
52
58
void
delete_hrtf_worker_thread
(
HRTFThreadData
* td);
59
60
61
#endif
rot
vec3 rot(vec3 M[3], vec3 a)
Refer to Ken Perlin's 2 joint IK implmentation.
Definition
camera.c:1004
engine_types.h
Engine specific types and defines.
SH_MAX
#define SH_MAX
Definition
engine_types.h:184
evaluate_sh
void evaluate_sh(vec3 dir, float SH[SH_MAX])
Evaluates 9 spherical harmonics based on direction.
Definition
audio_ir.c:51
fft_channels
void fft_channels(ConvolverNode *node, bool crossfading)
Applies an impulse response filter via discrete convolution.
Definition
audio_ir.c:138
delete_hrtf_worker_thread
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
load_hrtf_from_binary
void load_hrtf_from_binary(const char *filename)
Loads a stored HRTF from engine binary.
Definition
audio_ir.c:111
rotate_sh
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
init_hrtf_worker_thread
void init_hrtf_worker_thread(HRTFThreadData *td)
Initializes the worker thread that convolves the audio probes with the HRTF.
Definition
audio_ir.c:512
ConvolverNode
The IR CONVOLVER_NODE used to process frames in the audio thread.
Definition
engine_types.h:483
HRTFThreadData
The data for the thread that prepares IRs by rotating then convolving them with an HRTF before it pre...
Definition
engine_types.h:415
mat3
Definition
types.h:20
vec3
Definition
types.h:12
src
audio
audio_ir.h
Generated by
1.18.0