summaryrefslogtreecommitdiff
path: root/src/player.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2010-12-26 18:56:40 +0100
committerLars-Dominik Braun <lars@6xq.net>2010-12-27 13:43:06 +0100
commitb452bc6cd392fcb7631a5d5c4d794aafd5e380e9 (patch)
tree252ca5a8b261f7ffc33b058c13cba49eb6385398 /src/player.c
parent46b837ce695ca844db9f408512b43b592eab5126 (diff)
downloadpianobar-b452bc6cd392fcb7631a5d5c4d794aafd5e380e9.tar.gz
pianobar-b452bc6cd392fcb7631a5d5c4d794aafd5e380e9.tar.bz2
pianobar-b452bc6cd392fcb7631a5d5c4d794aafd5e380e9.zip
Software volume control
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/player.c b/src/player.c
index 83c5713..a819103 100644
--- a/src/player.c
+++ b/src/player.c
@@ -56,7 +56,7 @@ THE SOFTWARE.
* @param apply this gain
* @return this * yourvalue = newgain value
*/
-static inline unsigned int computeReplayGainScale (float applyGain) {
+unsigned int BarPlayerCalcScale (float applyGain) {
return pow (10.0, applyGain / 20.0) * RG_SCALE_FACTOR;
}
@@ -414,7 +414,6 @@ void *BarPlayerThread (void *data) {
/* init handles */
pthread_mutex_init (&player->pauseMutex, NULL);
- player->scale = computeReplayGainScale (player->gain);
player->waith.data = (void *) player;
/* extraHeaders will be initialized later */
player->waith.extraHeaders = extraHeaders;