mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
add reverb to qml Audio
This commit is contained in:
parent
b37a0239b0
commit
8dac83d3fe
2 changed files with 12 additions and 1 deletions
|
@ -30,6 +30,14 @@ Audio::Audio() {
|
|||
// TODO: make mic meter sticky (need to reinitialize in AvatarInputs)
|
||||
}
|
||||
|
||||
void Audio::setReverb(bool enable) {
|
||||
DependencyManager::get<AudioClient>()->setReverb(enable);
|
||||
}
|
||||
|
||||
void Audio::setReverbOptions(const AudioEffectOptions* options) {
|
||||
DependencyManager::get<AudioClient>()->setReverbOptions(options);
|
||||
}
|
||||
|
||||
void Audio::onChangedContext() {
|
||||
bool isHMD = qApp->isHMDMode();
|
||||
if (_contextIsHMD != isHMD) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue