pub struct ChannelTerm {
pub channel: u32,
pub gain: f32,
}Expand description
One channel of a stream and its weight in a row of a ChannelMap.
Fields§
§channel: u32A channel of the stream, by index from 0, below alpha2_media::MAX_AUDIO_CHANNELS.
gain: f32Its weight, at most MAX_CHANNEL_GAIN either way; negative inverts polarity.
Implementations§
Trait Implementations§
Source§impl Clone for ChannelTerm
impl Clone for ChannelTerm
impl Copy for ChannelTerm
Source§impl Debug for ChannelTerm
impl Debug for ChannelTerm
Source§impl<'de> Deserialize<'de> for ChannelTerm
impl<'de> Deserialize<'de> for ChannelTerm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChannelTerm
impl PartialEq for ChannelTerm
Source§impl Serialize for ChannelTerm
impl Serialize for ChannelTerm
impl StructuralPartialEq for ChannelTerm
Auto Trait Implementations§
impl Forget for ChannelTerm
impl Freeze for ChannelTerm
impl Move for ChannelTerm
impl RefUnwindSafe for ChannelTerm
impl Send for ChannelTerm
impl Sync for ChannelTerm
impl Unpin for ChannelTerm
impl UnsafeUnpin for ChannelTerm
impl UnwindSafe for ChannelTerm
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