Class: Google::Apis::TranscoderV1::AudioMapping
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1::AudioMapping
- 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
-
#atom_key ⇒ String
Required.
-
#gain_db ⇒ Float
Audio volume control in dB.
-
#input_channel ⇒ Fixnum
Required.
-
#input_key ⇒ String
Required.
-
#input_track ⇒ Fixnum
Required.
-
#output_channel ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AudioMapping
constructor
A new instance of AudioMapping.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_key ⇒ String
Required. The EditAtom.key that references the atom with audio inputs in the
JobConfig.edit_list.
Corresponds to the JSON property atomKey
224 225 226 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 224 def atom_key @atom_key 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
230 231 232 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 230 def gain_db @gain_db end |
#input_channel ⇒ Fixnum
Required. The zero-based index of the channel in the input audio stream.
Corresponds to the JSON property inputChannel
235 236 237 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 235 def input_channel @input_channel end |
#input_key ⇒ String
Required. The Input.key that identifies the input file.
Corresponds to the JSON property inputKey
240 241 242 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 240 def input_key @input_key end |
#input_track ⇒ Fixnum
Required. The zero-based index of the track in the input file.
Corresponds to the JSON property inputTrack
245 246 247 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 245 def input_track @input_track end |
#output_channel ⇒ Fixnum
Required. The zero-based index of the channel in the output audio stream.
Corresponds to the JSON property outputChannel
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 |