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.
Wwise SDK 2023.1.4

◆ CreateDevice()

AKSOUNDENGINE_API AKRESULT AK::StreamMgr::CreateDevice ( const AkDeviceSettings in_settings,
IAkLowLevelIOHook in_pLowLevelHook,
AkDeviceID out_idDevice 
)

Streaming device creation. Creates a high-level device, with specific settings. You need to provide the associated low-level I/O hook, implemented on your side.

Returns
The device ID. AK_INVALID_DEVICE_ID if there was an error and it could not be created.
Warning
  • This function is not thread-safe.
Remarks
Returns
  • AK_Success: Device was added to the system properly
  • AK_InsufficientMemory: Not enough memory to complete the operation
  • AK_InvalidParameter: One of the settings in AkDeviceSettings is out of range. Check asserts or debug console.
See also
Parameters
in_settingsDevice settings.
in_pLowLevelHookAssociated low-level I/O hook. Pass either a IAkLowLevelIOHook interface, consistent with the type of the scheduler.
out_idDeviceAssigned unique device id to use in all other functions of this interface.

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