diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-10-06 22:00:01 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-10-09 13:56:27 +0900 |
commit | b5977d5e67d68ec18fad1d1130f5a306ce4fe598 (patch) | |
tree | 7f2ce8d81b26d7d91d473d9224c400d9cfd28d4c /src/app/volumeAction.cpp | |
parent | 28a3b75fba585a94c7bcfec01fdcaba4d6b57006 (diff) | |
download | codeine-b5977d5e67d68ec18fad1d1130f5a306ce4fe598.tar.gz codeine-b5977d5e67d68ec18fad1d1130f5a306ce4fe598.zip |
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 <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/app/volumeAction.cpp')
-rw-r--r-- | src/app/volumeAction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); |