Module bevy_kira_components::sources::audio_file

source ·
Expand description

Audio source implementation for audio files.

This implementation wraps both StaticSound and StreamingSound, to allow for better defaults around streaming like having a size threshold, beyond which the file is kept on disk instead of loaded into memory in its entirety. (note that this is not yet implemented).

Specifying if the asset is streamed or not is part of the loader settings, which can be changed in .meta files, or specified with [AssetServer::load_with_settings].

Modules§

  • Asset loader implementation for the AudioFile type.
  • Implementation of AudioSource for an audio file on disk, loaded either fully in memory, or by streaming the file directly from disk.

Structs§

  • Implementation of an audio source using the Static and Streaming file data from [kira].
  • Settings available to the user when instantiating an audio file.

Enums§

  • Describe how the audio components (and entity) will react to the audio source reaching the end of the file.
  • Enumeration of possible errors when loading an audio file.

Type Aliases§