[][src]Struct fermium::events::SDL_AudioDeviceEvent

#[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,
}

Audio device event structure (event.adevice.*)

Fields

type_: SDL_EventTypetimestamp: u32

In milliseconds, populated using [SDL_GetTicks].

which: u32

The audio device index for the ADDED event (valid until next [SDL_GetNumAudioDevices] call), or [SDL_AudioDeviceID] for the REMOVED event.

iscapture: u8

zero if an output device, non-zero if a capture device.

padding1: u8padding2: u8padding3: u8

Trait Implementations

impl Clone for SDL_AudioDeviceEvent[src]

impl Copy for SDL_AudioDeviceEvent[src]

impl Debug for SDL_AudioDeviceEvent[src]

impl Default for SDL_AudioDeviceEvent[src]

impl Eq for SDL_AudioDeviceEvent[src]

impl Hash for SDL_AudioDeviceEvent[src]

impl Ord for SDL_AudioDeviceEvent[src]

impl PartialEq<SDL_AudioDeviceEvent> for SDL_AudioDeviceEvent[src]

impl PartialOrd<SDL_AudioDeviceEvent> for SDL_AudioDeviceEvent[src]

impl StructuralEq for SDL_AudioDeviceEvent[src]

impl StructuralPartialEq for SDL_AudioDeviceEvent[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, 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.