版本
menu

Microphone Selection API

The following APIs are for input device selection.

This is a Windows-only feature. It returns 0 on other platforms.

/**
 * @brief Retrieves the number of available microphone devices.
 *
 * @return int The number of available microphone devices.
 */
int GMEPlugin_API_CALL GMEWWisePlugin_GetMicCount();
        
/**
 * @brief Populates a list with information about available microphone devices.
 * @param mic_list The pointer to the array of DEV_INFO structure to be filled with microphone information.
 * @param count The number of microphone devices to retrieve information for. This cannot exceed the size of the mic_list array.
 */
void GMEPlugin_API_CALL GMEWWisePlugin_GetMicList(DEV_INFO* mic_list , int count);
        
/**
 * @brief Selects a microphone device to be used.
 *
 * @param micId The ID of the microphone device to select.
 */
void GMEPlugin_API_CALL GMEWWisePlugin_SelectMicDevice(int micId);
        
/**
* @brief Get information about the currently selected microphone device
* @param[out] pInfo Pointer to DEV_INFO structure that receives the microphone device information.
*	The structure contains two fields:
*	- strDevNameUTF8: Device name in UTF-8 encoding
*	- strDevIdUTF8: Device ID in UTF-8 encoding
*	Caller must ensure the pointer is valid and the structure has sufficient memory allocated 
*	(at least 512 bytes for each field).
* @return Operation result code:
*	0: Successfully retrieved device information
*	Non-zero: Failed to get device information. See the SDK documentation for error codes.
*/
int GMEPlugin_API_CALL GMEWWisePlugin_GetCurrentMicDeviceInfo(DEV_INFO* pInfo);
        

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅