Opl_Apu::~Opl_Apu() { if (opl) { switch (type_) { case type_opll: case type_msxmusic: case type_smsfmunit: case type_vrc7: ym2413_shutdown( opl ); break; case type_opl: ym3526_shutdown( opl ); break; case type_msxaudio: y8950_shutdown( opl ); free( opl_memory ); //fclose( logfile ); break; case type_opl2: ym3812_shutdown( opl ); break; } } }
//static DEVICE_STOP( ym2413 ) void device_stop_ym2413(void *_info) { //ym2413_state *info = get_safe_token(device); ym2413_state *info = (ym2413_state *)_info; switch(info->EMU_CORE) { #ifdef ENABLE_ALL_CORES case EC_MAME: ym2413_shutdown(info->chip); break; #endif case EC_EMU2413: OPLL_delete(info->chip); break; } free(info); }
Nes_Vrc7_Apu::~Nes_Vrc7_Apu() { if ( opll ) ym2413_shutdown( opll ); }
static DEVICE_STOP( ym2413 ) { ym2413_state *info = get_safe_token(device); ym2413_shutdown(info->chip); }