Last modules fixes
This commit is contained in:
@@ -29,7 +29,7 @@ SCENARIO("Music", "[AUDIO][MUSIC]")
|
||||
|
||||
THEN("We can play it and get the time offset")
|
||||
{
|
||||
Nz::Audio::SetGlobalVolume(0.f);
|
||||
Nz::Audio::Instance()->SetGlobalVolume(0.f);
|
||||
|
||||
music.Play();
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
@@ -42,7 +42,7 @@ SCENARIO("Music", "[AUDIO][MUSIC]")
|
||||
music.SetPlayingOffset(3500);
|
||||
REQUIRE(music.GetPlayingOffset() >= 3500);
|
||||
|
||||
Nz::Audio::SetGlobalVolume(100.f);
|
||||
Nz::Audio::Instance()->SetGlobalVolume(100.f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ SCENARIO("Sound", "[AUDIO][SOUND]")
|
||||
|
||||
THEN("We can play it and get the time offset")
|
||||
{
|
||||
Nz::Audio::SetGlobalVolume(0.f);
|
||||
Nz::Audio::Instance()->SetGlobalVolume(0.f);
|
||||
|
||||
sound.Play();
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
@@ -37,7 +37,7 @@ SCENARIO("Sound", "[AUDIO][SOUND]")
|
||||
sound.SetPlayingOffset(3500);
|
||||
REQUIRE(sound.GetPlayingOffset() >= 3500);
|
||||
|
||||
Nz::Audio::SetGlobalVolume(100.f);
|
||||
Nz::Audio::Instance()->SetGlobalVolume(100.f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user