void video_manager::end_recording(movie_format format) { if (format == MF_AVI) { // close the file if it exists if (m_avi_file) { m_avi_file.reset(); // reset the state m_avi_frame = 0; } } else if (format == MF_MNG) { // close the file if it exists if (m_mng_file != nullptr) { mng_capture_stop(*m_mng_file); m_mng_file.reset(); // reset the state m_mng_frame = 0; } } }
void record_movie_stop(void) { #if 0 /* AdvanceMAME has its record code */ if (movie_file) { mng_capture_stop(movie_file); mame_fclose(movie_file); movie_file = NULL; } #endif }
void video_movie_end_recording(void) { /* close the file if it exists */ if (movie_file != NULL) { mng_capture_stop(movie_file); mame_fclose(movie_file); movie_file = NULL; movie_frame = 0; } }
void video_manager::end_recording_mng(uint32_t index) { mng_info_t &info = m_mngs[index]; if (info.m_mng_file != nullptr) { mng_capture_stop(*info.m_mng_file); info.m_mng_file.reset(); // reset the state info.m_mng_frame = 0; } }
void video_manager::end_recording() { // close the file if it exists if (m_avifile != NULL) { avi_close(m_avifile); m_avifile = NULL; } // close the file if it exists if (m_mngfile != NULL) { mng_capture_stop(*m_mngfile); auto_free(machine(), m_mngfile); m_mngfile = NULL; } // reset the state m_movie_frame = 0; }