バージョン
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 // AkTypes.h 00029 00030 /// \file 00031 /// Data type definitions. 00032 00033 #pragma once 00034 00035 #include <mach/semaphore.h> 00036 00037 #include <TargetConditionals.h> 00038 00039 #define AK_APPLE ///< Compiling for an Apple platform 00040 00041 #if (TARGET_OS_IPHONE || TARGET_OS_TV) && !TARGET_OS_SIMULATOR 00042 #define AK_IOS ///< Compiling for iOS or tvOS (iPhone, iPad, iPod, Apple TV...) 00043 #define AK_CPU_ARM ///< Compiling for ARM CPU 00044 #if defined __ARM_NEON__ 00045 #define AK_CPU_ARM_NEON ///< Compiling for ARM CPU with Neon 00046 #define AKSIMD_V4F32_SUPPORTED 00047 #endif 00048 00049 #if defined __LP64__ 00050 #define AK_CPU_ARM_64 00051 #endif // #if defined __LP64__ 00052 #elif (TARGET_OS_IPHONE || TARGET_OS_TV) && TARGET_OS_SIMULATOR 00053 #define AK_IOS ///< Compiling for iOS or tvOS (iPhone, iPad, iPod, Apple TV...) 00054 #if defined __LP64__ 00055 #define AK_CPU_X86_64 00056 #else 00057 #define AK_CPU_X86 ///< Compiling for 32-bit x86 CPU 00058 #endif // #if defined __LP64__ 00059 #elif !TARGET_OS_EMBEDDED 00060 #define AK_MAC_OS_X ///< Compiling for Mac OS X 00061 #define AKSIMD_V4F32_SUPPORTED 00062 #if TARGET_CPU_X86_64 00063 #define AK_CPU_X86_64 ///< Compiling for 64-bit x86 CPU 00064 #elif TARGET_CPU_X86 00065 #define AK_CPU_X86 ///< Compiling for 32-bit x86 CPU 00066 #endif 00067 #endif 00068 00069 #define AK_LFECENTER ///< Internal use 00070 #define AK_REARCHANNELS ///< Internal use 00071 #define AK_71AUDIO ///< Internal use 00072 00073 #ifdef AK_MAC_OS_X 00074 #define AK_71FROMSTEREOMIXER 00075 #define AK_51FROMSTEREOMIXER 00076 00077 #if (defined __MAC_OS_X_VERSION_MIN_ALLOWED) && __MAC_OS_X_VERSION_MIN_ALLOWED >= 101200 // OSAtomic got deprecated. 00078 #define AK_USE_STD_ATOMIC 00079 #endif 00080 #else 00081 #if (defined __IPHONE_OS_VERSION_MIN_ALLOWED) && __IPHONE_OS_VERSION_MIN_ALLOWED >= 100000 // OSAtomic got deprecated. 00082 #define AK_USE_STD_ATOMIC 00083 #endif 00084 #endif 00085 00086 #define AK_SUPPORT_WCHAR ///< Can support wchar 00087 00088 typedef semaphore_t AkEvent; 00089 typedef semaphore_t AkSemaphore; 00090 00091 // Note: POSIX-type include has to stay at the bottom 00092 // otherwise AK_APPLE and other defines won't work for the include. 00093 #include <AK/SoundEngine/Platforms/POSIX/AkTypes.h>