Пример #1
0
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);
	}
}
Пример #2
0
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);
	}
}