Struct gate::Audio [] [src]

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

Struct for audio playback.

Methods

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

[src]

Plays the given sound effect once.

[src]

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

[src]

Stops the currently playing music, if any.

Trait Implementations

Auto Trait Implementations

impl<A> !Send for Audio<A>

impl<A> !Sync for Audio<A>