Releases: BonnyAD9/raplay
Releases · BonnyAD9/raplay
Raplay v0.4.3
Raplay v0.4.2
Fixes
- Fix false errors
NoSourceIsPlayingthat could occur at specific timings.
Raplay v0.4.1
This release is grouped with v0.4.0 because I forgot to add this small but important change to v0.4.0.
v0.4.1
New features
- Add
Sink::try_load.
Changes
Sink::load_prefetchedwill now never drop the prefetched source. It will be
either loaded or will stay as prefetch if it fails.
v0.4.0
New features
- Add debug implementation to majority of structs.
- Add option to get removed callback functions with
Sink::take_callbackand
Sink::take_err_callback. - Reexport cpal errors,
SampleFormat,FromSampleandanyhow::Result. Sinkcan restart device and stream withrestart_deviceand
restart_stream.- Add alias for source as
raplay::Source. - Allow prefetching of sources with
Sink::prefetch. - Allow sending notification when source is about to end with
Sink::prefetch_notify. - Add option to get current sink device with
Sink::get_device. - Add
Sink::get_fade_len,Sink::load_prefetchedand
Sink::do_prefetch_notify.
Breaking changes
- Remove serde as default feature.
- Setters for callback functions now require
Box<dyn FnMut(...) + Send>
instead ofOption<impl FnMut(...) + Send + 'static>. - Setters of callback functions on sink now return the previous callback
functions. Sink::set_fade_lennow returns the previous fade length.Sink::set_devicenow returns the previous device.Sink::loadnow takesBox<dyn Source>instead ofimpl Source + 'static.- Rename
ChannelConverterandRateConvertertoChannelandRate. - Move contents of namespaces in
converters::*directly toconverters. - Rename
SineSourcetoSine. - Rename
SymphOptionstoOptions. - Move contents of
raplay::callbackdirectly toraplay. - Move contents of
raplay::errdirectly toraplay. - Fully move
raplay::sinkdirectly toraplay. - Move
raplay::sample_bufferdirectly toraplay. CallbackInfo::SourceEndednow also has information on prefetch state.- When source ends,
SourceEndedwill be sent only once, than will be sent the
messageNoSource.
Raplay v0.3.5
API Changes
- Make serde an optional, default feature
- Sources can now invoke error callback when they encounter recoverable
errors.
Bugfixes
Symphsource will try to recover from recoverable errors.- Input devices were selected instead of output devices
Raplay v0.3.0
Raplay v0.3.0
New features
- Message when pause ends
- Sink implements Debug
- Get timestamp when seeking
- Add option to seek by
- Option to set buffer size
- Option to get device info
- Option to select output device
Bugfixes
- Fix typo in source trait function name
raplay v0.2.0
Raplay v0.2.0
New features
- Seeking
- Getting cimestamp and source length
- Gapless playback
- Fade-in/fade-out on play/pause
API Changes
- Sink is created with its Default implementation
- Move some names closer to root in namespaces
- Custom error type
- Migrate from eyre to anyhow
raplay v0.1.2
Bug fixes
- some symphonia sources couldn't correctly determine its sample rate and channels
- some files would play only first few frames
raplay v0.1.0
The first release!!!
Features
- Play formats supported by symphonia
- Play sine waves
- Play(Resume)/Pause
- Callback when audio ends
- Callback for errors
- Volume
How to get it
It is available on crates.io