버전

menu_open
Wwise SDK 2023.1.5

◆ GetDeviceList() [1/2]

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::GetDeviceList ( AkUInt32  in_ulCompanyID,
AkUInt32  in_ulPluginID,
AkUInt32 io_maxNumDevices,
AkDeviceDescription out_deviceDescriptions 
)

Returns a listing of the current devices for a given sink plug-in, including Device ID, friendly name, and state.

Remarks
This call is only valid for sink plug-ins that support device enumeration. Prerequisites:
  • The plug-in must have been initialized by loading the init bank or by calling AK::SoundEngine::RegisterPlugin.
  • A physical device recognized by this plug-in must exist in the system.

The built-in audio devices (System, Communication, Headphones, Personal, Pad Speaker) all support enumeration, on all platforms. The only Wwise plug-in that support device enumeration is Motion, for the Windows platform only. Note that it is optional to implement device enumeration on custom sink plug-ins.

반환값
  • AK_NotImplemented if the sink plug-in does not implement device enumeration
  • AK_PluginNotRegistered if the plug-in has not been registered yet either by loading the init bank or by calling RegisterPluginDLL.
  • AK_NotCompatible if no device of this type are supported on the current platform
  • AK_Fail in case of system device manager failure (OS related)
매개변수
in_ulCompanyIDCompany identifier (as declared in the plug-in description XML file)
in_ulPluginIDPlug-in identifier (as declared in the plug-in description XML file)
io_maxNumDevicesIn: The length of the out_deviceDescriptions array. Out: If out_deviceDescriptions is not-null, this will be set to the number of entries in out_deviceDescriptions that was populated. If out_deviceDescriptions is null, this will be set to the number of devices that may be available.
out_deviceDescriptionsThe output array of device descriptions.

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

지원이 필요하신가요?

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

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

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

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

Wwise를 시작해 보세요