Struct cubeb_core::StreamParamsRef
[−]
[src]
pub struct StreamParamsRef(_);
Methods
impl StreamParamsRef[src]
pub unsafe fn from_ptr<'a>(ptr: *mut cubeb_stream_params) -> &'a Self[src]
pub unsafe fn from_ptr_mut<'a>(ptr: *mut cubeb_stream_params) -> &'a mut Self[src]
pub fn as_ptr(&self) -> *mut cubeb_stream_params[src]
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]
Trait Implementations
impl Borrow<StreamParamsRef> for StreamParams[src]
fn borrow(&self) -> &StreamParamsRef[src]
Immutably borrows from an owned value. Read more
impl AsRef<StreamParamsRef> for StreamParams[src]
fn as_ref(&self) -> &StreamParamsRef[src]
Performs the conversion.