Version

menu_open
AK::StreamMgr::IAkFileLocationResolver Class Reference

#include <AkStreamMgrModule.h>

Public Member Functions

virtual AKRESULT GetNextPreferredDevice (AkAsyncFileOpenData &in_FileOpen, AkDeviceID &io_idDevice)
 

Protected Member Functions

virtual ~IAkFileLocationResolver ()
 Virtual destructor on interface to avoid warnings. More...
 

Detailed Description

File location resolver interface. There is one and only one File Location Resolver that is registered to the Stream Manager (using AK::StreamMgr::SetFileLocationResolver()). Its purpose is to resolve a file name or ID to a streaming device (I/O hook) that can handle the file. When your Low-Level I/O submodule uses a single device, you should create a standalone I/O hook which implements one of the I/O hooks defined above, as well as the File Location Resolver. You then register this object to the Stream Manager as the File Location Resolver. If you wish to create multiple devices, then you should have a separate object that implements AK::StreamMgr::IAkFileLocationResolver and registers to the Stream Manager as such. This object will be used to dispatch the file open request to the appropriate device. The strategy you will use to select the correct device is up to you to implement. There is a built-in mechanism of chaining devices through GetNextPreferredDevice(). If a device can't open a file GetNextPreferredDevice will be called again to get the next device to check.

Definition at line 415 of file AkStreamMgrModule.h.


Cette page a-t-elle été utile ?

Besoin d'aide ?

Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !

Visitez notre page d'Aide

Décrivez-nous de votre projet. Nous sommes là pour vous aider.

Enregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !

Partir du bon pied avec Wwise