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); }
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); }