コード例 #1
0
ファイル: 3812intf.c プロジェクト: raphaklaus/vgmplay-0.40.5
//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;
	}
}
コード例 #2
0
ファイル: 3812intf.c プロジェクト: Alexey-Yakovenko/deadbeef
//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);
}