Version

menu_open
Attention : vous avez été redirigé vers la plus récente documentation correspondant à votre version générale ( 2023.1.4.8496 ). Si vous souhaitez accéder à la documentation de votre version précise, veuillez télécharger la documentation hors ligne depuis l'Audiokinetic Launcher et sélectionner l'option de documentation Offline dans l'application de création Wwise.

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

Returns
  • 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.
Remarks
This can be called from multiple threads.
Parameters
in_FileOpenFile name and flags passed to the Open call.
io_idDeviceIn: last device used. Out: next device to use to open the file

Definition at line 435 of file AkStreamMgrModule.h.

References AK_NotImplemented.


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