summaryrefslogtreecommitdiff
path: root/apps/plugins/wavrecord.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-02-03 20:12:50 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2019-07-20 08:48:35 +0200
commit55eb1c54ebe33faa8b1eb8c527d5644961ca78dc (patch)
tree81b5a4f89cfc867bc73901c7cccffc89baf3c3ff /apps/plugins/wavrecord.c
parent9c17734394177791d1101e31aed7537c81e610b6 (diff)
downloadrockbox-55eb1c54ebe33faa8b1eb8c527d5644961ca78dc.tar.gz
rockbox-55eb1c54ebe33faa8b1eb8c527d5644961ca78dc.zip
FS#7704 - Talk support for plugins
Original patch by Mario Lang Heavily updated by Igor Poretsky Further updated by myself This patch breaks binary API compatibility by placing the new functions where they make the most logical sense. IMO this is the better approach to take given the scope of the changes needed for talk support. Since binary API is changing, the patch also moves some other functions around to more logical locations. As well as voice support in plugins, this patch voice-enables several simple plugins. There will be follow-up patches for many plugins that build on this one. Change-Id: I18070c06e77e8a3c016c2eb6b6c5dbe6633b9b54
Diffstat (limited to 'apps/plugins/wavrecord.c')
-rw-r--r--apps/plugins/wavrecord.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/plugins/wavrecord.c b/apps/plugins/wavrecord.c
index f7467b5b5e..23751be041 100644
--- a/apps/plugins/wavrecord.c
+++ b/apps/plugins/wavrecord.c
@@ -3685,19 +3685,19 @@ static int recording_menu(void)
3685 bool done = false; 3685 bool done = false;
3686 3686
3687 static const struct opt_items freqs[9] = { 3687 static const struct opt_items freqs[9] = {
3688 { "8000Hz", -1 }, 3688 { "8000Hz", TALK_ID(8, UNIT_KHZ) },
3689 { "11025Hz", -1 }, 3689 { "11025Hz", TALK_ID(11, UNIT_KHZ) },
3690 { "12000Hz", -1 }, 3690 { "12000Hz", TALK_ID(12, UNIT_KHZ) },
3691 { "16000Hz", -1 }, 3691 { "16000Hz", TALK_ID(16, UNIT_KHZ) },
3692 { "22050Hz", -1 }, 3692 { "22050Hz", TALK_ID(22, UNIT_KHZ) },
3693 { "24000Hz", -1 }, 3693 { "24000Hz", TALK_ID(24, UNIT_KHZ) },
3694 { "32000Hz", -1 }, 3694 { "32000Hz", TALK_ID(32, UNIT_KHZ) },
3695 { "44100Hz", -1 }, 3695 { "44100Hz", TALK_ID(44, UNIT_KHZ) },
3696 { "48000Hz", -1 }, 3696 { "48000Hz", TALK_ID(48, UNIT_KHZ) },
3697 }; 3697 };
3698 static const struct opt_items chans[2] = { 3698 static const struct opt_items chans[2] = {
3699 { "Mono", -1 }, 3699 { STR(LANG_CHANNEL_MONO) },
3700 { "Stereo", -1 }, 3700 { STR(LANG_CHANNEL_STEREO) },
3701 }; 3701 };
3702 static const struct opt_items srcs[WAV_NUM_SRC] = { 3702 static const struct opt_items srcs[WAV_NUM_SRC] = {
3703 { "Line In", -1 }, 3703 { "Line In", -1 },