aboutsummaryrefslogtreecommitdiffstats
path: root/src/replay_gain.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-01-04 20:43:19 +0100
committerMax Kellermann <max@duempel.org>2010-01-04 21:02:36 +0100
commit1330274ffc6f80d5dd768902b09849cf32f329d2 (patch)
treec0cb2e00efec3239e1976a212f6fbdeb62fe5b04 /src/replay_gain.c
parent0e183d3fa1f216729725127d868d66268e1a35d4 (diff)
downloadmpd-1330274ffc6f80d5dd768902b09849cf32f329d2.tar.gz
mpd-1330274ffc6f80d5dd768902b09849cf32f329d2.tar.xz
mpd-1330274ffc6f80d5dd768902b09849cf32f329d2.zip
replay_gain: moved code to replay_gain_info.c
Diffstat (limited to 'src/replay_gain.c')
-rw-r--r--src/replay_gain.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/replay_gain.c b/src/replay_gain.c
index 3537a96ed..d5ac55eba 100644
--- a/src/replay_gain.c
+++ b/src/replay_gain.c
@@ -127,26 +127,3 @@ void replay_gain_global_init(void)
replay_gain_missing_preamp = pow(10, f / 20.0);
}
}
-
-struct replay_gain_info *replay_gain_info_new(void)
-{
- struct replay_gain_info *ret = g_new(struct replay_gain_info, 1);
-
- for (unsigned i = 0; i < G_N_ELEMENTS(ret->tuples); ++i) {
- ret->tuples[i].gain = 0.0;
- ret->tuples[i].peak = 0.0;
- }
-
- return ret;
-}
-
-struct replay_gain_info *
-replay_gain_info_dup(const struct replay_gain_info *src)
-{
- return g_memdup(src, sizeof(*src));
-}
-
-void replay_gain_info_free(struct replay_gain_info *info)
-{
- g_free(info);
-}