Struct xpcom::interfaces::nsIAudioDeviceInfo
[−]
[src]
#[repr(C)]pub struct nsIAudioDeviceInfo { /* fields omitted */ }
interface nsIAudioDeviceInfo : nsISupports
Methods
impl nsIAudioDeviceInfo
[src]
pub fn coerce<T: nsIAudioDeviceInfoCoerce>(&self) -> &T
[src]
Cast this nsIAudioDeviceInfo
to one of its base interfaces.
impl nsIAudioDeviceInfo
[src]
pub const TYPE_UNKNOWN: i64
TYPE_UNKNOWN: i64 = 0
pub const TYPE_INPUT: i64
TYPE_INPUT: i64 = 1
pub const TYPE_OUTPUT: i64
TYPE_OUTPUT: i64 = 2
pub const STATE_DISABLED: i64
STATE_DISABLED: i64 = 0
pub const STATE_UNPLUGGED: i64
STATE_UNPLUGGED: i64 = 1
pub const STATE_ENABLED: i64
STATE_ENABLED: i64 = 2
pub const PREF_NONE: i64
PREF_NONE: i64 = 0
pub const PREF_MULTIMEDIA: i64
PREF_MULTIMEDIA: i64 = 1
pub const PREF_VOICE: i64
PREF_VOICE: i64 = 2
pub const PREF_NOTIFICATION: i64
PREF_NOTIFICATION: i64 = 4
pub const PREF_ALL: i64
PREF_ALL: i64 = 15
pub const FMT_S16LE: i64
FMT_S16LE: i64 = 16
pub const FMT_S16BE: i64
FMT_S16BE: i64 = 32
pub const FMT_F32LE: i64
FMT_F32LE: i64 = 4096
pub const FMT_F32BE: i64
FMT_F32BE: i64 = 8192
pub unsafe fn GetName(&self, aName: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString name;
pub unsafe fn GetGroupId(&self, aGroupId: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString groupId;
pub unsafe fn GetVendor(&self, aVendor: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString vendor;
pub unsafe fn GetType(&self, aType: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short type;
pub unsafe fn GetState(&self, aState: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short state;
pub unsafe fn GetPreferred(&self, aPreferred: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short preferred;
pub unsafe fn GetSupportedFormat(
&self,
aSupportedFormat: *mut uint16_t
) -> nsresult
[src]
&self,
aSupportedFormat: *mut uint16_t
) -> nsresult
readonly attribute unsigned short supportedFormat;
pub unsafe fn GetDefaultFormat(&self, aDefaultFormat: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short defaultFormat;
pub unsafe fn GetMaxChannels(&self, aMaxChannels: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long maxChannels;
pub unsafe fn GetDefaultRate(&self, aDefaultRate: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long defaultRate;
pub unsafe fn GetMaxRate(&self, aMaxRate: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long maxRate;
pub unsafe fn GetMinRate(&self, aMinRate: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long minRate;
pub unsafe fn GetMaxLatency(&self, aMaxLatency: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long maxLatency;
pub unsafe fn GetMinLatency(&self, aMinLatency: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long minLatency;
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIAudioDeviceInfo
[src]
const IID: nsIID
IID: nsIID = nsID(4273568168, 63692, 17698, [157, 255, 108, 5, 92, 165, 7, 98])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIAudioDeviceInfo
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIAudioDeviceInfo
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.