버전
menu_open
link

include/AK/SoundEngine/Platforms/Mac/AkTypes.h

Go to the documentation of this file.
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>

이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요