Struct sdl2_mixer::Chunk
[−]
[src]
pub struct Chunk { pub raw: *const Mix_Chunk, pub owned: bool, }
The internal format for an audio chunk.
Fields
raw: *const Mix_Chunk
owned: bool
Methods
impl Chunk
[src]
fn from_file(path: &Path) -> SdlResult<Chunk>
Load file for use as a sample.
fn set_volume(&mut self, volume: isize) -> isize
Set chunk->volume to volume.
fn get_volume(&self) -> isize
current volume for the chunk.
Trait Implementations
impl PartialEq for Chunk
[src]
fn eq(&self, __arg_0: &Chunk) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Chunk) -> bool
This method tests for !=
.