110 auto hrtf = engine.
loadHRTF(
"hrtf.json");
113 auto result = engine.
loadBank(
"bank1");
114 if (result != Result::Success) {
return 1; }
116 if (result != Result::Success) {
return 1; }
Central class handling all outside communication.
Result _VAE_PUBLIC_API init(const EngineConfig &config={})
Initializes the engine and does most of the upfront allocations.
void _VAE_PUBLIC_API setMasterVolume(Sample volume)
Set the global output volume before the limiter.
Result _VAE_PUBLIC_API stop()
Stops processing and waits for audio thead to clean up.
Result _VAE_PUBLIC_API loadBank(const char *path, Size size=0)
Load bank from filesystem.
Result _VAE_PUBLIC_API loadHRTF(const char *path, Size size=0)
Result _VAE_PUBLIC_API start()
Tries to open default device and start audio thread.
Result _VAE_PUBLIC_API unloadBankFromId(BankHandle bankHandle)
Unload bank from handle.
ListenerHandle _VAE_PUBLIC_API createListener()
Create a Listener object.
Result _VAE_PUBLIC_API setListener(ListenerHandle listener, const LocationOrientation &locOr)
Set the position of a listener.
void eventTriggered(const EventCallbackData *data)
void filterTest(vae::core::Engine &engine)
Settings for the engine defined at EnginePimpl::init.
const char * rootPath
Path where the bank files are located, needs to end with a trailing /.
EventCallback eventCallback
Each time a event of the type emit gets triggered Used to get information about ending sounds and sim...
Size internalSampleRate
Samplerate requested from device.