#[non_exhaustive]pub struct AudioMapping {
pub atom_key: String,
pub input_key: String,
pub input_track: i32,
pub input_channel: i32,
pub output_channel: i32,
pub gain_db: f64,
/* private fields */
}
Expand description
The mapping for the JobConfig.edit_list atoms with audio EditAtom.inputs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.atom_key: String
Required. The EditAtom.key that references the atom with audio inputs in the JobConfig.edit_list.
input_key: String
Required. The Input.key that identifies the input file.
input_track: i32
Required. The zero-based index of the track in the input file.
input_channel: i32
Required. The zero-based index of the channel in the input audio stream.
output_channel: i32
Required. The zero-based index of the channel in the output audio stream.
gain_db: f64
Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0.
Implementations§
Source§impl AudioMapping
impl AudioMapping
pub fn new() -> Self
Sourcepub fn set_atom_key<T: Into<String>>(self, v: T) -> Self
pub fn set_atom_key<T: Into<String>>(self, v: T) -> Self
Sets the value of atom_key.
Sourcepub fn set_input_key<T: Into<String>>(self, v: T) -> Self
pub fn set_input_key<T: Into<String>>(self, v: T) -> Self
Sets the value of input_key.
Sourcepub fn set_input_track<T: Into<i32>>(self, v: T) -> Self
pub fn set_input_track<T: Into<i32>>(self, v: T) -> Self
Sets the value of input_track.
Sourcepub fn set_input_channel<T: Into<i32>>(self, v: T) -> Self
pub fn set_input_channel<T: Into<i32>>(self, v: T) -> Self
Sets the value of input_channel.
Sourcepub fn set_output_channel<T: Into<i32>>(self, v: T) -> Self
pub fn set_output_channel<T: Into<i32>>(self, v: T) -> Self
Sets the value of output_channel.
Sourcepub fn set_gain_db<T: Into<f64>>(self, v: T) -> Self
pub fn set_gain_db<T: Into<f64>>(self, v: T) -> Self
Sets the value of gain_db.
Trait Implementations§
Source§impl Clone for AudioMapping
impl Clone for AudioMapping
Source§fn clone(&self) -> AudioMapping
fn clone(&self) -> AudioMapping
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AudioMapping
impl Debug for AudioMapping
Source§impl Default for AudioMapping
impl Default for AudioMapping
Source§fn default() -> AudioMapping
fn default() -> AudioMapping
Returns the “default value” for a type. Read more
Source§impl Message for AudioMapping
impl Message for AudioMapping
Source§impl PartialEq for AudioMapping
impl PartialEq for AudioMapping
impl StructuralPartialEq for AudioMapping
Auto Trait Implementations§
impl Freeze for AudioMapping
impl RefUnwindSafe for AudioMapping
impl Send for AudioMapping
impl Sync for AudioMapping
impl Unpin for AudioMapping
impl UnwindSafe for AudioMapping
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more