static void getChanges(void) { m68k_speed=mainMenu_throttle; #ifndef NO_SOUND if (mainMenu_sound) { #if defined (GP2X) || defined (PSP) || defined (GIZMONDO) if (mainMenu_sound == 1) { changed_produce_sound=2; } else { // accurate sound changed_produce_sound=3; } sound_default_evtime(); #else changed_produce_sound=2; sound_default_evtime(); #endif } else #endif changed_produce_sound=0; changed_gfx_framerate=mainMenu_frameskip; }
static int open_sound (void) { #ifdef DEBUG_SOUND dbg("sound.c : open_sound"); #endif if (gp2x_start_sound(sound_rate, 16, 0) != 0) return 0; sound_default_evtime(); have_sound = 1; scaled_sample_evtime_ok = 1; sound_available = 1; #ifdef DEBUG_SOUND dbg(" sound.c : ! open_sound"); #endif return 1; }
void m68k_go (int may_quit) { gui_purge_events(); #if !defined(DREAMCAST) || defined(DEBUG_UAE4ALL) if (in_m68k_go || !may_quit) { #ifdef DEBUG_UAE4ALL puts("Bug! m68k_go is not reentrant.\n"); #endif return; } in_m68k_go++; #endif g_emulator.quit_program = RunStateReset; for (;;) { if (g_emulator.quit_program > RunStateNormal) { if (g_emulator.quit_program == RunStateExit) break; g_emulator.quit_program = RunStateNormal; g_emulator.reset_all_systems (); customreset (); check_prefs_changed_cpu (); sound_default_evtime (); /* We may have been restoring state, but we're done now. */ handle_active_events (); if (mispcflags) do_specialties (0); } m68k_run(); } #if !defined(DREAMCAST) || defined(DEBUG_UAE4ALL) in_m68k_go--; #endif #ifdef DEBUG_UAE4ALL puts("BYE?"); #endif }