diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-10-21 01:23:37 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-10-21 01:23:37 -0400 |
commit | e888306272304224ac8edd37b3b2bd24ad8c0765 (patch) | |
tree | 3c0e58eea78f1580f2078b338b3a1e69349d3f67 /src/audio/manager.hpp | |
parent | 848e75f5774d56ebb1a67ba4326a96c8ea5ac3f1 (diff) | |
download | abaddon-portaudio-e888306272304224ac8edd37b3b2bd24ad8c0765.tar.gz abaddon-portaudio-e888306272304224ac8edd37b3b2bd24ad8c0765.zip |
add gain slider (how 2 loudmic? 🤓)
Diffstat (limited to 'src/audio/manager.hpp')
-rw-r--r-- | src/audio/manager.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/audio/manager.hpp b/src/audio/manager.hpp index 67241fb..13dbfa4 100644 --- a/src/audio/manager.hpp +++ b/src/audio/manager.hpp @@ -31,6 +31,7 @@ public: void SetPlayback(bool playback); void SetCaptureGate(double gate); + void SetCaptureGain(double gain); void SetMuteSSRC(uint32_t ssrc, bool mute); void SetVolumeSSRC(uint32_t ssrc, double volume); @@ -74,6 +75,7 @@ private: std::atomic<bool> m_should_playback = true; std::atomic<double> m_capture_gate = 0.0; + std::atomic<double> m_capture_gain = 1.0; std::unordered_set<uint32_t> m_muted_ssrcs; std::unordered_map<uint32_t, double> m_volume_ssrc; |