AudioCommon: Move static locals into the AudioCommon namespace
Given these are locals, they can be moved out of the global namespace. While we're at it, turn the constants below it into constexpr variables.
This commit is contained in:
parent
15397e2a89
commit
78e96230b2
|
@ -21,13 +21,13 @@
|
||||||
// This shouldn't be a global, at least not here.
|
// This shouldn't be a global, at least not here.
|
||||||
std::unique_ptr<SoundStream> g_sound_stream;
|
std::unique_ptr<SoundStream> g_sound_stream;
|
||||||
|
|
||||||
|
namespace AudioCommon
|
||||||
|
{
|
||||||
static bool s_audio_dump_start = false;
|
static bool s_audio_dump_start = false;
|
||||||
static bool s_sound_stream_running = false;
|
static bool s_sound_stream_running = false;
|
||||||
|
|
||||||
namespace AudioCommon
|
constexpr int AUDIO_VOLUME_MIN = 0;
|
||||||
{
|
constexpr int AUDIO_VOLUME_MAX = 100;
|
||||||
static const int AUDIO_VOLUME_MIN = 0;
|
|
||||||
static const int AUDIO_VOLUME_MAX = 100;
|
|
||||||
|
|
||||||
void InitSoundStream()
|
void InitSoundStream()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue