Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔉 Audio Unit Tests Fix #1

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Ball/Resources/Audio/Master.bank
Binary file not shown.
Binary file added Ball/Resources/Audio/Master.strings.bank
Binary file not shown.
Binary file added Ball/Resources/Audio/Music.bank
Binary file not shown.
Binary file added Ball/Resources/Audio/SFX.bank
Binary file not shown.
2 changes: 1 addition & 1 deletion Ball/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ int main()

config.m_Width = Ball::LaunchParameters::GetInt("WindowWidth", 1000);
config.m_Height = Ball::LaunchParameters::GetInt("WindowHeight", 600);
config.m_Title = "OffTheBubble";
config.m_Title = "Agle";

return Ball::GetEngine().Run(config);
}
4 changes: 2 additions & 2 deletions Engine/Headers/GameObjects/Types/FreeCamera.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ namespace Ball

void Update(float deltaTime) override;

float m_ViewScalar = 2.0f;
float m_MoveScalar = 80.0f;
float m_ViewScalar = 0.8f;
float m_MoveScalar = 2.0f;

private:
inline static bool m_InputInitialized = false;
Expand Down
38 changes: 15 additions & 23 deletions Engine/Source/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,25 @@ bool Ball::Engine::Initialize(const ApplicationConfig& config)
m_Audio = new AudioSystem();
m_Audio->Init();

// Check if game exists
if (config.m_Game == nullptr)
{
// no game linked so end application
// There should be an engine call for throw or assert here instead
m_Window->Shutdown();
}
else
if (LaunchParameters::Contains("RunTests"))
{
// Initialize Game
m_Game = config.m_Game;
m_Game->Initialize();
int returnValue = UnitTesting::RunAllTests();
// The combo of headless and running tests, we assume it's the server validating functionality..
// And it's time to go home
if (LaunchParameters::Contains("Headless"))
{
Shutdown();
return returnValue;
}
}

// Initialize Game
ASSERT_MSG(LOG_GENERIC, config.m_Game, "Game is expected to be valid");
m_Game = config.m_Game;
m_Game->Initialize();

END_TIMER_MSG(engine_init, "Initialized Engine with Window %i x %i", m_Window->GetWidth(), m_Window->GetHeight());

return true;
}

Expand Down Expand Up @@ -172,18 +176,6 @@ int Engine::Run(const ApplicationConfig& config)
if (!Initialize(config))
return -1;

if (LaunchParameters::Contains("RunTests"))
{
int returnValue = UnitTesting::RunAllTests();
// The combo of headless and running tests, we assume it's the server validating functionality..
// And it's time to go home
if (LaunchParameters::Contains("Headless"))
{
Shutdown();
return returnValue;
}
}

// Basic Frame Tracking
auto lastTime = std::chrono::high_resolution_clock::now();
auto lastSecondTime = lastTime;
Expand Down
150 changes: 0 additions & 150 deletions Engine/Source/UnitTests/PhysicsUnitTests/ClosestPointTests.cpp

This file was deleted.

Loading
Loading