CRI ADX  Last Updated: 2025-05-07 13:34 p
Input audio parameters

Channel config

Channel config ( ::CriAtomChannelConfig ) is a parameter that determines the channel configuration of the audio data.
The Atom library interprets which speaker each channel of the input audio data corresponds to based on the channel config.
The default channel configuration is stored in the Atom library.
For example, the channel configuration for 8ch audio data is ::CRIATOM_CHANNEL_CONFIG_7_1 . Therefore, 8ch audio data is interpreted as 7.1ch audio data by default.
The default channel configuration value can be changed with the criAtom_ChangeDefaultChannelConfig function.
For example, if you execute the following code, the Atom library will interpret 8ch audio data as 5.1.2ch audio data.
/* Instructs the Atom library to treat 8ch audio as 5.1.2ch audio */
criAtom_ChangeDefaultChannelConfig(8, CRIATOM_CHANNEL_CONFIG_5_1_2);
void criAtom_ChangeDefaultChannelConfig(CriSint32 num_channels, CriAtomChannelConfig channel_config)
Specify channel mapping pattern.
For the default channel configuration values ​​and usage examples, please refer to the API reference " ::criAtom_ChangeDefaultChannelConfig ".
Please refer to the API reference " ::criAtomExPlayer_SetChannelConfig " to change the channel configuration when playing a specific audio.

Channel Order

Channel order is a parameter that determines the channel order of the audio data.
Which speaker should output each channel of the input audio data is uniquely determined by the channel configuration and channel order.
For example, when playing 8-channel audio data, the Atom library interprets the audio data as being interleaved in the following order by default.
channel number expected channel
0 left
1 right
2 center
3 LFE
4 surround left
5 surround right
6 surround back left
7 surround backright
The default channel order can be changed with the criAtom_ChangeDefaultChannelOrder function.
For example, if you are using 7.1ch audio data in which the surround back component of the input audio is before the surround component (audio data in which channels 4 and 5 are swapped with channels 6 and 7), you need to specify the channel order with the following code.
// For 8ch audio, specify that the surround and surround back components are
// interleaved in the reverse order of the library's assumption.
CriSint32 channel_order[] = { 0, 1, 2, 3, 6, 7, 4, 5 };
void criAtom_ChangeDefaultChannelOrder(CriSint32 num_channels, const CriSint32 *channel_order)
Changed the default channel order.
For the default channel order and examples of its use, see the API reference " ::criAtom_ChangeDefaultChannelOrder ".
Next:criatom_feat_asr