diff options
author | Maki <maki@hotmilk.space> | 2024-04-19 02:32:29 -0400 |
---|---|---|
committer | Maki <maki@hotmilk.space> | 2024-04-19 02:32:29 -0400 |
commit | 477b45be1be256b7496e1d45b41754c6e40ef58a (patch) | |
tree | 24dbec258400c592af9fe04e8ba8532a63346448 /indra/llplugin | |
parent | 09b0244f0e623dad43f579c9c7ba42ad0d53ed25 (diff) |
Add toggle for PipeWire volume catcher, and refactoring
Diffstat (limited to 'indra/llplugin')
-rw-r--r-- | indra/llplugin/llpluginclassmedia.cpp | 9 | ||||
-rw-r--r-- | indra/llplugin/llpluginclassmedia.h | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/indra/llplugin/llpluginclassmedia.cpp b/indra/llplugin/llpluginclassmedia.cpp index 3e72710366..3d87e2be7c 100644 --- a/indra/llplugin/llpluginclassmedia.cpp +++ b/indra/llplugin/llpluginclassmedia.cpp @@ -981,6 +981,15 @@ void LLPluginClassMedia::enableMediaPluginDebugging( bool enable ) sendMessage( message ); } +#if LL_LINUX +void LLPluginClassMedia::enablePipeWireVolumeCatcher( bool enable ) +{ + LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA, "enable_pipewire_volume_catcher"); + message.setValueBoolean( "enable", enable ); + sendMessage( message ); +} +#endif + void LLPluginClassMedia::setTarget(const std::string &target) { mTarget = target; diff --git a/indra/llplugin/llpluginclassmedia.h b/indra/llplugin/llpluginclassmedia.h index ba76ae4e37..4b5ec2b76c 100644 --- a/indra/llplugin/llpluginclassmedia.h +++ b/indra/llplugin/llpluginclassmedia.h @@ -122,6 +122,9 @@ public: // enable/disable media plugin debugging messages and info spam void enableMediaPluginDebugging( bool enable ); +#if LL_LINUX + void enablePipeWireVolumeCatcher( bool enable ); +#endif // Javascript <-> viewer events void jsEnableObject( bool enable ); |