跳转到内容

AudioChannelMapping 对象

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

AudioChannelMapping 对象定义了应用于给定 ProjectItem 对象 的音频通道映射。


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

此通道中包含的音频类型。值为 012,分别对应 AUDIOCHANNELTYPE_MonoAUDIOCHANNELTYPE_StereoAUDIOCHANNELTYPE_51


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

与此音频通道关联的音频剪辑数量。


AudioChannelMapping.setMappingForChannel()

Section titled “AudioChannelMapping.setMappingForChannel()”

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

将源通道映射到指定的通道索引。

参数类型描述
channelIndex整数要映射的通道索引。
sourceChannelIndex整数要映射的源通道索引。

如果成功返回 true,如果该映射不受支持则返回 false