pub fn queue_audio(&self, data: &[u8]) -> Result<(), String> {
    assert!(data.len() < core::u32::MAX as usize);
    let ptr = data.as_ptr() as *const c_void;
    let len = data.len() as u32;
    let err = unsafe { SDL_QueueAudio(self.dev, ptr, len) };
    if err == 0 {
      Ok(())
    } else {
      Err(get_error())
    }
  }
/// Pushes audio data into the queue.
///
/// The size of the queue has no particular limit, but you can't queue more
/// than `u32::MAX` bytes at once.
Pushes audio data into the queue.
The size of the queue has no particular limit, but you can't queue more
than `u32::MAX` bytes at once.
Pushes audio data into the queue . The size of the queue has no particular limit but you can ' t queue more than ` u32 :: MAX ` bytes at once .
pub fn queue_audio(&self, data: &[u8]) -> Result<(), String> {
    assert!(data.len() < core::u32::MAX as usize);
    let ptr = data.as_ptr() as *const c_void;
    let len = data.len() as u32;
    let err = unsafe { SDL_QueueAudio(self.dev, ptr, len) };
    if err == 0 {
      Ok(())
    } else {
      Err(get_error())
    }
  }
pub fn queue_audio ( & self , data : & [ u8 ] ) -> Result < ( ) , String > { assert ! ( data len ( ) core u32 MAX as usize ) ; let ptr = data . as_ptr ( ) as * const c_void ; let len = data . len ( ) as u32 ; let err = unsafe { SDL_QueueAudio ( self . dev , ptr , len ) } ; if err == 0 { Ok ( ( ) ) } else { Err ( get_error ( ) ) } }
Pushes audio data into the queue.
Pushes audio data into the queue .
&self
data
&[u8]
&self
data
&[u8]