Class: Google::Apis::TranscoderV1beta1::AudioChannelInput

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/transcoder_v1beta1/classes.rb,
lib/google/apis/transcoder_v1beta1/representations.rb,
lib/google/apis/transcoder_v1beta1/representations.rb

Overview

Identifies which input file, track, and channel should be used.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AudioChannelInput

Returns a new instance of AudioChannelInput.



291
292
293
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 291

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#channelFixnum

Required. The zero-based index of the channel in the input file. Corresponds to the JSON property channel

Returns:

  • (Fixnum)


273
274
275
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 273

def channel
  @channel
end

#gain_dbFloat

Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0. Corresponds to the JSON property gainDb

Returns:

  • (Float)


279
280
281
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 279

def gain_db
  @gain_db
end

#keyString

Required. The Input.key that identifies the input file. Corresponds to the JSON property key

Returns:

  • (String)


284
285
286
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 284

def key
  @key
end

#trackFixnum

Required. The zero-based index of the track in the input file. Corresponds to the JSON property track

Returns:

  • (Fixnum)


289
290
291
# File 'lib/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 'lib/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