summaryrefslogtreecommitdiff
path: root/src/audio/manager.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-10-18 01:47:43 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2022-10-18 01:47:43 -0400
commit5a3bce7498aea568cb6eb83d04313f8d777e8c94 (patch)
tree10705b9279e50b952a7213421ac7b1b03704beb9 /src/audio/manager.hpp
parent621beb13444eb3ca16a756bfb8fdc6b4f79723f5 (diff)
downloadabaddon-portaudio-5a3bce7498aea568cb6eb83d04313f8d777e8c94.tar.gz
abaddon-portaudio-5a3bce7498aea568cb6eb83d04313f8d777e8c94.zip
basic voice gate
Diffstat (limited to 'src/audio/manager.hpp')
-rw-r--r--src/audio/manager.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio/manager.hpp b/src/audio/manager.hpp
index 43d8a1e..67241fb 100644
--- a/src/audio/manager.hpp
+++ b/src/audio/manager.hpp
@@ -30,6 +30,8 @@ public:
void SetCapture(bool capture);
void SetPlayback(bool playback);
+ void SetCaptureGate(double gate);
+
void SetMuteSSRC(uint32_t ssrc, bool mute);
void SetVolumeSSRC(uint32_t ssrc, double volume);
@@ -71,6 +73,8 @@ private:
std::atomic<bool> m_should_capture = true;
std::atomic<bool> m_should_playback = true;
+ std::atomic<double> m_capture_gate = 0.0;
+
std::unordered_set<uint32_t> m_muted_ssrcs;
std::unordered_map<uint32_t, double> m_volume_ssrc;