Class: Google::Apis::TranscoderV1beta1::AudioChannelInput
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1beta1::AudioChannelInput
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/transcoder_v1beta1/classes.rb,
generated/google/apis/transcoder_v1beta1/representations.rb,
generated/google/apis/transcoder_v1beta1/representations.rb
Overview
Identifies which input file, track, and channel should be used.
Instance Attribute Summary collapse
-
#channel ⇒ Fixnum
Required.
-
#gain_db ⇒ Float
Audio volume control in dB.
-
#key ⇒ String
Required.
-
#track ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AudioChannelInput
constructor
A new instance of AudioChannelInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AudioChannelInput
Returns a new instance of AudioChannelInput.
291 292 293 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 291 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channel ⇒ Fixnum
Required. The zero-based index of the channel in the input file.
Corresponds to the JSON property channel
273 274 275 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 273 def channel @channel end |
#gain_db ⇒ Float
Audio volume control in dB. Negative values decrease volume, positive values
increase. The default is 0.
Corresponds to the JSON property gainDb
279 280 281 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 279 def gain_db @gain_db end |
#key ⇒ String
Required. The Input.key
that identifies the input file.
Corresponds to the JSON property key
284 285 286 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 284 def key @key end |
#track ⇒ Fixnum
Required. The zero-based index of the track in the input file.
Corresponds to the JSON property track
289 290 291 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 289 def track @track end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
296 297 298 299 300 301 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 296 def update!(**args) @channel = args[:channel] if args.key?(:channel) @gain_db = args[:gain_db] if args.key?(:gain_db) @key = args[:key] if args.key?(:key) @track = args[:track] if args.key?(:track) end |