示例#1
0
void device_stop_ayxx(UINT8 ChipID)
{
	ayxx_state *info = &AYxxData[ChipID];
	switch(EMU_CORE)
	{
#ifdef ENABLE_ALL_CORES
	case EC_MAME:
		ay8910_stop_ym(info->chip);
		break;
#endif
	case EC_EMU2149:
		PSG_delete((PSG*)info->chip);
		break;
	}
	info->chip = NULL;
}
示例#2
0
//static DEVICE_STOP( ym2203 )
void device_stop_ym2203(UINT8 ChipID)
{
	//ym2203_state *info = get_safe_token(device);
	ym2203_state *info = &YM2203Data[ChipID];
	ym2203_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;
	}
}
示例#3
0
//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);
}
示例#4
0
static void ym2610_stop(void *token)
{
	struct ym2610_info *info = token;
	YM2610Shutdown(info->chip);
	ay8910_stop_ym(info->psg);
}
示例#5
0
void ym2608_device::device_stop()
{
    ym2608_shutdown(m_chip);
    ay8910_stop_ym(m_psg);
}
示例#6
0
static void ay8910_stop(void *chip)
{
	ay8910_stop_ym(chip);
}
示例#7
0
文件: 2610intf.c 项目: bji/libmame
static DEVICE_STOP( ym2610 )
{
	ym2610_state *info = get_safe_token(device);
	ym2610_shutdown(info->chip);
	ay8910_stop_ym(info->psg);
}