summaryrefslogtreecommitdiff
path: root/apps/plugins/wavrecord.c
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-01-17 22:53:12 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-01-17 22:53:12 +0000
commit0b41f0599f62ec9099197bbe6f4dd7144cebe0df (patch)
tree927f23ea1a943777baa0e7cf1f8070608c3847d7 /apps/plugins/wavrecord.c
parent2fecb713ea07f06b5219a75c95909b986c2468a5 (diff)
downloadrockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.zip
rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.tar.gz
rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.tar.bz2
rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.tar.xz
unify pointers to value for configfile, and add TYPE_BOOL type, used by
pictureflow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19786 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/wavrecord.c')
-rw-r--r--apps/plugins/wavrecord.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/plugins/wavrecord.c b/apps/plugins/wavrecord.c
index 69d243e..58a103d 100644
--- a/apps/plugins/wavrecord.c
+++ b/apps/plugins/wavrecord.c
@@ -3191,9 +3191,12 @@ static char *source_str[WAV_NUM_SRC] = { "line in", "mic",
HAVE_SPDIF_REC_("spdif",) };
struct configdata disk_config[] = {
- { TYPE_ENUM, 0, 9, &reccfg_disk.samplerate, "sample rate", samplerate_str, NULL },
- { TYPE_ENUM, 0, 2, &reccfg_disk.channels, "channels", channel_str, NULL },
- { TYPE_ENUM, 0, WAV_NUM_SRC, &reccfg_disk.source, "source", source_str, NULL },
+ { TYPE_ENUM, 0, 9, { .int_p = &reccfg_disk.samplerate }, "sample rate",
+ samplerate_str },
+ { TYPE_ENUM, 0, 2, { .int_p = &reccfg_disk.channels }, "channels",
+ channel_str },
+ { TYPE_ENUM, 0, WAV_NUM_SRC, { .int_p = &reccfg_disk.source }, "source",
+ source_str },
};
static char recfilename[MAX_PATH];