版本

menu_open

◆ GetNextPreferredDevice()

virtual AKRESULT AK::StreamMgr::IAkFileLocationResolver::GetNextPreferredDevice ( AkAsyncFileOpenData in_FileOpen,
AkDeviceID io_idDevice 
)
inlinevirtual

Determines which device to use to open a file. If your File Resolver only handles one device, return AK_NotImplemented and the StreamMgr will use the only device configured. If it handles multiple devices, you can base the decision on where to get the file on any kind of heuristic: file extension, file name, access rights, CodecID, etc. The order in which devices are searched is left to the implementer. This function will always be called first with io_idDevice = AK_INVALID_DEVICE_ID.

返回
  • AK_Success if there is a device to delegate the Open() call to. io_idDevice should be set to the proper AkDeviceID (as returned by AK::StreamMgr::CreateDevice).
  • AK_FileNotFound if all devices have been exhausted.
  • AK_NotImplemented if there is only one device in the system and file resolution is trivial.
备注
This can be called from multiple threads. Note that there is a
参数
in_FileOpenFile name and flags passed to the Open call.
io_idDeviceIn: last device used. Out: next device to use to open the file

在文件 AkStreamMgrModule.h436 行定义.

引用了 AK_NotImplemented.


此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅