Struct google_api_proto::google::cloud::video::livestream::v1::audio_stream::AudioMapping
source · pub struct AudioMapping {
pub input_key: String,
pub input_track: i32,
pub input_channel: i32,
pub output_channel: i32,
pub gain_db: f64,
}
Expand description
The mapping for the input streams and audio channels.
Fields§
§input_key: String
Required. The Channel
[InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
that identifies the input that this audio mapping applies to. If an
active input doesn’t have an audio mapping, the primary audio track in
the input stream will be selected.
input_track: i32
Required. The zero-based index of the track in the input stream. All [mapping][google.cloud.video.livestream.v1.AudioStream.mapping]s in the same [AudioStream][google.cloud.video.livestream.v1.AudioStream] must have the same input track.
input_channel: i32
Required. The zero-based index of the channel in the input stream.
output_channel: i32
Required. The zero-based index of the channel in the output audio stream. Must be consistent with the [input_channel][google.cloud.video.livestream.v1.AudioStream.AudioMapping.input_channel].
gain_db: f64
Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0.
Trait Implementations§
source§impl Clone for AudioMapping
impl Clone for AudioMapping
source§fn clone(&self) -> AudioMapping
fn clone(&self) -> AudioMapping
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AudioMapping
impl Debug for AudioMapping
source§impl Default for AudioMapping
impl Default for AudioMapping
source§impl Message for AudioMapping
impl Message for AudioMapping
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for AudioMapping
impl PartialEq for AudioMapping
source§fn eq(&self, other: &AudioMapping) -> bool
fn eq(&self, other: &AudioMapping) -> bool
self
and other
values to be equal, and is used
by ==
.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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request