Struct rrise::AkOutputSettings

source ·
#[repr(C)]
pub struct AkOutputSettings { pub audioDeviceShareset: AkUniqueID, pub idDevice: AkUInt32, pub ePanningRule: AkPanningRule, pub channelConfig: AkChannelConfig, }
Expand description

Platform-independent initialization settings of output devices.

Fields

audioDeviceShareset: AkUniqueID

Unique ID of a custom audio device to be used. Custom audio devices are defined in the Audio Device Shareset section of the Wwise project. If you want to output normally through the output device defined on the Master Bus in your project, leave this field to its default value (AK_INVALID_UNIQUE_ID, or value 0). Typical usage: AkInitSettings.eOutputSettings.audioDeviceShareset = AK::SoundEngine::GetIDFromString(“InsertYourAudioDeviceSharesetNameHere”);

idDevice: AkUInt32

Device specific identifier, when multiple devices of the same type are possible. If only one device is possible, leave to 0.

  • PS4 Controller-Speakers: UserID as returned from sceUserServiceGetLoginUserIdList
  • XBoxOne Controller-Headphones: Use the AK::GetDeviceID function to get the ID from an IMMDevice. Find the player’s device with the WASAPI API (IMMDeviceEnumerator, see Microsoft documentation) or use AK::GetDeviceIDFromName.
  • Windows: Use AK::GetDeviceID or AK::GetDeviceIDFromName to get the correct ID. Leave to 0 for the default Windows device as seen in Audio Properties.
  • All other outputs: use 0 to select the default for the selected audio device type (shareset)
ePanningRule: AkPanningRule

Rule for 3D panning of signals routed to a stereo bus. In AkPanningRule_Speakers mode, the angle of the front loudspeakers (uSpeakerAngles[0]) is used. In AkPanningRule_Headphones mode, the speaker angles are superseded with constant power panning between two virtual microphones spaced 180 degrees apart.

channelConfig: AkChannelConfig

Channel configuration for this output. Call AkChannelConfig::Clear() to let the engine use the default output configuration. Hardware might not support the selected configuration.

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.