Class: Google::Apis::TranscoderV1::AudioMapping

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

Overview

The mapping for the JobConfig.edit_list atoms with audio EditAtom.inputs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AudioMapping

Returns a new instance of AudioMapping.



252
253
254
# File 'lib/google/apis/transcoder_v1/classes.rb', line 252

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

Instance Attribute Details

#atom_keyString

Required. The EditAtom.key that references the atom with audio inputs in the JobConfig.edit_list. Corresponds to the JSON property atomKey

Returns:

  • (String)


224
225
226
# File 'lib/google/apis/transcoder_v1/classes.rb', line 224

def atom_key
  @atom_key
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)


230
231
232
# File 'lib/google/apis/transcoder_v1/classes.rb', line 230

def gain_db
  @gain_db
end

#input_channelFixnum

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

Returns:

  • (Fixnum)


235
236
237
# File 'lib/google/apis/transcoder_v1/classes.rb', line 235

def input_channel
  @input_channel
end

#input_keyString

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

Returns:

  • (String)


240
241
242
# File 'lib/google/apis/transcoder_v1/classes.rb', line 240

def input_key
  @input_key
end

#input_trackFixnum

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

Returns:

  • (Fixnum)


245
246
247
# File 'lib/google/apis/transcoder_v1/classes.rb', line 245

def input_track
  @input_track
end

#output_channelFixnum

Required. The zero-based index of the channel in the output audio stream. Corresponds to the JSON property outputChannel

Returns:

  • (Fixnum)


250
251
252
# File 'lib/google/apis/transcoder_v1/classes.rb', line 250

def output_channel
  @output_channel
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



257
258
259
260
261
262
263
264
# File 'lib/google/apis/transcoder_v1/classes.rb', line 257

def update!(**args)
  @atom_key = args[:atom_key] if args.key?(:atom_key)
  @gain_db = args[:gain_db] if args.key?(:gain_db)
  @input_channel = args[:input_channel] if args.key?(:input_channel)
  @input_key = args[:input_key] if args.key?(:input_key)
  @input_track = args[:input_track] if args.key?(:input_track)
  @output_channel = args[:output_channel] if args.key?(:output_channel)
end