Struct rtaudio::DeviceParams
source · pub struct DeviceParams {
pub device_id: DeviceID,
pub num_channels: u32,
pub first_channel: u32,
}
Expand description
Used for specifying the parameters of a device when opening a stream.
Fields§
§device_id: DeviceID
The ID (not index) of the device to use.
num_channels: u32
The number of channels in the device to use.
first_channel: u32
The first channel index on the device (default = 0) to use.
Implementations§
source§impl DeviceParams
impl DeviceParams
pub fn to_raw(&self) -> rtaudio_stream_parameters_t
Trait Implementations§
source§impl Clone for DeviceParams
impl Clone for DeviceParams
source§fn clone(&self) -> DeviceParams
fn clone(&self) -> DeviceParams
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 DeviceParams
impl Debug for DeviceParams
source§impl Default for DeviceParams
impl Default for DeviceParams
source§impl PartialEq for DeviceParams
impl PartialEq for DeviceParams
source§fn eq(&self, other: &DeviceParams) -> bool
fn eq(&self, other: &DeviceParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DeviceParams
impl StructuralPartialEq for DeviceParams
Auto Trait Implementations§
impl RefUnwindSafe for DeviceParams
impl Send for DeviceParams
impl Sync for DeviceParams
impl Unpin for DeviceParams
impl UnwindSafe for DeviceParams
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