diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2019-02-03 20:12:50 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2019-07-20 08:48:35 +0200 |
commit | 55eb1c54ebe33faa8b1eb8c527d5644961ca78dc (patch) | |
tree | 81b5a4f89cfc867bc73901c7cccffc89baf3c3ff /apps/plugins/fireworks.c | |
parent | 9c17734394177791d1101e31aed7537c81e610b6 (diff) | |
download | rockbox-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/fireworks.c')
-rw-r--r-- | apps/plugins/fireworks.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/apps/plugins/fireworks.c b/apps/plugins/fireworks.c index 54efaba6ca..d6ca6618cb 100644 --- a/apps/plugins/fireworks.c +++ b/apps/plugins/fireworks.c | |||
@@ -113,35 +113,35 @@ LCD_RGBPACK(19,10,26) }; | |||
113 | #endif | 113 | #endif |
114 | 114 | ||
115 | static const struct opt_items autofire_delay_settings[15] = { | 115 | static const struct opt_items autofire_delay_settings[15] = { |
116 | { "Off", -1 }, | 116 | { STR(LANG_OFF) }, |
117 | { "50ms", -1 }, | 117 | { "50ms", TALK_ID(50, UNIT_MS) }, |
118 | { "100ms", -1 }, | 118 | { "100ms", TALK_ID(100, UNIT_MS) }, |
119 | { "200ms", -1 }, | 119 | { "200ms", TALK_ID(200, UNIT_MS) }, |
120 | { "300ms", -1 }, | 120 | { "300ms", TALK_ID(300, UNIT_MS) }, |
121 | { "400ms", -1 }, | 121 | { "400ms", TALK_ID(400, UNIT_MS) }, |
122 | { "500ms", -1 }, | 122 | { "500ms", TALK_ID(500, UNIT_MS) }, |
123 | { "600ms", -1 }, | 123 | { "600ms", TALK_ID(600, UNIT_MS) }, |
124 | { "700ms", -1 }, | 124 | { "700ms", TALK_ID(700, UNIT_MS) }, |
125 | { "800ms", -1 }, | 125 | { "800ms", TALK_ID(800, UNIT_MS) }, |
126 | { "900ms", -1 }, | 126 | { "900ms", TALK_ID(900, UNIT_MS) }, |
127 | { "1s", -1 }, | 127 | { "1s", TALK_ID(1, UNIT_SEC) }, |
128 | { "2s", -1 }, | 128 | { "2s", TALK_ID(2, UNIT_SEC) }, |
129 | { "3s", -1 }, | 129 | { "3s", TALK_ID(3, UNIT_SEC) }, |
130 | { "4s", -1 } | 130 | { "4s", TALK_ID(4, UNIT_SEC) } |
131 | }; | 131 | }; |
132 | 132 | ||
133 | int autofire_delay_values[15] = { | 133 | int autofire_delay_values[15] = { |
134 | 0, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200, 300, 400 }; | 134 | 0, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200, 300, 400 }; |
135 | 135 | ||
136 | static const struct opt_items particle_settings[8] = { | 136 | static const struct opt_items particle_settings[8] = { |
137 | { "5", -1 }, | 137 | { "5", TALK_ID(5, UNIT_INT) }, |
138 | { "10", -1 }, | 138 | { "10", TALK_ID(10, UNIT_INT) }, |
139 | { "15", -1 }, | 139 | { "15", TALK_ID(15, UNIT_INT) }, |
140 | { "20", -1 }, | 140 | { "20", TALK_ID(20, UNIT_INT) }, |
141 | { "25", -1 }, | 141 | { "25", TALK_ID(25, UNIT_INT) }, |
142 | { "30", -1 }, | 142 | { "30", TALK_ID(30, UNIT_INT) }, |
143 | { "35", -1 }, | 143 | { "35", TALK_ID(35, UNIT_INT) }, |
144 | { "40", -1 }, | 144 | { "40", TALK_ID(40, UNIT_INT) }, |
145 | }; | 145 | }; |
146 | 146 | ||
147 | int particle_values[8] = { | 147 | int particle_values[8] = { |
@@ -163,7 +163,7 @@ int particle_life_values[9] = { | |||
163 | 20, 30, 40, 50, 60, 70, 80, 90, 100 }; | 163 | 20, 30, 40, 50, 60, 70, 80, 90, 100 }; |
164 | 164 | ||
165 | static const struct opt_items gravity_settings[4] = { | 165 | static const struct opt_items gravity_settings[4] = { |
166 | { "Off", -1 }, | 166 | { STR(LANG_OFF) }, |
167 | { "Weak", -1 }, | 167 | { "Weak", -1 }, |
168 | { "Moderate", -1 }, | 168 | { "Moderate", -1 }, |
169 | { "Strong", -1 }, | 169 | { "Strong", -1 }, |
@@ -185,8 +185,8 @@ int rocket_values[4] = { | |||
185 | #else | 185 | #else |
186 | 186 | ||
187 | static const struct opt_items rocket_settings[2] = { | 187 | static const struct opt_items rocket_settings[2] = { |
188 | { "No", -1 }, | 188 | { STR(LANG_SET_BOOL_NO) }, |
189 | { "Yes", -1 }, | 189 | { STR(LANG_SET_BOOL_YES) }, |
190 | }; | 190 | }; |
191 | int rocket_values[4] = { | 191 | int rocket_values[4] = { |
192 | 1, 0 }; | 192 | 1, 0 }; |