From: Philip Chimento Date: Sun, 23 Feb 2014 20:02:38 +0000 (-0800) Subject: Move helper function into #ifdef X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=7e717b155e333ee6dff5b3c9b1cc702e486e9e1f;p=projects%2Fchimara%2Fchimara.git Move helper function into #ifdef The function only got called if sound support was enabled, so move it into that particular #ifdef to avoid an unused function warning. --- diff --git a/libchimara/schannel.c b/libchimara/schannel.c index b30e170..bc59b54 100644 --- a/libchimara/schannel.c +++ b/libchimara/schannel.c @@ -763,13 +763,13 @@ glk_schannel_set_volume(schanid_t chan, glui32 vol) glk_schannel_set_volume_ext(chan, vol, 0, 0); } +#if defined(GSTREAMER_0_10_SOUND) || defined(GSTREAMER_1_0_SOUND) static double volume_glk_to_gstreamer(glui32 volume_glk) { return CLAMP(((double)volume_glk / 0x10000), 0.0, 10.0); } -#if defined(GSTREAMER_0_10_SOUND) || defined(GSTREAMER_1_0_SOUND) static gboolean volume_change_timeout(schanid_t chan) {