void Opl_Apu::reset() { addr = 0; next_time = 0; last_amp = 0; switch (type_) { case type_opll: case type_msxmusic: case type_smsfmunit: case type_vrc7: ym2413_reset_chip( opl ); break; case type_opl: ym3526_reset_chip( opl ); break; case type_msxaudio: y8950_reset_chip( opl ); break; case type_opl2: ym3812_reset_chip( opl ); break; } }
void Nes_Vrc7_Apu::reset() { addr = 0; next_time = 0; mono.last_amp = 0; for ( int i = osc_count; --i >= 0; ) { Vrc7_Osc& osc = oscs [i]; osc.last_amp = 0; for ( int j = 0; j < 3; ++j ) osc.regs [j] = 0; } ym2413_reset_chip( opll ); }
//static DEVICE_RESET( ym2413 ) void device_reset_ym2413(void *_info) { //ym2413_state *info = get_safe_token(device); ym2413_state *info = (ym2413_state *)_info; switch(info->EMU_CORE) { #ifdef ENABLE_ALL_CORES case EC_MAME: ym2413_reset_chip(info->chip); if (info->Mode) ym2413_override_patches(info->chip, vrc7_inst); break; #endif case EC_EMU2413: OPLL_reset(info->chip); // EMU2413 doesn't reset the patch data in OPLL_reset //if (info->Mode) // OPLL_setPatch(info->chip, vrc7_inst); break; } }
static DEVICE_RESET( ym2413 ) { ym2413_state *info = get_safe_token(device); ym2413_reset_chip(info->chip); }