Index: apps/debug_menu.c =================================================================== --- apps/debug_menu.c (revision 20211) +++ apps/debug_menu.c (working copy) @@ -2605,6 +2605,15 @@ return simplelist_show_list(&isp1583); } #endif +static bool dbg_pause_unpause(void) +{ + do { + audio_pause(); + sleep(HZ/2); + audio_resume(); + } while (get_action(CONTEXT_STD,HZ/2) != ACTION_STD_CANCEL); + return false; +} #if defined(CREATIVE_ZVx) && !defined(SIMULATOR) extern int pic_dbg_num_items(void); @@ -2638,6 +2647,7 @@ bool (*function) (void); /* return true if USB was connected */ }; static const struct the_menu_item menuitems[] = { + { "Pause unpause loop", dbg_pause_unpause }, #if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || \ (defined(CPU_PP) && !(CONFIG_STORAGE & STORAGE_SD)) { "Dump ROM contents", dbg_save_roms },