Class: AWSCDK::MediaLive::CfnChannel::InputChannelLevelProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_live/cfn_channel.rb

Overview

The setting to remix the audio.

The parent of this entity is AudioChannelMappings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gain: nil, input_channel: nil) ⇒ InputChannelLevelProperty

Returns a new instance of InputChannelLevelProperty.

Parameters:

  • gain (Numeric, nil) (defaults to: nil)

    The remixing value.

  • input_channel (Numeric, nil) (defaults to: nil)

    The index of the input channel that is used as a source.



8632
8633
8634
8635
8636
8637
# File 'media_live/cfn_channel.rb', line 8632

def initialize(gain: nil, input_channel: nil)
  @gain = gain
  Jsii::Type.check_type(@gain, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "gain") unless @gain.nil?
  @input_channel = input_channel
  Jsii::Type.check_type(@input_channel, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "inputChannel") unless @input_channel.nil?
end

Instance Attribute Details

#gainNumeric? (readonly)

The remixing value.

Units are in dB, and acceptable values are within the range from -60 (mute) to 6 dB.



8645
8646
8647
# File 'media_live/cfn_channel.rb', line 8645

def gain
  @gain
end

#input_channelNumeric? (readonly)

The index of the input channel that is used as a source.



8650
8651
8652
# File 'media_live/cfn_channel.rb', line 8650

def input_channel
  @input_channel
end

Class Method Details

.jsii_propertiesObject



8652
8653
8654
8655
8656
8657
# File 'media_live/cfn_channel.rb', line 8652

def self.jsii_properties
  {
    :gain => "gain",
    :input_channel => "inputChannel",
  }
end

Instance Method Details

#to_jsiiObject



8659
8660
8661
8662
8663
8664
8665
8666
# File 'media_live/cfn_channel.rb', line 8659

def to_jsii
  result = {}
  result.merge!({
    "gain" => @gain,
    "inputChannel" => @input_channel,
  })
  result.compact
end