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 memoryStreamingSoundData
, 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§
- A portion of audio.
Enums§
- The ending time of a region of audio.
- Errors that can occur when loading or streaming an audio file.
- A point in time in a piece of audio.
- How quickly a sound is played.
- The playback state of a sound.
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.