|
◆ UnsetMedia()
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 General Information for a discussion on using strings and IDs).
![](/images/2022.1.15_8501/?source=SDK&id=images/Note.gif) | Note: 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. |
- Returns
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
- Parameters
-
in_pSourceSettings | Array of Source Settings |
in_uNumSourceSettings | Number of Source Settings in the array |
|