diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2010-12-26 18:56:40 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2010-12-27 13:43:06 +0100 |
commit | b452bc6cd392fcb7631a5d5c4d794aafd5e380e9 (patch) | |
tree | 252ca5a8b261f7ffc33b058c13cba49eb6385398 /src/main.c | |
parent | 46b837ce695ca844db9f408512b43b592eab5126 (diff) | |
download | pianobar-b452bc6cd392fcb7631a5d5c4d794aafd5e380e9.tar.gz pianobar-b452bc6cd392fcb7631a5d5c4d794aafd5e380e9.tar.bz2 pianobar-b452bc6cd392fcb7631a5d5c4d794aafd5e380e9.zip |
Software volume control
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -180,7 +180,8 @@ static void BarMainHandleUserInput (BarApp_t *app) { BarUiActQuit, BarUiActRenameStation, BarUiActSelectStation, BarUiActTempBanSong, BarUiActPrintUpcoming, BarUiActSelectQuickMix, - BarUiActDebug, BarUiActBookmark}; + BarUiActDebug, BarUiActBookmark, BarUiActVolDown, + BarUiActVolUp}; idToF[i] (app, curFd); break; } @@ -275,6 +276,7 @@ static void BarMainStartPlayback (BarApp_t *app, pthread_t *playerThread) { } app->player.gain = app->playlist->fileGain; + app->player.scale = BarPlayerCalcScale (app->player.gain + app->settings.volume); app->player.audioFormat = app->playlist->audioFormat; /* throw event */ |