Go to the documentation of this file.
34 #if defined(_GAMING_XBOX_SCARLETT)
35 #define AK_XBOXSERIESX
36 #define AK_WEM_OPUS_HW_SUPPORTED
37 #elif defined(_GAMING_XBOX_XBOXONE)
40 #error "Unsupported version of Gaming.Xbox platform"
47 #include <winapifamily.h>
55 #define AK_HARDWARE_DECODING_SUPPORTED //For XMA
58 #define AK_XMA_SUPPORTED
59 #define AK_DVR_BYPASS_SUPPORTED
61 #define AK_DEVICE_MEMORY_SUPPORTED
63 #define AK_XAUDIO2_FLAGS XAUDIO2_DO_NOT_USE_SHAPE
67 #define AK_COMM_NO_DYNAMIC_PORTS
68 #define AK_DEVICE_CACHE_SUPPORT
70 #define AK_SUPPORT_THREADS
71 #define AK_SUPPORT_WCHAR
74 #define AK_RESTRICT __restrict
75 #define AK_EXPECT_FALSE( _x ) (_x)
76 #define AkForceInline __forceinline
77 #define AkNoInline __declspec(noinline)
79 #define AK_SIMD_ALIGNMENT 16
80 #define AK_ALIGN_SIMD( _declaration_ ) AK_ALIGN( _declaration_, AK_SIMD_ALIGNMENT )
81 #define AK_BUFFER_ALIGNMENT AK_SIMD_ALIGNMENT
85 #define AKSIMD_V4F32_SUPPORTED
86 #if defined(_GAMING_XBOX_XBOXONE)
87 #define AKSIMD_AVX_SUPPORTED // AVX supported on XB1
88 #elif defined(_GAMING_XBOX_SCARLETT)
89 #define AKSIMD_AVX_SUPPORTED // AVX supported on Xbox Series X
90 #define AKSIMD_AVX2_SUPPORTED // ..and AVX2 as welll
93 #if defined(_GAMING_XBOX_SCARLETT)
94 #define AK_THREAD_AFFINITY_ALL 16383 // from 0b0011'1111'1111'1111 -- 14 cores available
95 #define AK_THREAD_AFFINITY_DEFAULT 16383 // from 0b0011'1111'1111'1111 -- Default to 14 fully-available cores
96 #elif defined(_GAMING_XBOX_XBOXONE)
97 #define AK_THREAD_AFFINITY_ALL 127 // from 0b0111'1111 -- 7 cores available
98 #define AK_THREAD_AFFINITY_DEFAULT 63 // from 0b0011'1111 -- Default to only 6 fully-available cores. 7th core is half-available.
101 #define AK_DLLEXPORT __declspec(dllexport)
102 #define AK_DLLIMPORT __declspec(dllimport)
118 #define AK_UINT_MAX UINT_MAX
121 #define AK_MAX_PATH 260
126 #define AkmmioFOURCC( ch0, ch1, ch2, ch3 ) \
127 ( (AkFourcc)(AkUInt8)(ch0) | ( (AkFourcc)(AkUInt8)(ch1) << 8 ) | \
128 ( (AkFourcc)(AkUInt8)(ch2) << 16 ) | ( (AkFourcc)(AkUInt8)(ch3) << 24 ) )
130 #define AK_BANK_PLATFORM_DATA_ALIGNMENT (2048)
132 #define AK_VM_DEVICE_PAGE_SIZE (2048)
137 #define AK_OSCHAR_FMT "%ls"
142 #define AKTEXT(x) L ## x
145 #define AK_ASYNC_OPEN_DEFAULT (true)
147 #define AK_COMM_NO_DYNAMIC_PORTS
149 #define AK_COMM_DISABLE_ON_SUSPEND
151 #define AK_WWISE_XMEMALLOC_ALLOCATORID 215
uint32_t AkUInt32
Unsigned 32-bit integer.
Tell us about your project. We're here to help.
Register your project and we'll help you get started with no strings attached!
Get started with Wwise