Module kira::sound

source ·
Expand description

Sources of audio.

Any type that implements SoundData can be played using AudioManager::play. Kira comes with two SoundData implementations:

  • StaticSoundData, which loads an entire chunk of audio into memory
  • StreamingSoundData, which streams audio from a file or cursor (only available on desktop platforms)

These two sound types should cover most use cases, but if you need something else, you can create your own types that implement the SoundData and Sound traits.

Modules§

  • Playable chunks of audio that are loaded into memory all at once.
  • streamingNon-wasm32
    Decodes data gradually from an audio file.

Structs§

Enums§

Traits§

  • A trait for types that can be converted into an Option<Region>.
  • An actively playing sound.
  • A source of audio that is loaded, but not yet playing.