00001 00002 // 00003 // Copyright (c) 2006 Audiokinetic Inc. / All Rights Reserved 00004 // 00006 00007 // AkTypes.h 00008 00011 00012 #pragma once 00013 00014 #include <mach/semaphore.h> 00015 00016 #include <TargetConditionals.h> 00017 00018 #define AK_APPLE ///< Compiling for an Apple platform 00019 00020 #if (TARGET_OS_IPHONE || TARGET_OS_TV) && !TARGET_OS_SIMULATOR 00021 #define AK_IOS ///< Compiling for iOS or tvOS (iPhone, iPad, iPod, Apple TV...) 00022 #define AK_CPU_ARM ///< Compiling for ARM CPU 00023 #if defined __ARM_NEON__ 00024 #define AK_CPU_ARM_NEON ///< Compiling for ARM CPU with Neon 00025 #endif 00026 00027 #if __LP64__ 00028 #define AK_CPU_ARM_64 00029 #endif // #if __LP64__ 00030 #elif (TARGET_OS_IPHONE || TARGET_OS_TV) && TARGET_OS_SIMULATOR 00031 #define AK_IOS ///< Compiling for iOS or tvOS (iPhone, iPad, iPod, Apple TV...) 00032 #if __LP64__ 00033 #define AK_CPU_X86_64 00034 #else 00035 #define AK_CPU_X86 ///< Compiling for 32-bit x86 CPU 00036 #endif // #if __LP64__ 00037 #elif !TARGET_OS_EMBEDDED 00038 #define AK_MAC_OS_X ///< Compiling for Mac OS X 00039 #if TARGET_CPU_X86_64 00040 #define AK_CPU_X86_64 ///< Compiling for 64-bit x86 CPU 00041 #elif TARGET_CPU_X86 00042 #define AK_CPU_X86 ///< Compiling for 32-bit x86 CPU 00043 #endif 00044 #endif 00045 00046 #ifdef AK_MAC_OS_X 00047 #define AK_LFECENTER ///< Internal use 00048 #define AK_REARCHANNELS ///< Internal use 00049 #define AK_71AUDIO ///< Internal use 00050 #endif 00051 00052 #ifdef AK_IOS 00053 #if(TARGET_OS_TV == 1) 00054 #define AK_LFECENTER 00055 #define AK_REARCHANNELS 00056 #define AK_71AUDIO 00057 #endif 00058 #endif 00059 00060 #define AK_SUPPORT_WCHAR ///< Can support wchar 00061 00062 typedef semaphore_t AkEvent; 00063 typedef semaphore_t AkSemaphore; 00064 00065 // Note: POSIX-type include has to stay at the bottom 00066 // otherwise AK_APPLE and other defines won't work for the include. 00067 #include <AK/SoundEngine/Platforms/POSIX/AkTypes.h>
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