summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/AudioCommon.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2021-08-08 00:23:58 +0100
committerTillmann Karras <tilkax@gmail.com>2021-08-08 03:05:03 +0100
commiteda2035874309233a3971aed075c0417c1f18ef7 (patch)
treee652aaefa8a41b4a6ea58c9d206eb3f72020c453 /Source/Core/AudioCommon/AudioCommon.cpp
parentb6d8c111bc259021398adcc9820339c9376b5955 (diff)
AudioCommon: rename isValid() to IsValid()
Diffstat (limited to 'Source/Core/AudioCommon/AudioCommon.cpp')
-rw-r--r--Source/Core/AudioCommon/AudioCommon.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/Core/AudioCommon/AudioCommon.cpp b/Source/Core/AudioCommon/AudioCommon.cpp
index 4b1b812f94..d3bdcde445 100644
--- a/Source/Core/AudioCommon/AudioCommon.cpp
+++ b/Source/Core/AudioCommon/AudioCommon.cpp
@@ -30,17 +30,17 @@ static std::unique_ptr<SoundStream> CreateSoundStreamForBackend(std::string_view
{
if (backend == BACKEND_CUBEB)
return std::make_unique<CubebStream>();
- else if (backend == BACKEND_OPENAL && OpenALStream::isValid())
+ else if (backend == BACKEND_OPENAL && OpenALStream::IsValid())
return std::make_unique<OpenALStream>();
else if (backend == BACKEND_NULLSOUND)
return std::make_unique<NullSound>();
- else if (backend == BACKEND_ALSA && AlsaSound::isValid())
+ else if (backend == BACKEND_ALSA && AlsaSound::IsValid())
return std::make_unique<AlsaSound>();
- else if (backend == BACKEND_PULSEAUDIO && PulseAudio::isValid())
+ else if (backend == BACKEND_PULSEAUDIO && PulseAudio::IsValid())
return std::make_unique<PulseAudio>();
- else if (backend == BACKEND_OPENSLES && OpenSLESStream::isValid())
+ else if (backend == BACKEND_OPENSLES && OpenSLESStream::IsValid())
return std::make_unique<OpenSLESStream>();
- else if (backend == BACKEND_WASAPI && WASAPIStream::isValid())
+ else if (backend == BACKEND_WASAPI && WASAPIStream::IsValid())
return std::make_unique<WASAPIStream>();
return {};
}
@@ -96,7 +96,7 @@ std::string GetDefaultSoundBackend()
#if defined ANDROID
backend = BACKEND_OPENSLES;
#elif defined __linux__
- if (AlsaSound::isValid())
+ if (AlsaSound::IsValid())
backend = BACKEND_ALSA;
#elif defined(__APPLE__) || defined(_WIN32)
backend = BACKEND_CUBEB;
@@ -115,15 +115,15 @@ std::vector<std::string> GetSoundBackends()
backends.emplace_back(BACKEND_NULLSOUND);
backends.emplace_back(BACKEND_CUBEB);
- if (AlsaSound::isValid())
+ if (AlsaSound::IsValid())
backends.emplace_back(BACKEND_ALSA);
- if (PulseAudio::isValid())
+ if (PulseAudio::IsValid())
backends.emplace_back(BACKEND_PULSEAUDIO);
- if (OpenALStream::isValid())
+ if (OpenALStream::IsValid())
backends.emplace_back(BACKEND_OPENAL);
- if (OpenSLESStream::isValid())
+ if (OpenSLESStream::IsValid())
backends.emplace_back(BACKEND_OPENSLES);
- if (WASAPIStream::isValid())
+ if (WASAPIStream::IsValid())
backends.emplace_back(BACKEND_WASAPI);
return backends;