#[repr(C)]pub struct SDL_AudioSpec {
pub format: SDL_AudioFormat,
pub channels: c_int,
pub freq: c_int,
}Expand description
Fields§
§format: SDL_AudioFormatAudio data format
channels: c_intNumber of channels: 1 mono, 2 stereo, etc
freq: c_intsample rate: sample frames per second
Trait Implementations§
Source§impl Clone for SDL_AudioSpec
impl Clone for SDL_AudioSpec
Source§fn clone(&self) -> SDL_AudioSpec
fn clone(&self) -> SDL_AudioSpec
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_AudioSpec
impl Debug for SDL_AudioSpec
Source§impl Default for SDL_AudioSpec
impl Default for SDL_AudioSpec
Source§fn default() -> SDL_AudioSpec
fn default() -> SDL_AudioSpec
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_AudioSpec
impl Hash for SDL_AudioSpec
Source§impl PartialEq for SDL_AudioSpec
impl PartialEq for SDL_AudioSpec
impl Copy for SDL_AudioSpec
impl Eq for SDL_AudioSpec
impl StructuralPartialEq for SDL_AudioSpec
Auto Trait Implementations§
impl Freeze for SDL_AudioSpec
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§
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