From 38c5230a1d194cb2fc4cf36fb6b417fdefb32788 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Mon, 14 Nov 2022 01:28:07 -0500 Subject: add window to change more stuff with opus --- src/audio/manager.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/audio/manager.hpp') diff --git a/src/audio/manager.hpp b/src/audio/manager.hpp index 7516918..dbb0b6e 100644 --- a/src/audio/manager.hpp +++ b/src/audio/manager.hpp @@ -44,6 +44,13 @@ public: void SetMuteSSRC(uint32_t ssrc, bool mute); void SetVolumeSSRC(uint32_t ssrc, double volume); + void SetEncodingApplication(int application); + [[nodiscard]] int GetEncodingApplication(); + void SetSignalHint(int signal); + [[nodiscard]] int GetSignalHint(); + void SetBitrate(int bitrate); + [[nodiscard]] int GetBitrate(); + void Enumerate(); [[nodiscard]] bool OK() const; @@ -81,6 +88,8 @@ private: ma_context m_context; mutable std::mutex m_mutex; + mutable std::mutex m_enc_mutex; + std::unordered_map, OpusDecoder *>> m_sources; OpusEncoder *m_encoder; -- cgit v1.2.3