Struct xsynth_core::AudioStreamParams
source · pub struct AudioStreamParams {
pub sample_rate: u32,
pub channels: ChannelCount,
}
Expand description
Parameters of the output audio.
Fields§
§sample_rate: u32
§channels: ChannelCount
Implementations§
source§impl AudioStreamParams
impl AudioStreamParams
pub fn new(sample_rate: u32, channels: ChannelCount) -> Self
Trait Implementations§
source§impl Clone for AudioStreamParams
impl Clone for AudioStreamParams
source§fn clone(&self) -> AudioStreamParams
fn clone(&self) -> AudioStreamParams
Returns a copy 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 AudioStreamParams
impl Debug for AudioStreamParams
impl Copy for AudioStreamParams
Auto Trait Implementations§
impl Freeze for AudioStreamParams
impl RefUnwindSafe for AudioStreamParams
impl Send for AudioStreamParams
impl Sync for AudioStreamParams
impl Unpin for AudioStreamParams
impl UnwindSafe for AudioStreamParams
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)