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/volumeAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app/volumeAction.cpp') diff --git a/src/app/volumeAction.cpp b/src/app/volumeAction.cpp index 1663190..0d8a181 100644 --- a/src/app/volumeAction.cpp +++ b/src/app/volumeAction.cpp @@ -77,7 +77,7 @@ VolumeAction::toggled( bool const b ) { DEBUG_BLOCK - TQString t = TQString::number(Codeine::engine()->volume()) + "%"; + TQString t = TQString::number(100 - m_widget->slider->value()) + "%"; setToolTip( i18n( "Volume: %1" ).arg( t ) ); m_widget->label->setText( t ); -- cgit v1.2.3