版本

menu_open
警告:系统已根据您所用大版本 (2019.2.15.7667) 自动跳转至最新文档。若想访问特定版本的文档,请从 Audiokinetic Launcher 下载离线文档,并在 Wwise 设计程序中勾选 Offline Documentation 选项。
Wwise SDK 2019.2.15

◆ UnsetMedia()

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::UnsetMedia ( AkSourceSettings in_pSourceSettings,
AkUInt32  in_uNumSourceSettings 
)

Removes the specified source from the list of loaded media, even if this media is already in use. The sources are identified by their ID (refer to 一般信息 for a discussion on using strings and IDs).

备注: This function is unsafe and deprecated. Use TryUnsetMedia() in its place. Media that is still in use by the sound engine should not be unset by this function. If the media is still in use, this function will attempt to forcibly kill all sounds and effects referencing this media, and then return AK_ResourceInUse. The client should NOT presume that the memory can be safely released at this point. The moment at which the memory can be safely released is unknown, and the only safe course of action is to keep the memory alive until the sound engine is terminated.
返回
  • AK_Success: Operation was successful, and the memory can be released on the client side.
  • AK_ResourceInUse: Specified media is still in use by the sound engine, the client should not release the memory.
  • AK_InvalidParameter: in_pSourceSettings is invalid
参数
in_pSourceSettings Array of Source Settings
in_uNumSourceSettings Number of Source Settings in the array

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅