mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
Update tests.
This commit is contained in:
parent
3233c08042
commit
e7f228080f
1 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ void CKeyOnOffTest::Execute()
|
|||
//We sent a KEY-ON, current address should be what we set as start address
|
||||
{
|
||||
uint32 testVoiceCurrAddr = GetVoiceAddress(testCoreIndex, testVoiceIndex, Iop::Spu2::CCore::VA_NAX_HI);
|
||||
TEST_VERIFY(testVoiceCurrAddr == sampleAddress1);
|
||||
TEST_VERIFY((testVoiceCurrAddr & ~0xF) == (sampleAddress1 & ~0xF));
|
||||
}
|
||||
|
||||
//Change start address and then send KEY-ON and KEY-OFF right after
|
||||
|
@ -50,7 +50,7 @@ void CKeyOnOffTest::Execute()
|
|||
//all the time, we should be able to handle this even though the update timestep is not small
|
||||
{
|
||||
uint32 testVoiceCurrAddr = GetVoiceAddress(testCoreIndex, testVoiceIndex, Iop::Spu2::CCore::VA_NAX_HI);
|
||||
TEST_VERIFY(testVoiceCurrAddr == sampleAddress2);
|
||||
TEST_VERIFY((testVoiceCurrAddr & ~0xF) == (sampleAddress2 & ~0xF));
|
||||
}
|
||||
|
||||
//Enable IRQs and check that our voice's address is still good
|
||||
|
@ -66,6 +66,6 @@ void CKeyOnOffTest::Execute()
|
|||
TEST_VERIFY(irqInfo == 0);
|
||||
|
||||
uint32 testVoiceCurrAddr = GetVoiceAddress(testCoreIndex, testVoiceIndex, Iop::Spu2::CCore::VA_NAX_HI);
|
||||
TEST_VERIFY(testVoiceCurrAddr == sampleAddress2);
|
||||
TEST_VERIFY((testVoiceCurrAddr & ~0xF) == (sampleAddress2 & ~0xF));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue