diff options
| author | mio <stigma@disroot.org> | 2025-04-18 18:44:03 +1000 |
|---|---|---|
| committer | mio <stigma@disroot.org> | 2025-05-11 16:52:29 +1000 |
| commit | 6d6bea81dc67fbebfc64a5614e0bc2df73c0025d (patch) | |
| tree | 8ba1df25bbd6b4a330141aca2ec43b995700f1c6 /src/app/xineEngine.cpp | |
| parent | 27a20e43a143ac2dbeaa0f0441f829f1a5afe6d3 (diff) | |
| download | codeine-6d6bea81dc67fbebfc64a5614e0bc2df73c0025d.tar.gz codeine-6d6bea81dc67fbebfc64a5614e0bc2df73c0025d.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>
(cherry picked from commit d9afd6ce2b504f61945b021a427ea469285d19f9)
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() { |
