Version

menu_open
Wwise SDK 2023.1.3

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

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise