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( y8950 ) void device_stop_y8950(UINT8 ChipID) { //y8950_state *info = get_safe_token(device); y8950_state *info = &Y8950Data[ChipID]; y8950_shutdown(info->chip); }
void y8950_device::device_stop() { y8950_shutdown(m_chip); }
static DEVICE_STOP( y8950 ) { y8950_state *info = get_safe_token(device); y8950_shutdown(info->chip); }