Struct sdl2_sys::SDL_AudioSpec [−][src]
The calculated values in this structure are calculated by SDL_OpenAudio().
Fields
freq: c_int
< DSP frequency – samples per second
format: SDL_AudioFormat
< Audio data format
channels: Uint8
< Number of channels: 1 mono, 2 stereo
silence: Uint8
< Audio buffer silence value (calculated)
samples: Uint16
< Audio buffer size in sample FRAMES (total samples divided by channel count)
padding: Uint16
< Necessary for some compile environments
size: Uint32
< Audio buffer size in bytes (calculated)
callback: SDL_AudioCallback
< Callback that feeds the audio device (NULL to use SDL_QueueAudio()).
userdata: *mut c_void
< Userdata passed to callback (ignored for NULL callbacks).
Trait Implementations
impl Clone for SDL_AudioSpec
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SDL_AudioSpec
[src]
impl Debug for SDL_AudioSpec
[src]
Auto Trait Implementations
impl RefUnwindSafe for SDL_AudioSpec
impl !Send for SDL_AudioSpec
impl !Sync for SDL_AudioSpec
impl Unpin for SDL_AudioSpec
impl UnwindSafe for SDL_AudioSpec
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,