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_this | Current instance of this interface. |
[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. |
- 返回
- true if succeeded.
在文件 HostObjectMedia.h 第 83 行定义.
被这些函数引用 AK.Wwise::Plugin::V1::ObjectMedia::SetMediaSource().