Beispiel #1
0
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 void sfx_soundexpander_sound_machine_close(sound_t *psid)
{
    if (YM3526_chip != NULL) {
        ym3526_shutdown(YM3526_chip);
        YM3526_chip = NULL;
    }
    if (YM3812_chip != NULL) {
        ym3812_shutdown(YM3812_chip);
        YM3526_chip = NULL;
    }
}
Beispiel #3
0
//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 int sfx_soundexpander_sound_machine_init(sound_t *psid, int speed, int cycles_per_sec)
{
    if (sfx_soundexpander_chip == 3812) {
        if (YM3812_chip != NULL) {
            ym3812_shutdown(YM3812_chip);
        }
        YM3812_chip = ym3812_init((UINT32)3579545, (UINT32)speed);
    } else {
        if (YM3526_chip != NULL) {
            ym3526_shutdown(YM3526_chip);
        }
        YM3526_chip = ym3526_init((UINT32)3579545, (UINT32)speed);
    }
    snd.command = 0;

    return 1;
}
Beispiel #5
0
//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);
}
Beispiel #6
0
static DEVICE_STOP( ym3812 )
{
	ym3812_state *info = get_safe_token(device);
	ym3812_shutdown(info->chip);
}
Beispiel #7
0
void ym3812_device::device_stop()
{
	ym3812_shutdown(m_chip);
}