バージョン

menu_open
Wwise SDK 2022.1.12

◆ SetMediaSource()

bool AK.Wwise::Plugin::V1::ObjectMedia::SetMediaSource ( const AkOSChar in_pszFilePathToImport,
unsigned int  in_Index,
bool  in_bReplace 
)
inline

Requests to set the specified file as a data input file.

This will copy the file in the project under the file name specified in in_pszFilePathToImport, and create or replace a Media Source at the given index.

注釈: You must add up indexes sequentially. If you have 0-14 indexes, adding a new one at 40 will create it at 15. If you want to have empty spaces for indexes, add empty media sources with a nullptr in_pszFilePathToImport sequentially. Pass (unsigned int)-1 as the in_Index to insert at the end of the list.
警告: You should not put the same file in two different indexes.
引数
[in]in_pszFilePathToImport(Optional) File path. Can be nullptr if the plug-in generates this file, or if the file is not yet available.
[in]in_IndexMedia source index. If higher than or equal to the current media source count, will add a new index.
[in]in_bReplaceTrue to replace a file under the same name. False will succeed if the file already exists.
戻り値
true if succeeded.

HostObjectMedia.h347 行目に定義があります。

参照先 AK.Wwise::Plugin::CBaseInterfaceGlue< CHostObjectMedia >::g_cinterface, MKBOOL, ak_wwise_plugin_host_object_media_v1::SetMediaSource.


このページはお役に立ちましたか?

サポートは必要ですか?

ご質問や問題、ご不明点はございますか?お気軽にお問い合わせください。

サポートページをご確認ください

あなたのプロジェクトについて教えてください。ご不明な点はありませんか。

プロジェクトを登録していただくことで、ご利用開始のサポートをいたします。

Wwiseからはじめよう