From 55eb1c54ebe33faa8b1eb8c527d5644961ca78dc Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 3 Feb 2019 20:12:50 -0500 Subject: 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 --- apps/plugins/wavrecord.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'apps/plugins/wavrecord.c') 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) bool done = false; static const struct opt_items freqs[9] = { - { "8000Hz", -1 }, - { "11025Hz", -1 }, - { "12000Hz", -1 }, - { "16000Hz", -1 }, - { "22050Hz", -1 }, - { "24000Hz", -1 }, - { "32000Hz", -1 }, - { "44100Hz", -1 }, - { "48000Hz", -1 }, + { "8000Hz", TALK_ID(8, UNIT_KHZ) }, + { "11025Hz", TALK_ID(11, UNIT_KHZ) }, + { "12000Hz", TALK_ID(12, UNIT_KHZ) }, + { "16000Hz", TALK_ID(16, UNIT_KHZ) }, + { "22050Hz", TALK_ID(22, UNIT_KHZ) }, + { "24000Hz", TALK_ID(24, UNIT_KHZ) }, + { "32000Hz", TALK_ID(32, UNIT_KHZ) }, + { "44100Hz", TALK_ID(44, UNIT_KHZ) }, + { "48000Hz", TALK_ID(48, UNIT_KHZ) }, }; static const struct opt_items chans[2] = { - { "Mono", -1 }, - { "Stereo", -1 }, + { STR(LANG_CHANNEL_MONO) }, + { STR(LANG_CHANNEL_STEREO) }, }; static const struct opt_items srcs[WAV_NUM_SRC] = { { "Line In", -1 }, -- cgit v1.2.3