summaryrefslogtreecommitdiffstats
path: root/src/app/xineEngine.h
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-10-06 22:00:01 +0900
committerMichele Calgaro <[email protected]>2023-10-09 13:56:27 +0900
commitb5977d5e67d68ec18fad1d1130f5a306ce4fe598 (patch)
tree7f2ce8d81b26d7d91d473d9224c400d9cfd28d4c /src/app/xineEngine.h
parent28a3b75fba585a94c7bcfec01fdcaba4d6b57006 (diff)
downloadcodeine-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 <[email protected]>
Diffstat (limited to 'src/app/xineEngine.h')
-rw-r--r--src/app/xineEngine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/xineEngine.h b/src/app/xineEngine.h
index 70271b9..d152a96 100644
--- a/src/app/xineEngine.h
+++ b/src/app/xineEngine.h
@@ -39,6 +39,7 @@ namespace Codeine
enum PosTimeLength { Pos, Time, Length };
static VideoWindow *s_instance;
+ static bool s_logarithmicVolume;
VideoWindow( const VideoWindow& ); //disable
VideoWindow &operator=( const VideoWindow& ); //disable
@@ -120,6 +121,7 @@ namespace Codeine
private:
static void destSizeCallBack( void*, int, int, double, int*, int*, double* );
static void frameOutputCallBack( void*, int, int, double, int*, int*, int*, int*, double*, int*, int* );
+ static int makeVolumeLogarithmic(int volume);
void initVideo();
void cleanUpVideo();