summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-08-03 18:55:00 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-08-03 18:55:00 +0000
commit6c36a58e49e44260255345a2889fafef04cc893e (patch)
tree8effd2c40ac3f1ece60ae23130a1c494f9886f8b /apps
parent05b8a9252c03a33cdcdc57084a36cff6c011abd3 (diff)
downloadrockbox-6c36a58e49e44260255345a2889fafef04cc893e.tar.gz
rockbox-6c36a58e49e44260255345a2889fafef04cc893e.zip
Final changes to the recording naming code, this should make jhMikeS happy ;)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14165 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/recording.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 0af31c7f9d..8bcc3ee9af 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -604,18 +604,10 @@ static bool check_dir(char *folder)
/* the list below must match enum audio_sources in audio.h */
static const char* const prestr[] =
{
-#ifdef HAVE_MIC_IN
- "R_MIC_",
-#endif
-#ifdef HAVE_LINE_REC
- "R_LINE_",
-#endif
-#ifdef HAVE_SPDIF_IN
- "R_SPDIF_",
-#endif
-#ifdef HAVE_FMRADIO_REC
- "R_FM_",
-#endif
+ HAVE_MIC_IN_([AUDIO_SRC_MIC] = "R_MIC_",)
+ HAVE_LINE_REC_([AUDIO_SRC_LINEIN] = "R_LINE_",)
+ HAVE_SPDIF_IN_([AUDIO_SRC_SPDIF] = "R_SPDIF_",)
+ HAVE_FMRADIO_REC_([AUDIO_SRC_FMRADIO] = "R_FM_",)
};
char *rec_create_filename(char *buffer)