diff options
author | 2009-10-10 16:28:45 +0200 | |
---|---|---|
committer | 2009-10-10 16:28:45 +0200 | |
commit | 7cca327d228d6314e30fc5418cae0b9fbd4691cb (patch) | |
tree | 87bd15bde1be5ebeca7bdef2e82fc6a29bb8244e /streamer.c | |
parent | 87e34106f7ffabeb92110ccaece44b910de325b0 (diff) |
new config file WIP
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -400,7 +400,7 @@ streamer_init (void) { mutex = mutex_create (); // src = src_new (SRC_SINC_BEST_QUALITY, 2, NULL); // src = src_new (SRC_LINEAR, 2, NULL); - src = src_new (conf_src_quality, 2, NULL); + src = src_new (conf_get_int ("src_quality", 2), 2, NULL); if (!src) { return -1; } @@ -430,6 +430,9 @@ int replaygain_scale = 1; static void apply_replay_gain_int16 (playItem_t *it, char *bytes, int size) { + int conf_replaygain_mode = conf_get_int ("replaygain_mode", 0); + int conf_replaygain_scale = conf_get_int ("replaygain_scale", 1); + if (!replaygain || !conf_replaygain_mode) { return; } @@ -472,6 +475,8 @@ apply_replay_gain_int16 (playItem_t *it, char *bytes, int size) { static void apply_replay_gain_float32 (playItem_t *it, char *bytes, int size) { + int conf_replaygain_mode = conf_get_int ("replaygain_mode", 0); + int conf_replaygain_scale = conf_get_int ("replaygain_scale", 1); if (!replaygain || !conf_replaygain_mode) { return; } |