summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/OpenSLESStream.cpp
diff options
context:
space:
mode:
authorZopolis4 <creatorsmithmdt@gmail.com>2022-08-08 09:17:41 +1000
committerZopolis4 <creatorsmithmdt@gmail.com>2022-08-08 09:18:36 +1000
commite2aefe13a6ac924508e5749439d047fb4a6317d6 (patch)
treeb87f0017534670bf3a46365f56dee71d2ccfc6d6 /Source/Core/AudioCommon/OpenSLESStream.cpp
parente638bb658fa2bbaa6e46148816598fe3ab79dc6e (diff)
Restrict OpenSLES to Android via CMake
Diffstat (limited to 'Source/Core/AudioCommon/OpenSLESStream.cpp')
-rw-r--r--Source/Core/AudioCommon/OpenSLESStream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/AudioCommon/OpenSLESStream.cpp b/Source/Core/AudioCommon/OpenSLESStream.cpp
index fcf2ca58e6..a35b981017 100644
--- a/Source/Core/AudioCommon/OpenSLESStream.cpp
+++ b/Source/Core/AudioCommon/OpenSLESStream.cpp
@@ -1,7 +1,7 @@
// Copyright 2013 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#ifdef ANDROID
+#ifdef HAVE_OPENSL_ES
#include "AudioCommon/OpenSLESStream.h"
#include <cmath>
@@ -143,4 +143,4 @@ void OpenSLESStream::SetVolume(int volume)
volume <= 0 ? SL_MILLIBEL_MIN : static_cast<SLmillibel>(2000 * std::log10(volume / 100.0f));
(*bqPlayerVolume)->SetVolumeLevel(bqPlayerVolume, attenuation);
}
-#endif
+#endif // HAVE_OPENSL_ES