Class: AWSCDK::MediaLive::CfnChannel::WavSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaLive::CfnChannel::WavSettingsProperty
- Defined in:
- media_live/cfn_channel.rb
Overview
The setup of WAV audio in the output.
The parent of this entity is AudioCodecSettings.
Instance Attribute Summary collapse
-
#bit_depth ⇒ Numeric?
readonly
Bits per sample.
-
#coding_mode ⇒ String?
readonly
The audio coding mode for the WAV audio.
-
#sample_rate ⇒ Numeric?
readonly
Sample rate in Hz.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bit_depth: nil, coding_mode: nil, sample_rate: nil) ⇒ WavSettingsProperty
constructor
A new instance of WavSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bit_depth: nil, coding_mode: nil, sample_rate: nil) ⇒ WavSettingsProperty
Returns a new instance of WavSettingsProperty.
14329 14330 14331 14332 14333 14334 14335 14336 |
# File 'media_live/cfn_channel.rb', line 14329 def initialize(bit_depth: nil, coding_mode: nil, sample_rate: nil) @bit_depth = bit_depth Jsii::Type.check_type(@bit_depth, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "bitDepth") unless @bit_depth.nil? @coding_mode = coding_mode Jsii::Type.check_type(@coding_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "codingMode") unless @coding_mode.nil? @sample_rate = sample_rate Jsii::Type.check_type(@sample_rate, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "sampleRate") unless @sample_rate.nil? end |
Instance Attribute Details
#bit_depth ⇒ Numeric? (readonly)
Bits per sample.
14342 14343 14344 |
# File 'media_live/cfn_channel.rb', line 14342 def bit_depth @bit_depth end |
#coding_mode ⇒ String? (readonly)
The audio coding mode for the WAV audio.
The mode determines the number of channels in the audio.
14349 14350 14351 |
# File 'media_live/cfn_channel.rb', line 14349 def coding_mode @coding_mode end |
#sample_rate ⇒ Numeric? (readonly)
Sample rate in Hz.
14354 14355 14356 |
# File 'media_live/cfn_channel.rb', line 14354 def sample_rate @sample_rate end |
Class Method Details
.jsii_properties ⇒ Object
14356 14357 14358 14359 14360 14361 14362 |
# File 'media_live/cfn_channel.rb', line 14356 def self.jsii_properties { :bit_depth => "bitDepth", :coding_mode => "codingMode", :sample_rate => "sampleRate", } end |
Instance Method Details
#to_jsii ⇒ Object
14364 14365 14366 14367 14368 14369 14370 14371 14372 |
# File 'media_live/cfn_channel.rb', line 14364 def to_jsii result = {} result.merge!({ "bitDepth" => @bit_depth, "codingMode" => @coding_mode, "sampleRate" => @sample_rate, }) result.compact end |