Struct amethyst_audio::output::Output[][src]

pub struct Output { /* fields omitted */ }

A speaker(s) through which audio can be played.

By convention, the default output is stored as a resource in the World.

Methods

impl Output
[src]

Gets the name of the output

Play a sound once. A volume of 1.0 is unchanged, while 0.0 is silent.

This will return an Error if the loaded audio file in source could not be decoded.

Play a sound once. A volume of 1.0 is unchanged, while 0.0 is silent.

This may silently fail, in order to get error information use try_play_once.

Play a sound n times. A volume of 1.0 is unchanged, while 0.0 is silent.

This may silently fail, in order to get error information use try_play_n_times.

Play a sound n times. A volume of 1.0 is unchanged, while 0.0 is silent.

This will return an Error if the loaded audio file in source could not be decoded.

Trait Implementations

impl Clone for Output
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Output
[src]

impl PartialEq for Output
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Output
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Output

impl Sync for Output