Struct cubeb::StreamParamsRef
[−]
[src]
pub struct StreamParamsRef(_);
Methods
impl StreamParamsRef
[src]
pub fn format(&self) -> SampleFormat
[src]
pub fn rate(&self) -> u32
[src]
pub fn channels(&self) -> u32
[src]
pub fn layout(&self) -> ChannelLayout
[src]
pub fn prefs(&self) -> StreamPrefs
[src]
impl StreamParamsRef
[src]
pub unsafe fn from_ptr<'a>(ptr: *mut cubeb_stream_params) -> &'a StreamParamsRef
[src]
pub unsafe fn from_ptr_mut<'a>(
ptr: *mut cubeb_stream_params
) -> &'a mut StreamParamsRef
[src]
ptr: *mut cubeb_stream_params
) -> &'a mut StreamParamsRef
pub fn as_ptr(&self) -> *mut cubeb_stream_params
[src]
Trait Implementations
impl AsRef<StreamParamsRef> for StreamParams
[src]
fn as_ref(&self) -> &StreamParamsRef
[src]
Performs the conversion.
impl Borrow<StreamParamsRef> for StreamParams
[src]
fn borrow(&self) -> &StreamParamsRef
[src]
Immutably borrows from an owned value. Read more