diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-07-23 01:44:36 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-07-23 01:44:36 -0400 |
commit | dc92fef708b668cab31b4a39f425a126e620c2cb (patch) | |
tree | 9e88a22c6f5e030df83ab525b410b2273c9ba1aa /src/audio/manager.hpp | |
parent | 07fc439eb78c9ba7bb3acc448ea7e471e15f7e4f (diff) | |
download | abaddon-portaudio-dc92fef708b668cab31b4a39f425a126e620c2cb.tar.gz abaddon-portaudio-dc92fef708b668cab31b4a39f425a126e620c2cb.zip |
slight refactor, show rnnoise vad prob in meter when selected
Diffstat (limited to 'src/audio/manager.hpp')
-rw-r--r-- | src/audio/manager.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/audio/manager.hpp b/src/audio/manager.hpp index 2e7d087..a39532b 100644 --- a/src/audio/manager.hpp +++ b/src/audio/manager.hpp @@ -77,6 +77,8 @@ public: void SetVADMethod(const std::string &method); void SetVADMethod(VADMethod method); + VADMethod GetVADMethod() const; + float GetCurrentVADProbability() const; private: void OnCapturedPCM(const int16_t *pcm, ma_uint32 frames); @@ -129,6 +131,7 @@ private: std::atomic<double> m_capture_gate = 0.0; std::atomic<double> m_capture_gain = 1.0; std::atomic<double> m_prob_threshold = 0.5; + std::atomic<float> m_vad_prob = 0.0; std::unordered_set<uint32_t> m_muted_ssrcs; std::unordered_map<uint32_t, double> m_volume_ssrc; |