Big f***ing cleanup part 1

This commit is contained in:
Lynix
2020-02-23 00:42:22 +01:00
parent 67d0e0a689
commit 3d22321109
178 changed files with 2190 additions and 5113 deletions

View File

@@ -1,8 +1,8 @@
#include <Nazara/Audio/Audio.hpp>
#include <Nazara/Audio/Music.hpp>
#include <Catch/catch.hpp>
#include <Nazara/Audio/Audio.hpp>
#include <Nazara/Core/Thread.hpp>
#include <chrono>
#include <thread>
SCENARIO("Music", "[AUDIO][MUSIC]")
{
@@ -32,9 +32,9 @@ SCENARIO("Music", "[AUDIO][MUSIC]")
Nz::Audio::SetGlobalVolume(0.f);
music.Play();
Nz::Thread::Sleep(1000);
std::this_thread::sleep_for(std::chrono::seconds(1));
REQUIRE(music.GetPlayingOffset() >= 950);
Nz::Thread::Sleep(200);
std::this_thread::sleep_for(std::chrono::milliseconds(200));
REQUIRE(music.GetPlayingOffset() <= 1300);
music.Pause();
REQUIRE(music.GetStatus() == Nz::SoundStatus_Paused);

View File

@@ -1,8 +1,8 @@
#include <Nazara/Audio/Audio.hpp>
#include <Nazara/Audio/Sound.hpp>
#include <Catch/catch.hpp>
#include <Nazara/Audio/Audio.hpp>
#include <Nazara/Core/Thread.hpp>
#include <chrono>
#include <thread>
SCENARIO("Sound", "[AUDIO][SOUND]")
{
@@ -26,10 +26,10 @@ SCENARIO("Sound", "[AUDIO][SOUND]")
{
Nz::Audio::SetGlobalVolume(0.f);
sound.Play();
Nz::Thread::Sleep(1000);
sound.Play();
std::this_thread::sleep_for(std::chrono::seconds(1));
REQUIRE(sound.GetPlayingOffset() >= 950);
Nz::Thread::Sleep(200);
std::this_thread::sleep_for(std::chrono::milliseconds(200));
REQUIRE(sound.GetPlayingOffset() <= 1300);
sound.Pause();
REQUIRE(sound.GetStatus() == Nz::SoundStatus_Paused);

View File

@@ -1,8 +1,6 @@
#include <Nazara/Audio/Sound.hpp>
#include <Catch/catch.hpp>
#include <Nazara/Core/Thread.hpp>
SCENARIO("SoundEmitter", "[AUDIO][SOUNDEMITTER]")
{
GIVEN("A sound emitter")