static INT32 DrvDoReset() { SekOpen(0); SekReset(); SekClose(); // BurnYM3812Reset(); BurnSampleReset(); #ifdef TOAPLAN_SOUND_SAMPLES_HACK StopAllSamples(); for (INT32 i = 0; i <= 0x28; i++) { BurnSampleSetAllRoutes(i, 1.00, BURN_SND_ROUTE_BOTH); BurnSampleSetLoop(i, 0); } HiscoreReset(); FadeoutReady = 0; FadeoutStop = 0; Playing1 = 0xff; Playing2 = 0xff; Play1 = 0; Counter1 = 0; Vol1 = 0; Wait = 0; Start = 0; Start2 = 0; #endif bEnableInterrupts = false; return 0; }
static void StopSamplesChannel0() { for (INT32 i = 0x01; i <= 0x05; i++) { BurnSampleStop(i); BurnSampleSetLoop(i, 0); } }
static void StopSamplesChannel0() { for (INT32 i = 0x01; i <= 0x07; i++) { BurnSampleStop(i); BurnSampleSetLoop(i, 0); } for (INT32 i = 0x1c; i <= 0x1f; i++) { BurnSampleStop(i); BurnSampleSetLoop(i, 0); } BurnSampleStop(0x22); BurnSampleSetLoop(0x22, 0); BurnSampleStop(0x25); BurnSampleSetLoop(0x25, 0); BurnSampleStop(0x27); BurnSampleSetLoop(0x27, 0); }
void BurnSampleReset() { #if defined FBA_DEBUG if (!DebugSnd_SamplesInitted) bprintf(PRINT_ERROR, _T("BurnSampleReset called without init\n")); #endif for (INT32 i = 0; i < nTotalSamples; i++) { BurnSampleStop(i); if (sample_ptr->flags & SAMPLE_AUTOLOOP) { BurnSampleSetLoop(i, true); BurnSamplePlay(i); } } }
static void tekipakiHD647180Write(UINT16 d) { if (d == 0xfe) { StopAllSamples(); } if (d >= 0x01 && d <= 0x03) { StopSamplesChannel0(); BurnSampleSetLoop(d, 1); BurnSamplePlay(d); } if (d >= 0x04 && d <= 0x05) { StopSamplesChannel0(); BurnSamplePlay(d); } if (d >= 0x06 && d <= 0x07) { StopSamplesChannel1(); BurnSamplePlay(d); } if (d == 0x08 || d == 0x09) { StopSamplesChannel2(); BurnSamplePlay(d); } if (d >= 0x0a && d <= 0x0d) { StopSamplesChannel3(); BurnSamplePlay(d); } if (d == 0x0e || d == 0x12) { StopSamplesChannel4(); BurnSamplePlay(d); } if (d >= 0x13 && d <= 0x14) { StopSamplesChannel5(); BurnSamplePlay(d); } if (d == 0x15) { BurnSampleStop(d); BurnSamplePlay(d); } }
static void samesameSndCmd(UINT16 d) { if (d == 0x00 || d == 0xdf) { StopAllSamples(); } if (d >= 0x01 && d <= 0x05) { StopSamplesChannel0(); SetVolumeSamplesChannel0(1.00); FadeoutStop = 1; Start2 = 0; BurnSampleSetLoop(d, 1); BurnSamplePlay(d); } if (d == 0x06) { StopSamplesChannel0(); BurnSamplePlay(d); Start2 = 72; } if (d == 0x07) { FadeoutReady = 1; Start = 1; } if (d == 0x08 || d == 0x09) { StopSamplesChannel1(); BurnSamplePlay(d); } if (d >= 0x0a && d <= 0x0f) { StopSamplesChannel2(); BurnSamplePlay(d); } if (d == 0x10 || d == 0x11) { StopSamplesChannel3(); BurnSamplePlay(d); } if (d >= 0x12 && d <= 0x16) { StopSamplesChannel4(); BurnSamplePlay(d); } if (d >= 0x17 && d <= 0x1b) { StopSamplesChannel5(); BurnSamplePlay(d); } if (d >= 0x1c && d <= 0x1f) { StopSamplesChannel0(); BurnSamplePlay(d); } if (d == 0x20 || d == 0x21) { StopSamplesChannel6(); BurnSamplePlay(d); } if (d == 0x22) { StopSamplesChannel0(); BurnSamplePlay(d); } if (d == 0x23) { StopSamplesChannel7(); BurnSamplePlay(d); } if (d == 0x24) { StopSamplesChannel7(); BurnSamplePlay(d); FadeoutReady = 1; } if (d == 0x25) { StopSamplesChannel0(); SetVolumeSamplesChannel0(1.00); BurnSamplePlay(d); FadeoutStop = 1; } if (d == 0x26) { StopSamplesChannel2(); BurnSamplePlay(d); } if (d == 0x27) { StopSamplesChannel0(); SetVolumeSamplesChannel0(1.00); BurnSamplePlay(d); FadeoutStop = 1; } if (d == 0x28) { BurnSamplePlay(d); } }
static void ghoxSoundCmd(UINT16 d) { if (d == 0xfe) { StopSamplesChannel0(); } if (d == 0x42 || d == 0x44 || d == 0x45 || d == 0x47 || d == 0x48 || d == 0x4c || d == 0x4d || d == 0x4e) { StopSamplesChannel0(); BurnSampleSetLoop(d, 1); BurnSamplePlay(d); } if (d == 0xd0) { StopSamplesChannel0(); BurnSampleSetLoop(0, 1); BurnSamplePlay(0); } if (d == 0x49) { StopSamplesChannel0(); BurnSamplePlay(d); } if (d >= 0x02 && d <= 0x0f) { StopSamplesChannel1(); BurnSamplePlay(d); } if (d >= 0x10 && d <= 0x17) { StopSamplesChannel2(); BurnSamplePlay(d); } if (d >= 0x18 && d <= 0x1f) { StopSamplesChannel3(); BurnSamplePlay(d); } if (d >= 0x20 && d <= 0x27) { StopSamplesChannel4(); BurnSamplePlay(d); } if (d >= 0x28 && d <= 0x2f) { StopSamplesChannel5(); BurnSamplePlay(d); } if (d >= 0x30 && d <= 0x38) { StopSamplesChannel6(); BurnSamplePlay(d); } if (d == 0x39) { StopSamplesChannel8(); BurnSamplePlay(d); } if (d >= 0x3a && d <= 0x3f) { StopSamplesChannel7(); BurnSamplePlay(d); } if (d == 0x01) { StopSamplesChannel8(); BurnSamplePlay(d); } if (d == 0x4b) { StopSamplesChannel0(); BurnSamplePlay(0x4f); } }
static void StopSamplesChannel0() { BurnSampleStop(0x00); BurnSampleSetLoop(0x00, 0); BurnSampleStop(0x42); BurnSampleSetLoop(0x42, 0); BurnSampleStop(0x44); BurnSampleSetLoop(0x44, 0); BurnSampleStop(0x45); BurnSampleSetLoop(0x45, 0); BurnSampleStop(0x47); BurnSampleSetLoop(0x47, 0); BurnSampleStop(0x48); BurnSampleSetLoop(0x48, 0); BurnSampleStop(0x49); BurnSampleSetLoop(0x49, 0); BurnSampleStop(0x4c); BurnSampleSetLoop(0x4c, 0); BurnSampleStop(0x4d); BurnSampleSetLoop(0x4d, 0); BurnSampleStop(0x4e); BurnSampleSetLoop(0x4e, 0); BurnSampleStop(0x4f); BurnSampleSetLoop(0x4f, 0); }