diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-05-31 07:07:14 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-05-31 07:07:16 -0400 |
| commit | 78e96230b2b37accf7daf16af6810be55754bed3 (patch) | |
| tree | 245d8a9e05e771ddb6cea4dde96c042216b027b7 /Source/Core/AudioCommon/AudioCommon.cpp | |
| parent | 15397e2a8909eb226e169d496852b6e5625fc4fb (diff) | |
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.
Diffstat (limited to 'Source/Core/AudioCommon/AudioCommon.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/AudioCommon.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/AudioCommon/AudioCommon.cpp b/Source/Core/AudioCommon/AudioCommon.cpp index ec68ef87aa..11d50d9d01 100644 --- a/Source/Core/AudioCommon/AudioCommon.cpp +++ b/Source/Core/AudioCommon/AudioCommon.cpp @@ -21,13 +21,13 @@ // This shouldn't be a global, at least not here. std::unique_ptr<SoundStream> g_sound_stream; +namespace AudioCommon +{ static bool s_audio_dump_start = false; static bool s_sound_stream_running = false; -namespace AudioCommon -{ -static const int AUDIO_VOLUME_MIN = 0; -static const int AUDIO_VOLUME_MAX = 100; +constexpr int AUDIO_VOLUME_MIN = 0; +constexpr int AUDIO_VOLUME_MAX = 100; void InitSoundStream() { |
