[][src]Struct miniaudio_sys::ma_device

#[repr(C)]pub struct ma_device {
    pub pContext: *mut ma_context,
    pub type_: ma_device_type,
    pub sampleRate: ma_uint32,
    pub state: ma_uint32,
    pub onData: ma_device_callback_proc,
    pub onStop: ma_stop_proc,
    pub pUserData: *mut c_void,
    pub lock: ma_mutex,
    pub wakeupEvent: ma_event,
    pub startEvent: ma_event,
    pub stopEvent: ma_event,
    pub thread: ma_thread,
    pub workResult: ma_result,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub masterVolumeFactor: f32,
    pub resampling: ma_device__bindgen_ty_1,
    pub playback: ma_device__bindgen_ty_2,
    pub capture: ma_device__bindgen_ty_3,
    pub __bindgen_anon_1: ma_device__bindgen_ty_4,
}

Fields

pContext: *mut ma_contexttype_: ma_device_typesampleRate: ma_uint32state: ma_uint32onData: ma_device_callback_proconStop: ma_stop_procpUserData: *mut c_voidlock: ma_mutexwakeupEvent: ma_eventstartEvent: ma_eventstopEvent: ma_eventthread: ma_threadworkResult: ma_result_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>masterVolumeFactor: f32resampling: ma_device__bindgen_ty_1playback: ma_device__bindgen_ty_2capture: ma_device__bindgen_ty_3__bindgen_anon_1: ma_device__bindgen_ty_4

Methods

impl ma_device[src]

pub fn usingDefaultSampleRate(&self) -> ma_bool32[src]

pub fn set_usingDefaultSampleRate(&mut self, val: ma_bool32)[src]

pub fn usingDefaultBufferSize(&self) -> ma_bool32[src]

pub fn set_usingDefaultBufferSize(&mut self, val: ma_bool32)[src]

pub fn usingDefaultPeriods(&self) -> ma_bool32[src]

pub fn set_usingDefaultPeriods(&mut self, val: ma_bool32)[src]

pub fn isOwnerOfContext(&self) -> ma_bool32[src]

pub fn set_isOwnerOfContext(&mut self, val: ma_bool32)[src]

pub fn noPreZeroedOutputBuffer(&self) -> ma_bool32[src]

pub fn set_noPreZeroedOutputBuffer(&mut self, val: ma_bool32)[src]

pub fn noClip(&self) -> ma_bool32[src]

pub fn set_noClip(&mut self, val: ma_bool32)[src]

pub fn new_bitfield_1(
    usingDefaultSampleRate: ma_bool32,
    usingDefaultBufferSize: ma_bool32,
    usingDefaultPeriods: ma_bool32,
    isOwnerOfContext: ma_bool32,
    noPreZeroedOutputBuffer: ma_bool32,
    noClip: ma_bool32
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for ma_device[src]

impl Copy for ma_device[src]

impl Debug for ma_device[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.