//static DEVICE_STOP( ym3526 ) void device_stop_ym3526(void *_info) { //ym3526_state *info = get_safe_token(device); ym3526_state *info = (ym3526_state *)_info; ym3526_shutdown(info->chip); free(info); }
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; } }
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; }
void ym3526_device::device_stop() { ym3526_shutdown(m_chip); }
static DEVICE_STOP( ym3526 ) { ym3526_state *info = get_safe_token(device); ym3526_shutdown(info->chip); }