版本

menu_open
Wwise SDK 2023.1.3

◆ GetDeviceIDFromName()

AKSOUNDENGINE_API AkUInt32 AK::GetDeviceIDFromName ( wchar_t *  in_szToken)

Finds an audio endpoint that matches the token in the device name or device ID and returns an ID.
This is a helper function that searches in the device ID (as returned by IMMDevice->GetId) and in the property PKEY_Device_FriendlyName. The token parameter is case-sensitive. If you need to do matching on different conditions, use IMMDeviceEnumerator directly and AK::GetDeviceID.

注解
CoInitialize must have been called for the calling thread. See Microsoft's documentation about CoInitialize for more details.
返回
The device ID as returned by IMMDevice->GetId, hashed by AK::SoundEngine::GetIDFromName()

Finds an audio endpoint that matches the token in the device name or device ID and returns and ID compatible with AddSecondaryOutput.
This is a helper function that searches in the device ID (as returned by IMMDevice->GetId) and IMMXboxDevice->GetPnpId() If you need to do matching on different conditions, use IMMXboxDeviceEnumerator directly.

返回
An ID to use with AddSecondaryOutput. The ID returned is the device ID as returned by IMMDevice->GetId, hashed by AK::SoundEngine::GetIDFromName()

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅