diff --git a/interface/src/scripting/Audio.cpp b/interface/src/scripting/Audio.cpp index d7993ce468..de2eda76da 100644 --- a/interface/src/scripting/Audio.cpp +++ b/interface/src/scripting/Audio.cpp @@ -30,6 +30,14 @@ Audio::Audio() { // TODO: make mic meter sticky (need to reinitialize in AvatarInputs) } +void Audio::setReverb(bool enable) { + DependencyManager::get()->setReverb(enable); +} + +void Audio::setReverbOptions(const AudioEffectOptions* options) { + DependencyManager::get()->setReverbOptions(options); +} + void Audio::onChangedContext() { bool isHMD = qApp->isHMDMode(); if (_contextIsHMD != isHMD) { diff --git a/interface/src/scripting/Audio.h b/interface/src/scripting/Audio.h index 7daf98682e..f05e2b616b 100644 --- a/interface/src/scripting/Audio.h +++ b/interface/src/scripting/Audio.h @@ -14,6 +14,7 @@ #include "AudioScriptingInterface.h" #include "AudioDevices.h" +#include "AudioEffectOptions.h" namespace scripting { @@ -24,7 +25,6 @@ class Audio : public AudioScriptingInterface { Q_PROPERTY(bool muted READ isMuted WRITE setMuted NOTIFY changedMuted) Q_PROPERTY(bool noiseReduction READ noiseReductionEnabled WRITE enableNoiseReduction NOTIFY changedNoiseReduction) Q_PROPERTY(bool showMicMeter READ micMeterShown WRITE showMicMeter NOTIFY changedMicMeter) - // TODO: Q_PROPERTY(bool reverb READ getReverb WRITE setReverb NOTIFY changedReverb) Q_PROPERTY(float inputVolume READ getInputVolume WRITE setInputVolume NOTIFY changedInputVolume) Q_PROPERTY(QString context READ getContext NOTIFY changedContext) Q_PROPERTY(AudioDevices* devices READ getDevices NOTIFY nop) @@ -32,6 +32,9 @@ class Audio : public AudioScriptingInterface { public: virtual ~Audio() {} + Q_INVOKABLE void setReverb(bool enable); + Q_INVOKABLE void setReverbOptions(const AudioEffectOptions* options); + signals: void nop(); void changedMuted(bool);