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.