123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- #pragma once
- #include <AK/SoundEngine/Common/AkTypes.h>
- #include <AK/Tools/Common/AkPlatformFuncs.h>
- #include <SLES/OpenSLES.h>
- #include "SLES/OpenSLES_Android.h"
- #include <jni.h>
- typedef enum AkAudioAPIAndroid
- {
- AkAudioAPI_AAudio = 1 << 0,
- AkAudioAPI_OpenSL_ES = 1 << 1,
- AkAudioAPI_Default = AkAudioAPI_AAudio | AkAudioAPI_OpenSL_ES,
- } AkAudioAPI;
- struct AkPlatformInitSettings
- {
-
- AkThreadProperties threadLEngine;
- AkThreadProperties threadOutputMgr;
- AkThreadProperties threadBankManager;
- AkThreadProperties threadMonitor;
- AkAudioAPI eAudioAPI;
-
- AkUInt32 uSampleRate;
- AkUInt16 uNumRefillsInVoice;
- bool bRoundFrameSizeToHWSize;
-
-
- SLObjectItf pSLEngine;
- JavaVM* pJavaVM;
- jobject jActivity;
- bool bVerboseSink;
- bool bEnableLowLatency;
-
-
- };
- struct AkInitSettings;
- namespace AK
- {
- namespace SoundEngine
- {
-
-
- AK_EXTERNAPIFUNC( SLObjectItf, GetWwiseOpenSLInterface )();
-
-
-
-
-
-
-
- AKRESULT GetFastPathSettings(AkInitSettings &in_settings, AkPlatformInitSettings &in_pfSettings);
- };
- };
|