Restrict OpenSLES to Android via CMake

This commit is contained in:
Zopolis4
2022-08-08 09:17:41 +10:00
parent e638bb658f
commit e2aefe13a6
3 changed files with 15 additions and 12 deletions

View File

@ -10,7 +10,7 @@
class OpenSLESStream final : public SoundStream
{
#ifdef ANDROID
#ifdef HAVE_OPENSL_ES
public:
~OpenSLESStream() override;
bool Init() override;
@ -21,5 +21,5 @@ public:
private:
std::thread thread;
Common::Event soundSyncEvent;
#endif // HAVE_OPENSL
#endif // HAVE_OPENSL_ES
};