이 파일의 문서화 페이지로 가기
33 #ifndef _AKSPEAKERVOLUMES_GENERIC_H_
34 #define _AKSPEAKERVOLUMES_GENERIC_H_
38 #if defined( AK_CPU_ARM_NEON ) || ( ( defined( AK_CPU_X86 ) || defined( AK_CPU_X86_64 ) ) && !defined(AK_IOS) )
40 #define AKSIMD_SPEAKER_VOLUME
44 #ifdef AKSIMD_SPEAKER_VOLUME
51 namespace SpeakerVolumes
55 #ifdef AKSIMD_V4F32_SUPPORTED
56 #define SIZEOF_AKSIMD_V4F32 16
57 #define SIZEOF_AKSIMD_F32 4
61 return (in_uNumChannels + SIZEOF_AKSIMD_F32 - 1) >> 2;
67 return GetNumV4F32( in_uNumChannels ) * 4;
73 return GetNumV4F32( in_uNumChannels ) * SIZEOF_AKSIMD_V4F32;
76 #elif defined (AKSIMD_V2F32_SUPPORTED)
77 #define SIZEOF_AKSIMD_V2F32 8
82 return ( in_uNumChannels + ( SIZEOF_AKSIMD_V2F32 / 2 ) - 1 ) >> 1;
88 return GetNumV2F32( in_uNumChannels ) * 2;
94 return GetNumV2F32( in_uNumChannels ) * SIZEOF_AKSIMD_V2F32;
98 #error Should use scalar implementation.
109 namespace SpeakerVolumes
116 return in_uNumChannels *
sizeof(
AkReal32 );
121 return in_uNumChannels;
127 #endif // AKSIMD_SPEAKER_VOLUME
129 #endif //_AKSPEAKERVOLUMES_GENERIC_H_
AkForceInline AkUInt32 GetRequiredSize(AkUInt32 in_uNumChannelsIn, AkUInt32 in_uNumChannelsOut)
Compute size (in bytes) required for given channel configurations.
AkForceInline AkUInt32 GetNumElements(AkUInt32 in_uNumChannelsIn, AkUInt32 in_uNumChannelsOut)
Compute size (in number of elements) required for given channel configurations.
지원이 필요하신가요?
질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!
지원 페이지를 방문해 주세요
작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.
프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.
Wwise를 시작해 보세요