Skip to content
v2.278.0

Experimental

@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

AudioChannelMapping Struct ​

A mapping from input channels to an output channel.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
const audioChannelMapping: medialive_alpha.AudioChannelMapping = {
  inputChannelLevels: [{
    inputChannel: 123,

    // the properties below are optional
    gain: 123,
  }],
  outputChannel: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_medialive_alpha as medialive_alpha

audio_channel_mapping = medialive_alpha.AudioChannelMapping(
    input_channel_levels=[medialive_alpha.InputChannelLevel(
        input_channel=123,

        # the properties below are optional
        gain=123
    )],
    output_channel=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.medialive.alpha.*;

AudioChannelMapping audioChannelMapping = AudioChannelMapping.builder()
        .inputChannelLevels(List.of(InputChannelLevel.builder()
                .inputChannel(123)

                // the properties below are optional
                .gain(123)
                .build()))
        .outputChannel(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive.Alpha;

var audioChannelMapping = new AudioChannelMapping {
    InputChannelLevels = new [] { new InputChannelLevel {
        InputChannel = 123,

        // the properties below are optional
        Gain = 123
    } },
    OutputChannel = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import medialive_alpha "github.com/aws/aws-cdk-go/awsmedialivealpha"

audioChannelMapping := &AudioChannelMapping{
	InputChannelLevels: []InputChannelLevel{
		&InputChannelLevel{
			InputChannel: jsii.Number(123),

			// the properties below are optional
			Gain: jsii.Number(123),
		},
	},
	OutputChannel: jsii.Number(123),
}

Properties ​

inputChannelLevelsInputChannelLevel[]input_channel_levelstyping.List[InputChannelLevel]inputChannelLevelsList<InputChannelLevel>InputChannelLevelsInputChannelLevel[]InputChannelLevels*[]InputChannelLevel required #
The input channels and their gain levels to mix into this output channel.
outputChannelnumberoutput_channelint | floatoutputChannelNumberOutputChanneldoubleOutputChannel*float64 required #
The index of the output channel being produced.