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 Job.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.



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

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

Instance Attribute Details

#atom_keyString

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

Returns:

  • (String)


211
212
213
# File 'lib/google/apis/transcoder_v1/classes.rb', line 211

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)


217
218
219
# File 'lib/google/apis/transcoder_v1/classes.rb', line 217

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)


222
223
224
# File 'lib/google/apis/transcoder_v1/classes.rb', line 222

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)


227
228
229
# File 'lib/google/apis/transcoder_v1/classes.rb', line 227

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)


232
233
234
# File 'lib/google/apis/transcoder_v1/classes.rb', line 232

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)


237
238
239
# File 'lib/google/apis/transcoder_v1/classes.rb', line 237

def output_channel
  @output_channel
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



244
245
246
247
248
249
250
251
# File 'lib/google/apis/transcoder_v1/classes.rb', line 244

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