pub struct AudioNode {
pub name: String,
pub description: String,
pub volume_percent: u32,
pub volumes: Vec<u32>,
pub channels: Vec<AudioChannel>,
pub muted: bool,
}Expand description
A sink or a source: where sound goes out, such as speakers, or comes in, such as a microphone.
Fields§
§name: StringIts name on the server, which the setters take.
description: StringWhat a person calls it, such as Built-in Audio Analog Stereo.
volume_percent: u32The average of its channels’ volumes, as Sink’s.
volumes: Vec<u32>Each channel’s volume, rounded as volume_percent is, in the order
of channels.
channels: Vec<AudioChannel>Where each channel plays, such as AudioChannel::FrontLeft. As
long as volumes.
muted: boolWhether it is muted.
Trait Implementations§
impl Eq for AudioNode
impl StructuralPartialEq for AudioNode
Auto Trait Implementations§
impl Forget for AudioNode
impl Freeze for AudioNode
impl Move for AudioNode
impl RefUnwindSafe for AudioNode
impl Send for AudioNode
impl Sync for AudioNode
impl Unpin for AudioNode
impl UnsafeUnpin for AudioNode
impl UnwindSafe for AudioNode
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