#[repr(C)]pub struct SDL_AudioDeviceEvent {
pub type_: SDL_EventType,
pub timestamp: u32,
pub which: u32,
pub iscapture: u8,
pub padding1: u8,
pub padding2: u8,
pub padding3: u8,
}Expand description
Audio device event structure (event.adevice.*)
Fields§
§type_: SDL_EventTypeShould always be SDL_AUDIODEVICEADDED or
SDL_AUDIODEVICEREMOVED
timestamp: u32In milliseconds, populated using SDL_GetTicks.
which: u32The audio device index for the ADDED event (valid until next
SDL_GetNumAudioDevices call), or SDL_AudioDeviceID for the
REMOVED event.
iscapture: u8zero if an output device, non-zero if a capture device.
padding1: u8§padding2: u8§padding3: u8Trait Implementations§
Source§impl Clone for SDL_AudioDeviceEvent
impl Clone for SDL_AudioDeviceEvent
Source§fn clone(&self) -> SDL_AudioDeviceEvent
fn clone(&self) -> SDL_AudioDeviceEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_AudioDeviceEvent
impl Debug for SDL_AudioDeviceEvent
Source§impl Default for SDL_AudioDeviceEvent
impl Default for SDL_AudioDeviceEvent
Source§fn default() -> SDL_AudioDeviceEvent
fn default() -> SDL_AudioDeviceEvent
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_AudioDeviceEvent
impl Hash for SDL_AudioDeviceEvent
Source§impl Ord for SDL_AudioDeviceEvent
impl Ord for SDL_AudioDeviceEvent
Source§fn cmp(&self, other: &SDL_AudioDeviceEvent) -> Ordering
fn cmp(&self, other: &SDL_AudioDeviceEvent) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SDL_AudioDeviceEvent
impl PartialEq for SDL_AudioDeviceEvent
Source§fn eq(&self, other: &SDL_AudioDeviceEvent) -> bool
fn eq(&self, other: &SDL_AudioDeviceEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SDL_AudioDeviceEvent
impl PartialOrd for SDL_AudioDeviceEvent
impl Copy for SDL_AudioDeviceEvent
impl Eq for SDL_AudioDeviceEvent
impl StructuralPartialEq for SDL_AudioDeviceEvent
Auto Trait Implementations§
impl Freeze for SDL_AudioDeviceEvent
impl RefUnwindSafe for SDL_AudioDeviceEvent
impl Send for SDL_AudioDeviceEvent
impl Sync for SDL_AudioDeviceEvent
impl Unpin for SDL_AudioDeviceEvent
impl UnsafeUnpin for SDL_AudioDeviceEvent
impl UnwindSafe for SDL_AudioDeviceEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more