summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/apps/main.c b/apps/main.c
index c25098f89c..5966208771 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -224,14 +224,18 @@ void init(void)
224 global_settings.mdb_shape, 224 global_settings.mdb_shape,
225 global_settings.mdb_enable, 225 global_settings.mdb_enable,
226 global_settings.superbass); 226 global_settings.superbass);
227
227#if CONFIG_CODEC == SWCODEC 228#if CONFIG_CODEC == SWCODEC
228 audio_preinit(); 229 audio_preinit();
229#endif 230#endif
230 audio_init(); 231
231 button_clear_queue(); /* Empty the keyboard buffer */ 232 /* audio_init must to know the size of voice buffer so init voice first */
232#if CONFIG_CODEC == SWCODEC 233#if CONFIG_CODEC == SWCODEC
233 talk_init(); 234 talk_init();
234#endif 235#endif
236
237 audio_init();
238 button_clear_queue(); /* Empty the keyboard buffer */
235} 239}
236 240
237#else 241#else
@@ -419,11 +423,15 @@ void init(void)
419 global_settings.mdb_shape, 423 global_settings.mdb_shape,
420 global_settings.mdb_enable, 424 global_settings.mdb_enable,
421 global_settings.superbass); 425 global_settings.superbass);
426
427 /* audio_init must to know the size of voice buffer so init voice first */
428 talk_init();
429
422 audio_init(); 430 audio_init();
423#if (defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)) && !defined(SIMULATOR) 431#if (defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES)) && !defined(SIMULATOR)
424 pcm_rec_init(); 432 pcm_rec_init();
425#endif 433#endif
426 talk_init(); 434
427 /* runtime database has to be initialized after audio_init() */ 435 /* runtime database has to be initialized after audio_init() */
428 cpu_boost(false); 436 cpu_boost(false);
429 437