Expand description
Provides types and plugins for audio playback.
Modules
Structs
- Loads files as
AudioSource
Assets
- Adds support for audio playback to a Bevy Application
- Used to control audio during playback.
- A source of audio data
- Bundle for playing a sound.
- Use this
Resource
to control the global volume of all audio with aVolume::Relative
volume. - A source of sine wave sound
- Initial settings to be used when audio starts playing. If you would like to control the audio while it is playing, query for the
AudioSink
orSpatialAudioSink
components. Changes to this component will not be applied to already-playing audio. - Used to control spatial audio during playback.
- Bundle for playing a sound with a 3D position.
- Settings for playing spatial audio.
- A volume level equivalent to a non-negative float.
Enums
- The way Bevy manages the sound playback.
- Defines the volume to play an audio source at.
Traits
- Common interactions with an audio sink.
- A trait for working generically across different Sample format types.
- A type implementing this trait can be converted to a
rodio::Source
type. It must beSend
andSync
in order to be registered. Types that implement this trait usually contain raw sound data that can be converted into an iterator of samples. This trait is implemented forAudioSource
. Check the exampledecodable
for how to implement this trait on a custom type. - Represents a value of a single sample.
- A source of samples.
Type Definitions
- Bundle for playing a standard bevy audio asset
- Bundle for playing a bevy note sound
- Bundle for playing a standard bevy audio asset with a 3D position
- Bundle for playing a bevy note sound with a 3D position