Struct amethyst_audio::Source [−][src]
A loaded audio file
Fields
bytes: Vec<u8>
The bytes of this audio source.
Trait Implementations
impl SimpleFormat<Audio> for WavFormat[src]
impl SimpleFormat<Audio> for WavFormatconst NAME: &'static str
NAME: &'static str = "WAV"
A unique identifier for this format.
type Options = ()
Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more
fn import(&self, bytes: Vec<u8>, _: ()) -> Result<AudioData>[src]
fn import(&self, bytes: Vec<u8>, _: ()) -> Result<AudioData>Produces asset data from given bytes.
impl SimpleFormat<Audio> for OggFormat[src]
impl SimpleFormat<Audio> for OggFormatconst NAME: &'static str
NAME: &'static str = "OGG"
A unique identifier for this format.
type Options = ()
Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more
fn import(&self, bytes: Vec<u8>, _: ()) -> Result<AudioData>[src]
fn import(&self, bytes: Vec<u8>, _: ()) -> Result<AudioData>Produces asset data from given bytes.
impl SimpleFormat<Audio> for FlacFormat[src]
impl SimpleFormat<Audio> for FlacFormatconst NAME: &'static str
NAME: &'static str = "FLAC"
A unique identifier for this format.
type Options = ()
Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more
fn import(&self, bytes: Vec<u8>, _: ()) -> Result<AudioData>[src]
fn import(&self, bytes: Vec<u8>, _: ()) -> Result<AudioData>Produces asset data from given bytes.
impl SimpleFormat<Audio> for Mp3Format[src]
impl SimpleFormat<Audio> for Mp3Formatconst NAME: &'static str
NAME: &'static str = "MP3"
A unique identifier for this format.
type Options = ()
Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more
fn import(&self, bytes: Vec<u8>, _: ()) -> Result<AudioData>[src]
fn import(&self, bytes: Vec<u8>, _: ()) -> Result<AudioData>Produces asset data from given bytes.
impl Clone for Source[src]
impl Clone for Sourcefn clone(&self) -> Source[src]
fn clone(&self) -> SourceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl AsRef<[u8]> for Source[src]
impl AsRef<[u8]> for Sourceimpl Asset for Source[src]
impl Asset for Sourceconst NAME: &'static str
NAME: &'static str = "audio::Source"
An identifier for this asset used for debugging.
type Data = AudioData
The Data type the asset can be created from.
type HandleStorage = VecStorage<SourceHandle>
The ECS storage type to be used. You'll want to use VecStorage in most cases.