aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.h
blob: 05d3b92c2d5fbee6be3984a4a944322aee6b934f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef ALU_H
#define ALU_H

#include "aloptional.h"

struct ALCcontext;
struct ALCdevice;
struct EffectSlot;


constexpr float GainMixMax{1000.0f}; /* +60dB */

constexpr float AirAbsorbGainHF{0.99426f}; /* -0.05dB */


void aluInit(void);

/* aluInitRenderer
 *
 * Set up the appropriate panning method and mixing method given the device
 * properties.
 */
void aluInitRenderer(ALCdevice *device, int hrtf_id, al::optional<bool> hrtfreq);

void aluInitEffectPanning(EffectSlot *slot, ALCcontext *context);


extern const float ConeScale;
extern const float ZScale;

#endif