버전

menu_open
Wwise SDK 2021.1.14

◆ 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.

Note: 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.
Warning: You should not put the same file in two different indexes.
Parameters
[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_Index Media source index. If higher than or equal to the current media source count, will add a new index.
[in] in_bReplace True to replace a file under the same name. False will succeed if the file already exists.
Returns
true if succeeded.

Definition at line 348 of file HostObjectMedia.h.

References AK.Wwise::Plugin::CBaseInterfaceGlue< CHostObjectMedia >::g_cinterface, MKBOOL, and ak_wwise_plugin_host_object_media_v1::SetMediaSource.


이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요