버전

menu_open
Wwise SDK 2019.1.11

◆ QueryDiffractionPaths()

AKSOUNDENGINE_API AKRESULT AK::SpatialAudio::QueryDiffractionPaths ( AkGameObjectID  in_gameObjectID,
AkVector out_listenerPos,
AkVector out_emitterPos,
AkDiffractionPathInfo out_aPaths,
AkUInt32 &  io_uArraySize 
)

Query information about the diffraction state for a particular listener and emitter, which has been calculated using the data provided via the spatial audio emitter API. This function can be used for debugging purposes. Returned in out_aPaths, this array contains the sound paths calculated from diffraction around a geometric edge and/or diffraction through portals connecting rooms. No paths will be returned in any of the following conditions: (1) the emitter game object has a direct line of sight to the listener game object, (2) the emitter and listener are in the same room, and the listener is completely outside the radius of the emitter as defined by AkEmitterSettings::diffractionMaxPathLength, or (3) The emitter and listener are in different rooms, but there are no paths found via portals between the emitter and the listener. A single path with zero diffraction nodes is returned when all of the following conditions are met: (1) the emitter and listener are in the same room, (2) there is no direct line of sight, and (3) either AkEmitterSettings::diffractionMaxPathLength is exceeded or the accumulated diffraction coefficient exceeds 1.0. This function must acquire the global sound engine lock and, therefore, may block waiting for the lock.

참고
매개변수
in_gameObjectID The ID of the game object that the client wishes to query.
out_listenerPos Returns the position of the listener game object that is associated with the game object in_gameObjectID.
out_emitterPos Returns the position of the emitter game object in_gameObjectID.
out_aPaths Pointer to an array of AkDiffractionPathInfo's which will be filled on return.
io_uArraySize The number of slots in out_aPaths, after returning the number of valid elements written.

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

지원이 필요하신가요?

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

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

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

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

Wwise를 시작해 보세요