バージョン

menu_open
Wwise SDK 2021.1.14

◆ 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からはじめよう