mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 08:15:44 +00:00
added libraries: opus flac libsndfile updated: libvorbis libogg openal - Everything works as expected for now. Bare in mind libsndfile needed the check for whether or not it could find the xiph libraries removed in order for this to work.
38 lines
718 B
C++
38 lines
718 B
C++
#ifndef ALU_H
|
|
#define ALU_H
|
|
|
|
#include <bitset>
|
|
|
|
#include "aloptional.h"
|
|
|
|
struct ALCcontext;
|
|
struct ALCdevice;
|
|
struct EffectSlot;
|
|
|
|
enum class StereoEncoding : unsigned char;
|
|
|
|
|
|
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, al::optional<StereoEncoding> stereomode);
|
|
|
|
void aluInitEffectPanning(EffectSlot *slot, ALCcontext *context);
|
|
|
|
#endif
|