Skip to content

AudioChannelMapping object

app.project.rootItem.children[index].getAudioChannelMapping

The AudioChannelMapping object defines the audio channel mapping applied to a given ProjectItem object.


app.project.rootItem.children[index].getAudioChannelMapping.audioChannelsType

The type of the audio contained in this channel. Will be 0, 1 or 2, corresponding to AUDIOCHANNELTYPE_Mono, AUDIOCHANNELTYPE_Stereo, or AUDIOCHANNELTYPE_51.


app.project.rootItem.children[index].getAudioChannelMapping.audioClipsNumber

The number of audio clips associated with this audio channel.


AudioChannelMapping.setMappingForChannel()

Section titled “AudioChannelMapping.setMappingForChannel()”

app.project.rootItem.children[index].setMappingForChannel(channelIndex, sourceChannelIndex)

Maps a source channel to the specified channel index.

ParameterTypeDescription
channelIndexIntegerThe index of a channel to be mapped.
sourceChannelIndexIntegerThe index of a source channel to map.

Returns true if successful, false if that mapping is unsupported.