Struct ggez::audio::SoundData
[−]
[src]
pub struct SoundData(_);
Static sound data stored in memory. It is Arc'ed, so cheap to clone.
Methods
impl SoundData
[src]
pub fn new<P: AsRef<Path>>(context: &mut Context, path: P) -> GameResult<Self>
[src]
Create a new SoundData from the file at the given path.
pub fn from_bytes(data: &[u8]) -> Self
[src]
Copies the data in the given slice into a new SoundData object.
pub fn from_read<R>(reader: &mut R) -> GameResult<Self> where
R: Read,
[src]
R: Read,
Creates a SoundData from any Read object; this involves copying it into a buffer.
Trait Implementations
impl Clone for SoundData
[src]
fn clone(&self) -> SoundData
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for SoundData
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more