#[repr(transparent)]pub struct SDL_AudioDeviceID(pub Uint32);Expand description
SDL Audio Device instance IDs.
Zero is used to signify an invalid/null device.
§Availability
This datatype is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
DEFAULT_PLAYBACK | SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK | A value used to request a default playback audio device. Several functions that require an SDL_AudioDeviceID will accept this value to signify the app just wants the system to choose a default device instead of the app providing a specific one. \since This macro is available since SDL 3.2.0. |
DEFAULT_RECORDING | SDL_AUDIO_DEVICE_DEFAULT_RECORDING | A value used to request a default recording audio device. Several functions that require an SDL_AudioDeviceID will accept this value to signify the app just wants the system to choose a default device instead of the app providing a specific one. \since This macro is available since SDL 3.2.0. |
Tuple Fields§
§0: Uint32Implementations§
Source§impl SDL_AudioDeviceID
impl SDL_AudioDeviceID
Sourcepub const DEFAULT_PLAYBACK: Self
pub const DEFAULT_PLAYBACK: Self
A value used to request a default playback audio device.
Several functions that require an SDL_AudioDeviceID will accept this value
to signify the app just wants the system to choose a default device instead
of the app providing a specific one.
§Availability
This macro is available since SDL 3.2.0.
Sourcepub const DEFAULT_RECORDING: Self
pub const DEFAULT_RECORDING: Self
A value used to request a default recording audio device.
Several functions that require an SDL_AudioDeviceID will accept this value
to signify the app just wants the system to choose a default device instead
of the app providing a specific one.
§Availability
This macro is available since SDL 3.2.0.
Trait Implementations§
Source§impl Clone for SDL_AudioDeviceID
impl Clone for SDL_AudioDeviceID
Source§fn clone(&self) -> SDL_AudioDeviceID
fn clone(&self) -> SDL_AudioDeviceID
Returns a duplicate of the value. Read more
1.0.0 · 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_AudioDeviceID
Available on crate feature debug-impls only.
impl Debug for SDL_AudioDeviceID
Available on crate feature
debug-impls only.Source§impl Default for SDL_AudioDeviceID
impl Default for SDL_AudioDeviceID
Source§fn default() -> SDL_AudioDeviceID
fn default() -> SDL_AudioDeviceID
Returns the “default value” for a type. Read more
Source§impl From<SDL_AudioDeviceID> for Uint32
impl From<SDL_AudioDeviceID> for Uint32
Source§fn from(value: SDL_AudioDeviceID) -> Self
fn from(value: SDL_AudioDeviceID) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_AudioDeviceID
Available on crate feature metadata only.
impl GroupMetadata for SDL_AudioDeviceID
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_AudioDeviceID
impl Hash for SDL_AudioDeviceID
Source§impl Ord for SDL_AudioDeviceID
impl Ord for SDL_AudioDeviceID
Source§fn cmp(&self, other: &SDL_AudioDeviceID) -> Ordering
fn cmp(&self, other: &SDL_AudioDeviceID) -> Ordering
1.21.0 · 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<SDL_AudioDeviceID> for Uint32
impl PartialEq<SDL_AudioDeviceID> for Uint32
Source§impl PartialEq<u32> for SDL_AudioDeviceID
impl PartialEq<u32> for SDL_AudioDeviceID
Source§impl PartialEq for SDL_AudioDeviceID
impl PartialEq for SDL_AudioDeviceID
Source§impl PartialOrd for SDL_AudioDeviceID
impl PartialOrd for SDL_AudioDeviceID
impl Copy for SDL_AudioDeviceID
impl Eq for SDL_AudioDeviceID
impl StructuralPartialEq for SDL_AudioDeviceID
Auto Trait Implementations§
impl Freeze for SDL_AudioDeviceID
impl RefUnwindSafe for SDL_AudioDeviceID
impl Send for SDL_AudioDeviceID
impl Sync for SDL_AudioDeviceID
impl Unpin for SDL_AudioDeviceID
impl UnwindSafe for SDL_AudioDeviceID
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