Struct gate::Audio[][src]

pub struct Audio<A: AppAssetId> { /* fields omitted */ }

Struct for audio playback.

Methods

impl<A: AppAssetId> Audio<A>
[src]

Plays the given sound effect once.

Continually loops the given music, replacing the currently playing music, if any.

Stops the currently playing music, if any.

Auto Trait Implementations

impl<A> !Send for Audio<A>

impl<A> !Sync for Audio<A>