版本

menu_open
Wwise SDK 2022.1.13

◆ 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. 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.

返回
  • 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 之旅