From b5977d5e67d68ec18fad1d1130f5a306ce4fe598 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 6 Oct 2023 22:00:01 +0900 Subject: xine engine: make volume control logarithmic for versions of xine < 1.2.13. For xine versions >= 1.2.13, libxine already makes the volume logarithmic. This relates to TDE/tdemultimedia#40. Signed-off-by: Michele Calgaro --- src/app/stateChange.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/app/stateChange.cpp') diff --git a/src/app/stateChange.cpp b/src/app/stateChange.cpp index db07231..e0450d3 100644 --- a/src/app/stateChange.cpp +++ b/src/app/stateChange.cpp @@ -16,6 +16,7 @@ #include "theStream.h" #include "videoSettings.h" //FIXME unfortunate #include "xineEngine.h" +#include "volumeAction.h" //TODO do in Sconstruct @@ -62,9 +63,7 @@ MainWindow::engineStateChanged( Engine::State state ) toggleAction( "play" )->setChecked( state == Playing ); //FIXME bad design to do this way - TQSlider *volume = (TQSlider*)toolBar()->child( "volume" ); - if (volume) - volume->setValue( engine()->volume() ); + m_volumeAction->sliderMoved( engine()->volume() ); } -- cgit v1.2.3