00001 /******************************************************************************* 00002 The content of this file includes portions of the AUDIOKINETIC Wwise Technology 00003 released in source code form as part of the SDK installer package. 00004 00005 Commercial License Usage 00006 00007 Licensees holding valid commercial licenses to the AUDIOKINETIC Wwise Technology 00008 may use this file in accordance with the end user license agreement provided 00009 with the software or, alternatively, in accordance with the terms contained in a 00010 written agreement between you and Audiokinetic Inc. 00011 00012 Apache License Usage 00013 00014 Alternatively, this file may be used under the Apache License, Version 2.0 (the 00015 "Apache License"); you may not use this file except in compliance with the 00016 Apache License. You may obtain a copy of the Apache License at 00017 http://www.apache.org/licenses/LICENSE-2.0. 00018 00019 Unless required by applicable law or agreed to in writing, software distributed 00020 under the Apache License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 00021 OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License for 00022 the specific language governing permissions and limitations under the License. 00023 00024 Version: <VERSION> Build: <BUILDNUMBER> 00025 Copyright (c) <COPYRIGHTYEAR> Audiokinetic Inc. 00026 *******************************************************************************/ 00027 00028 // AkAndroidSoundEngine.h 00029 00032 00033 #pragma once 00034 00035 #include <AK/SoundEngine/Common/AkTypes.h> 00036 #include <AK/Tools/Common/AkPlatformFuncs.h> 00037 #include <SLES/OpenSLES.h> 00038 #include "SLES/OpenSLES_Android.h" 00039 #include <jni.h> 00040 00041 00046 struct AkPlatformInitSettings 00047 { 00048 // Threading model. 00049 AkThreadProperties threadLEngine; 00050 AkThreadProperties threadBankManager; 00051 AkThreadProperties threadMonitor; 00052 00053 // Memory. 00054 AkReal32 fLEngineDefaultPoolRatioThreshold; 00055 AkUInt32 uLEngineDefaultPoolSize; 00056 00057 AkUInt32 uSampleRate; 00058 AkUInt16 uNumRefillsInVoice; 00059 AkChannelMask uChannelMask; 00060 bool bRoundFrameSizeToHWSize; 00061 00062 00063 00064 SLObjectItf pSLEngine; 00065 JavaVM* pJavaVM; 00066 jobject jNativeActivity; 00067 00068 }; 00069 00070 struct AkInitSettings; 00071 00073 enum AkAudioOutputType 00074 { 00075 AkOutput_None = 0, 00076 AkOutput_Dummy, 00077 AkOutput_Main, 00078 AkOutput_MergeToMain, 00079 AkOutput_NumBuiltInOutputs, 00080 AkOutput_Plugin 00081 }; 00082 00083 namespace AK 00084 { 00085 namespace SoundEngine 00086 { 00089 AK_EXTERNAPIFUNC( SLObjectItf, GetWwiseOpenSLInterface )(); 00090 00098 AKRESULT GetFastPathSettings(AkInitSettings &in_settings, AkPlatformInitSettings &in_pfSettings); 00099 }; 00100 };
Questions? Problems? Need more info? Contact us, and we can help!
Visit our Support pageRegister your project and we'll help you get started with no strings attached!
Get started with Wwise