Struct cubeb_backend::StreamParamsRef
source · pub struct StreamParamsRef(_);Implementations§
source§impl StreamParamsRef
impl StreamParamsRef
pub unsafe fn from_ptr<'a>(ptr: *mut cubeb_stream_params) -> &'a StreamParamsRef
pub unsafe fn from_ptr_mut<'a>(
ptr: *mut cubeb_stream_params
) -> &'a mut StreamParamsRef
pub fn as_ptr(&self) -> *mut cubeb_stream_params
source§impl StreamParamsRef
impl StreamParamsRef
pub fn format(&self) -> SampleFormat
pub fn rate(&self) -> u32
pub fn channels(&self) -> u32
pub fn layout(&self) -> ChannelLayout
pub fn prefs(&self) -> StreamPrefs
Trait Implementations§
source§impl AsRef<StreamParamsRef> for StreamParams
impl AsRef<StreamParamsRef> for StreamParams
source§fn as_ref(&self) -> &StreamParamsRef
fn as_ref(&self) -> &StreamParamsRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<StreamParamsRef> for StreamParams
impl Borrow<StreamParamsRef> for StreamParams
source§fn borrow(&self) -> &StreamParamsRef
fn borrow(&self) -> &StreamParamsRef
Immutably borrows from an owned value. Read more