aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.h
blob: 33453487b1f4c285678ca26d6e9d1b0978f69142 (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
32
33
34
35
36
37
38
#ifndef ALU_H
#define ALU_H

#include <bitset>
#include <optional>
#include <stdint.h>

struct ALCcontext;
struct ALCdevice;
struct EffectSlot;

enum class StereoEncoding : uint8_t;


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


enum CompatFlags : uint8_t {
    ReverseX,
    ReverseY,
    ReverseZ,

    Count
};
using CompatFlagBitset = std::bitset<CompatFlags::Count>;

void aluInit(CompatFlagBitset flags, const float nfcscale);

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

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

#endif