示例#1
0
static void StopSamplesChannel0()
{
	for (INT32 i = 0x01; i <= 0x05; i++) {
		BurnSampleStop(i);
		BurnSampleSetLoop(i, 0);
	}
}
示例#2
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);
}
示例#3
0
文件: samples.cpp 项目: meesokim/fba
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);
	}
}
示例#4
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);
		}
	}
}
示例#5
0
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);
	}
}
示例#6
0
static void StopSamplesChannel5()
{
	for (INT32 i = 0x13; i <= 0x14; i++) {
		BurnSampleStop(i);
	}
}
示例#7
0
static void StopSamplesChannel4()
{
	for (INT32 i = 0x0e; i <= 0x12; i++) {
		BurnSampleStop(i);
	}
}
示例#8
0
static void StopSamplesChannel3()
{
	for (INT32 i = 0x0a; i <= 0x0d; i++) {
		BurnSampleStop(i);
	}
}
示例#9
0
static void StopSamplesChannel2()
{
	for (INT32 i = 0x08; i <= 0x09; i++) {
		BurnSampleStop(i);
	}
}
示例#10
0
static void StopSamplesChannel1()
{
	for (INT32 i = 0x06; i <= 0x07; i++) {
		BurnSampleStop(i);
	}
}
示例#11
0
static void StopAllSamples()
{
	for (INT32 i = 0x00; i <= 0x15; i++) {
		BurnSampleStop(i);
	}
}
示例#12
0
static void StopSamplesChannel7()
{
	for (INT32 i = 0x23; i <= 0x24; i++) {
		BurnSampleStop(i);
	}
}
示例#13
0
static void StopSamplesChannel6()
{
	for (INT32 i = 0x20; i <= 0x21; i++) {
		BurnSampleStop(i);
	}
}
示例#14
0
static void StopSamplesChannel8()
{
	BurnSampleStop(0x01);
	BurnSampleStop(0x39);
}
示例#15
0
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);
}