static void device_stop_ym2610(void* param) { DEV_DATA* devData = (DEV_DATA*)param; OPN_INF* info = (OPN_INF*)devData->chipInf; ym2610_shutdown(info->opn); free(info); return; }
//static DEVICE_STOP( ym2610 ) void device_stop_ym2610(UINT8 ChipID) { //ym2610_state *info = get_safe_token(device); ym2610_state* info = &YM2610Data[ChipID]; ym2610_shutdown(info->chip); if (info->psg != NULL) { switch(AY_EMU_CORE) { #ifdef ENABLE_ALL_CORES case EC_MAME: ay8910_stop_ym(info->psg); break; #endif case EC_EMU2149: PSG_delete((PSG*)info->psg); break; } info->psg = NULL; } }
//static DEVICE_STOP( ym2610 ) void device_stop_ym2610(void *_info) { //ym2610_state *info = get_safe_token(device); ym2610_state* info = (ym2610_state *)_info; ym2610_shutdown(info->chip); if (info->psg != NULL) { switch(info->AY_EMU_CORE) { #ifdef ENABLE_ALL_CORES case EC_MAME: ay8910_stop_ym(info->psg); break; #endif case EC_EMU2149: PSG_delete((PSG*)info->psg); break; } info->psg = NULL; } free(info); }
void ym2610_device::device_stop() { ym2610_shutdown(m_chip); }
static DEVICE_STOP( ym2610 ) { ym2610_state *info = get_safe_token(device); ym2610_shutdown(info->chip); ay8910_stop_ym(info->psg); }
void ym2610_device::device_stop() { ym2610_shutdown(m_chip); ay8910_stop_ym(m_psg); }