From b452bc6cd392fcb7631a5d5c4d794aafd5e380e9 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 26 Dec 2010 18:56:40 +0100 Subject: Software volume control --- src/player.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/player.c') 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; -- cgit v1.2.3