버전

menu_open
AKRESULT __cdecl AK::SoundEngine::SetSpeakerAngles ( AkReal32 in_pfSpeakerAngles,
AkUInt32  in_uNumAngles,
AkReal32  in_fHeightAngle,
AkAudioOutputType  in_eOutputType = AkOutput_Main,
AkUInt32  in_iOutputID = 0  
)

Set speaker angles of the specified device. Speaker angles are used for 3D positioning of sounds over standard configurations. Note that the current version of Wwise only supports positioning on the plane. The speaker angles are expressed as an array of loudspeaker pairs, in degrees, relative to azimuth ]0,180]. Supported loudspeaker setups are always symmetric; the center speaker is always in the middle and thus not specified by angles. Angles must be set in ascending order. Typical usage:

  • Initialize the sound engine and/or add secondary output(s).
  • Get number of speaker angles and their value into an array using GetSpeakerAngles().
  • Modify the angles and call SetSpeakerAngles(). This function posts a message to the audio thread through the command queue, so it is thread safe. However the result may not be immediately read with GetSpeakerAngles().
    Warning:
    This function only applies to configurations (or subset of these configurations) that are standard and whose speakers are on the plane (2D).
    Returns:
    AK_NotCompatible if the channel configuration of the device is not standard (AK_ChannelConfigType_Standard), AK_Success if successful (device exists and angles are valid), AK_Fail otherwise.
    See also:
    GetSpeakerAngles()
Parameters:
in_pfSpeakerAngles  Array of loudspeaker pair angles, in degrees relative to azimuth [0,180].
in_uNumAngles  Number of elements in in_pfSpeakerAngles. It must correspond to AK::GetNumberOfAnglesForConfig( AK_SPEAKER_SETUP_DEFAULT_PLANE ) (the value returned by GetSpeakerAngles()).
in_fHeightAngle  Elevation of the height layer, in degrees relative to the plane [-90,90].
in_eOutputType  Output sink type. Pass AkOutput_Main for main output.
in_iOutputID  Player number or device-unique identifier. Pass 0 for main.

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

지원이 필요하신가요?

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

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

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

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

Wwise를 시작해 보세요