mirror of https://github.com/OpenRCT2/OpenRCT2.git
Make usage of Audio namespace explicit in Context
This commit is contained in:
parent
82c434358a
commit
1b5d0f47ab
|
@ -84,13 +84,14 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
using namespace OpenRCT2;
|
using namespace OpenRCT2;
|
||||||
using namespace OpenRCT2::Audio;
|
|
||||||
using namespace OpenRCT2::Drawing;
|
using namespace OpenRCT2::Drawing;
|
||||||
using namespace OpenRCT2::Localisation;
|
using namespace OpenRCT2::Localisation;
|
||||||
using namespace OpenRCT2::Paint;
|
using namespace OpenRCT2::Paint;
|
||||||
using namespace OpenRCT2::Scripting;
|
using namespace OpenRCT2::Scripting;
|
||||||
using namespace OpenRCT2::Ui;
|
using namespace OpenRCT2::Ui;
|
||||||
|
|
||||||
|
using OpenRCT2::Audio::IAudioContext;
|
||||||
|
|
||||||
namespace OpenRCT2
|
namespace OpenRCT2
|
||||||
{
|
{
|
||||||
class Context final : public IContext
|
class Context final : public IContext
|
||||||
|
@ -450,10 +451,10 @@ namespace OpenRCT2
|
||||||
|
|
||||||
if (!gOpenRCT2Headless)
|
if (!gOpenRCT2Headless)
|
||||||
{
|
{
|
||||||
Init();
|
Audio::Init();
|
||||||
PopulateDevices();
|
Audio::PopulateDevices();
|
||||||
InitRideSoundsAndInfo();
|
Audio::InitRideSoundsAndInfo();
|
||||||
gGameSoundsOff = !gConfigSound.MasterSoundEnabled;
|
Audio::gGameSoundsOff = !gConfigSound.MasterSoundEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
ChatInit();
|
ChatInit();
|
||||||
|
@ -1343,7 +1344,7 @@ namespace OpenRCT2
|
||||||
|
|
||||||
std::unique_ptr<IContext> CreateContext()
|
std::unique_ptr<IContext> CreateContext()
|
||||||
{
|
{
|
||||||
return CreateContext(CreatePlatformEnvironment(), CreateDummyAudioContext(), CreateDummyUiContext());
|
return CreateContext(CreatePlatformEnvironment(), Audio::CreateDummyAudioContext(), CreateDummyUiContext());
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<IContext> CreateContext(
|
std::unique_ptr<IContext> CreateContext(
|
||||||
|
|
Loading…
Reference in New Issue