summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSean Greenslade <sean@seangreenslade.com>2017-03-14 19:36:24 -0700
committerMichał Cichoń <michcic@gmail.com>2017-05-17 04:37:39 +0200
commitc934c373e16acc7b7db6a374b1047649a0875dc3 (patch)
tree0a22ba27e4da52e99647955bbe9bacb1fb4fcae4 /src/main.c
parentf3ccc0628f3340e1f77eb38084ece2521db9d737 (diff)
downloadpianobar-windows-c934c373e16acc7b7db6a374b1047649a0875dc3.tar.gz
pianobar-windows-c934c373e16acc7b7db6a374b1047649a0875dc3.tar.bz2
pianobar-windows-c934c373e16acc7b7db6a374b1047649a0875dc3.zip
Added gain_mul setting to soften effect of replaygain.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 3e6e85f..4f4214a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -31,6 +31,7 @@ THE SOFTWARE.
#include "ui.h"
#include "ui_dispatch.h"
#include "ui_readline.h"
+#include "settings.h"
/* authenticate user
*/
@@ -238,7 +239,7 @@ static void BarMainStartPlayback(BarApp_t *app)
}
else
{
- BarPlayer2SetGain(app->player, curSong->fileGain);
+ BarPlayer2SetGain(app->player, curSong->fileGain * app->settings.gainMul);
BarPlayer2Open(app->player, curSong->audioUrl);
/* throw event */