From ea7992455a9704e2eb6bd6c9b39fabd111a7b997 Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Wed, 15 Nov 2006 20:26:33 +0000 Subject: Make the updated %rg tag match playback behaviour (fall back to track gain if album gain requested but not available). Share the mode decision logic with playback code and simplify the %rg tag handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11532 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/misc.h') diff --git a/apps/misc.h b/apps/misc.h index 6c660e0a5e..f273631030 100644 --- a/apps/misc.h +++ b/apps/misc.h @@ -82,4 +82,12 @@ long default_event_handler(long event); void car_adapter_mode_init(void); extern int show_logo(void); +#if CONFIG_CODEC == SWCODEC +/* Return current ReplayGain mode a file should have (REPLAYGAIN_TRACK or + * REPLAYGAIN_ALBUM) if ReplayGain processing is enabled, or -1 if no + * information present. + */ +int get_replaygain_mode(bool have_track_gain, bool have_album_gain); +#endif + #endif /* MISC_H */ -- cgit v1.2.3