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 WavFormat
const 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 OggFormat
const 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 FlacFormat
const 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 Mp3Format
const 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 SimpleFormat<Audio> for AudioFormat
[src]
impl SimpleFormat<Audio> for AudioFormat
const NAME: &'static str
NAME: &'static str = "AudioFormat"
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>, options: ()) -> Result<AudioData>
[src]
fn import(&self, bytes: Vec<u8>, options: ()) -> Result<AudioData>
Produces asset data from given bytes.
impl Clone for Source
[src]
impl Clone for Source
fn clone(&self) -> Source
[src]
fn clone(&self) -> Source
Returns 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 Source
impl Asset for Source
[src]
impl Asset for Source
const 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.