diff options
author | mio <stigma@disroot.org> | 2025-04-18 18:44:03 +1000 |
---|---|---|
committer | mio <stigma@disroot.org> | 2025-05-11 16:46:23 +1000 |
commit | d9afd6ce2b504f61945b021a427ea469285d19f9 (patch) | |
tree | 6bdfb379519e71ab9bb88c50ba717a1bbf463601 /src/app/xineEngine.cpp | |
parent | 6a71a1b4140d02f36e054ac3a57a832f8d9103ea (diff) | |
download | codeine-d9afd6ce2b504f61945b021a427ea469285d19f9.tar.gz codeine-d9afd6ce2b504f61945b021a427ea469285d19f9.zip |
Add mute checkbox to volume slider
Part of https://mirror.git.trinitydesktop.org/gitea/TDE/codeine/issues/5
Signed-off-by: mio <stigma@disroot.org>
Diffstat (limited to 'src/app/xineEngine.cpp')
-rw-r--r-- | src/app/xineEngine.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/app/xineEngine.cpp b/src/app/xineEngine.cpp index 346af68..8a23f82 100644 --- a/src/app/xineEngine.cpp +++ b/src/app/xineEngine.cpp @@ -455,6 +455,12 @@ VideoWindow::posTimeLength( PosTimeLength type ) const return 0; //--warning } +bool +VideoWindow::isMuted() const +{ + return xine_get_param(m_stream, XINE_PARAM_AUDIO_AMP_MUTE); +} + uint VideoWindow::volume() const { @@ -595,6 +601,12 @@ VideoWindow::setStreamParameter( int value ) xine_set_param( m_stream, parameter, value ); } +void +VideoWindow::setMuted(bool mute) +{ + xine_set_param(m_stream, XINE_PARAM_AUDIO_AMP_MUTE, mute); +} + const Engine::Scope& VideoWindow::scope() { |