Esempio n. 1
0
void SoundTest::PlayStopMusic(PerfFuncData * data)
{
    SoundInstance * musicInst = music->Play();
    TEST_VERIFY(musicInst->GetState() == SoundInstance::STATE_PLAYING);
    
    music->Stop();
    TEST_VERIFY(musicInst->GetState() == SoundInstance::STATE_FORCED_STOPPED);
}
Esempio n. 2
0
void SoundTest::PlayStopEffect(PerfFuncData * data)
{
    SoundInstance * clickInst = sndClick->Play();
    TEST_VERIFY(clickInst->GetState() == SoundInstance::STATE_PLAYING);
    
    sndClick->Stop();
    TEST_VERIFY(clickInst->GetState() == SoundInstance::STATE_FORCED_STOPPED);
}