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 Job.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.
239 240 241 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 239 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
Job.edit_list.
Corresponds to the JSON property atomKey
211 212 213 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 211 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
217 218 219 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 217 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
222 223 224 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 222 def input_channel @input_channel end |
#input_key ⇒ String
Required. The Input.key that identifies the input file.
Corresponds to the JSON property inputKey
227 228 229 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 227 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
232 233 234 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 232 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
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 |