Version

menu_open
Wwise SDK 2024.1.0

◆ SetAll()

void AkAudioFormat::SetAll ( AkUInt32  in_uSampleRate,
AkChannelConfig  in_channelConfig,
AkUInt32  in_uBitsPerSample,
AkUInt32  in_uBlockAlign,
AkUInt32  in_uTypeID,
AkUInt32  in_uInterleaveID 
)
inline

Set all parameters of the audio format structure. Channels are specified by channel mask (standard configs).

Parameters
in_uSampleRateNumber of samples per second
in_channelConfigChannel configuration
in_uBitsPerSampleNumber of bits per sample
in_uBlockAlignNumber of bytes per sample frame. (For example a 5.1 PCM 16bit should have a uBlockAlign equal to 6(5.1 channels)*2(16 bits per sample) = 12.
in_uTypeIDData sample format (Float or Integer)
in_uInterleaveIDInterleaved type

Definition at line 123 of file AkCommonDefs.h.

References channelConfig, uBitsPerSample, uBlockAlign, uInterleaveID, uSampleRate, and uTypeID.


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