1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Make usage of Audio namespace explicit in Context

This commit is contained in:
Aaron van Geffen
2024-04-20 12:24:44 +02:00
committed by GitHub
parent 82c434358a
commit 1b5d0f47ab

View File

@@ -84,13 +84,14 @@
#include <string>
using namespace OpenRCT2;
using namespace OpenRCT2::Audio;
using namespace OpenRCT2::Drawing;
using namespace OpenRCT2::Localisation;
using namespace OpenRCT2::Paint;
using namespace OpenRCT2::Scripting;
using namespace OpenRCT2::Ui;
using OpenRCT2::Audio::IAudioContext;
namespace OpenRCT2
{
class Context final : public IContext
@@ -450,10 +451,10 @@ namespace OpenRCT2
if (!gOpenRCT2Headless)
{
Init();
PopulateDevices();
InitRideSoundsAndInfo();
gGameSoundsOff = !gConfigSound.MasterSoundEnabled;
Audio::Init();
Audio::PopulateDevices();
Audio::InitRideSoundsAndInfo();
Audio::gGameSoundsOff = !gConfigSound.MasterSoundEnabled;
}
ChatInit();
@@ -1343,7 +1344,7 @@ namespace OpenRCT2
std::unique_ptr<IContext> CreateContext()
{
return CreateContext(CreatePlatformEnvironment(), CreateDummyAudioContext(), CreateDummyUiContext());
return CreateContext(CreatePlatformEnvironment(), Audio::CreateDummyAudioContext(), CreateDummyUiContext());
}
std::unique_ptr<IContext> CreateContext(