mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
Restrict OpenSLES to Android via CMake
This commit is contained in:
parent
e638bb658f
commit
e2aefe13a6
3 changed files with 15 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue