All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.4.0 - 2023-13-07
ArrayLength
andAsArray
traits. You should really only useAsArray
.
AudioOutput<N, F>
toAudioOutput<F>
add_audio_source
andplay_queued_audio
removed itsconst N: usize
generic.frame_n
requiresAsArray
as a bound instead ofFromFrame
andconst N: usize
.
Mono
andStereo
. Use[f32; 1]
and[f32; 2]
, respectively.FromFrame
. Use theAsArray
trait for custom frames.
0.3.0 - 2022-11-13
- New spatial audio feature:
- Two versions: spatial audio and spatial buffered audio.
SpatialAudioOutput
,SpatialAudioSink
,SpatialAudioSinks
, andplay_queued_spatial_audio
are added for spatial audio.SpatialBufferedAudioOutput
,SpatialBufferedAudioSink
,SpatialBufferedAudioSinks
, andplay_queued_spatial_buffered_audio
are added for spatial buffered audio.Audio
now hasplay_spatial
andplay_spatial_buffered
methods.AudioApp
now has aadd_spatial_audio_source
andadd_spatial_buffered_audio_source
methods implemented forApp
.
- Changed the
ToSignal::Signal
type ofAudioSource
toGain<Speed<FramesSignal<F>>>
0.2.0 - 2022-09-04
- A bunch of newtypes frames that implement
TypeUuid
andFrame
:Mono
, for mono output.Stereo
for stereo output.
FromFrame
trait- Has a
from_frame
method, which converts predefinedoddio::Frame
to the newtypes.
- Has a
- A bunch of builtin
oddio
typesConstant
Cycle
Stream
Gain
example, which showcases controlling signals.
Audio::play
now only returnsHandle<AudioSink<Source>>
.AudioApp::add_audio_source
now requires aconst N: usize
andF
generics.N
is the number of channels.F
is a type that implementsoddio::Frame
andFromFrame<[Sample; N]>
.F
can be implied.
play_queued_audio
now requires aconst N: usize
andF
generics, similar to previous.Audio
requiresF
generic that implementsoddio::Frame
.AudioSource
requiresF
generic that implementsoddio::Frame
.AudioSource
now acceptsArc<Frames<F>>
instead ofArc<Frames<Stereo>>
.AudioSource::Signal
now returnsFramesSignal<F>
.
AudioOutput
requiresconst N: usize
andF: Frame + FromFrame<[Sample; N]>
generics.- Type alias for
Stereo
is now a newtype struct. AudioSink
now derefs toManuallyDrop<Handle<Stop<<Source as ToSignal>::Signal>>>
.- There is now no
SplitSignal
in betweenStop
andSource
.
- There is now no
AudioHandle
. UseAudioSink
to control the playing audio.AudioHandles
. UseAudioSinks
.SpatialScene
settings.
0.1.0 - 2022-07-01
- Released
bevy_oddio
0.1 🎉