[MPlayer-cvslog] r37986 - in trunk: DOCS/man/de/mplayer.1 DOCS/man/en/mplayer.1 gui/app/cfg.c gui/app/cfg.h

ib subversion at mplayerhq.hu
Mon Oct 9 11:46:10 EEST 2017


Author: ib
Date: Mon Oct  9 11:46:09 2017
New Revision: 37986

Log:
Add GUI options for ReplayGain support.

The target loudness for ReplayGain is 89 dB which may or may not
be the user's preferred loudness. In order to be able to adjust
the perceived loudness to the user's preference, there is option
'replay_gain_adjustment' together with the simple on-off switch
'replay_gain'.

Additionally, update man pages.

Modified:
   trunk/gui/app/cfg.c
   trunk/gui/app/cfg.h

Changes in other areas also in this revision:
Modified:
   trunk/DOCS/man/de/mplayer.1
   trunk/DOCS/man/en/mplayer.1

Modified: trunk/gui/app/cfg.c
==============================================================================
--- trunk/gui/app/cfg.c	Sun Oct  8 09:18:41 2017	(r37985)
+++ trunk/gui/app/cfg.c	Mon Oct  9 11:46:09 2017	(r37986)
@@ -89,6 +89,9 @@ int gtkSubDumpSrt;
 
 gtkASS_t gtkASS;
 
+int gtkReplayGainOn;
+int gtkReplayGainAdjustment;
+
 int gtkEnablePlayBar = True;
 int gtkLoadFullscreen;
 int gtkShowVideoWindow = True;
@@ -170,6 +173,9 @@ static const m_option_t gui_opts[] = {
     audio_equ_row(5, 0), audio_equ_row(5, 1), audio_equ_row(5, 2), audio_equ_row(5, 3), audio_equ_row(5, 4), audio_equ_row(5, 5), audio_equ_row(5, 6), audio_equ_row(5, 7), audio_equ_row(5, 8), audio_equ_row(5, 9),
 #undef audio_equ_row
 
+    { "replay_gain",                 &gtkReplayGainOn,         CONF_TYPE_FLAG,        0,           0,     1,          NULL },
+    { "replay_gain_adjustment",      &gtkReplayGainAdjustment, CONF_TYPE_INT,         CONF_RANGE,  -30,   10,         NULL },
+
     { "playbar",                     &gtkEnablePlayBar,        CONF_TYPE_FLAG,        0,           0,     1,          NULL },
     { "load_fullscreen",             &gtkLoadFullscreen,       CONF_TYPE_FLAG,        0,           0,     1,          NULL },
     { "show_videowin",               &gtkShowVideoWindow,      CONF_TYPE_FLAG,        0,           0,     1,          NULL },

Modified: trunk/gui/app/cfg.h
==============================================================================
--- trunk/gui/app/cfg.h	Sun Oct  8 09:18:41 2017	(r37985)
+++ trunk/gui/app/cfg.h	Mon Oct  9 11:46:09 2017	(r37986)
@@ -80,6 +80,9 @@ typedef struct {
 
 extern gtkASS_t gtkASS;
 
+extern int gtkReplayGainOn;
+extern int gtkReplayGainAdjustment;
+
 extern int gtkEnablePlayBar;
 extern int gtkLoadFullscreen;
 extern int gtkShowVideoWindow;


More information about the MPlayer-cvslog mailing list