Version

menu_open
Warning: you were redirected to the latest documentation corresponding to your major release ( 2023.1.8.8601 ). Should you wish to access your specific version's documentation, please download the offline documentation from the Audiokinetic Launcher and check the Offline Documentation option in Wwise Authoring.
Wwise SDK 2023.1.8

◆ SetBusDevice() [1/2]

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::SetBusDevice ( AkUniqueID  in_idBus,
AkUniqueID  in_idNewDevice 
)

Sets the Audio Device to which a master bus outputs. This overrides the setting in the Wwise project.
Can only be set on top-level busses. The Init bank should be successfully loaded prior to this call.

Note: This function is useful only if used before the creation of an output, at the beginning of the sound engine setup. Once active outputs using this Bus have been created, it is imperative to use AK::SoundEngine:ReplaceOutput instead to change the type of output.
Returns
AK_IDNotFound when either the Bus ID or the Device ID are not present in the Init bank or the bank was not loaded AK_InvalidParameter when the specified bus is not a Master Bus. This function can be called only on busses that have no parent bus.
Parameters
in_idBusId of the master bus
in_idNewDeviceNew device shareset to replace with.

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