int tape_stop( void ) { if( tape_playing ) { tape_playing = 0; ui_statusbar_update( UI_STATUSBAR_ITEM_TAPE, UI_STATUSBAR_STATE_INACTIVE ); loader_tape_stop(); /* If we were fastloading, sound was off, so turn it back on, and reset the speed counter */ if( settings_current.fastload ) { sound_unpause(); timer_estimate_reset(); } tape_save_next_edge(); event_remove_type( tape_edge_event ); /* Turn off any lingering MIC level in a second (some loaders like Alkatraz seem to check the MIC level soon after loading is finished, presumably as a copy protection check */ event_add( tstates + machine_current->timings.tstates_per_frame, tape_mic_off_event ); } if( stop_event != -1 ) debugger_event( stop_event ); return 0; }
int tape_stop( void ) { if( tape_playing ) { tape_playing = 0; ui_statusbar_update( UI_STATUSBAR_ITEM_TAPE, UI_STATUSBAR_STATE_INACTIVE ); loader_tape_stop(); /* If we were fastloading, sound was off, so turn it back on, and reset the speed counter */ if( settings_current.fastload ) { sound_unpause(); timer_estimate_reset(); } event_remove_type( tape_edge_event ); } if( stop_event != -1 ) debugger_event( stop_event ); return 0; }