Restrict OpenSLES to Android via CMake

This commit is contained in:
Zopolis4 2022-08-08 09:17:41 +10:00
commit e2aefe13a6
No known key found for this signature in database
GPG key ID: C1117D56FBC82774
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
};