//static DEVICE_STOP( ym3812 ) void device_stop_ym3812(UINT8 ChipID) { //ym3812_state *info = get_safe_token(device); ym3812_state *info = &YM3812Data[ChipID]; switch(EMU_CORE) { #ifdef ENABLE_ALL_CORES case EC_MAME: ym3812_shutdown(info->chip); break; #endif case EC_DBOPL: adlib_OPL2_stop(info->chip); break; } }
//static DEVICE_STOP( ym3812 ) void device_stop_ym3812(void *_info) { //ym3812_state *info = get_safe_token(device); ym3812_state *info = (ym3812_state *)_info; switch(info->EMU_CORE) { #ifdef ENABLE_ALL_CORES case EC_MAME: ym3812_shutdown(info->chip); break; #endif case EC_DBOPL: adlib_OPL2_stop(info->chip); break; } free(info); }