Skip to content

Releases: BonnyAD9/raplay

Raplay v0.4.3

01 Sep 08:35

Choose a tag to compare

Small bugfix release.

Fixes

  • Fix repeatedly sending SourceEnded when source ends. Now it is sent only
    once and than is repeatedly sent NoSource.

Raplay v0.4.2

06 May 15:14

Choose a tag to compare

Fixes

  • Fix false errors NoSourceIsPlaying that could occur at specific timings.

Raplay v0.4.1

18 Mar 16:22

Choose a tag to compare

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_prefetched will 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_callback and
    Sink::take_err_callback.
  • Reexport cpal errors, SampleFormat, FromSample and anyhow::Result.
  • Sink can restart device and stream with restart_device and
    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_prefetched and
    Sink::do_prefetch_notify.

Breaking changes

  • Remove serde as default feature.
  • Setters for callback functions now require Box<dyn FnMut(...) + Send>
    instead of Option<impl FnMut(...) + Send + 'static>.
  • Setters of callback functions on sink now return the previous callback
    functions.
  • Sink::set_fade_len now returns the previous fade length.
  • Sink::set_device now returns the previous device.
  • Sink::load now takes Box<dyn Source> instead of impl Source + 'static.
  • Rename ChannelConverter and RateConverter to Channel and Rate.
  • Move contents of namespaces in converters::* directly to converters.
  • Rename SineSource to Sine.
  • Rename SymphOptions to Options.
  • Move contents of raplay::callback directly to raplay.
  • Move contents of raplay::err directly to raplay.
  • Fully move raplay::sink directly to raplay.
  • Move raplay::sample_buffer directly to raplay.
  • CallbackInfo::SourceEnded now also has information on prefetch state.
  • When source ends, SourceEnded will be sent only once, than will be sent the
    message NoSource.

Raplay v0.3.5

02 Sep 14:21

Choose a tag to compare

API Changes

  • Make serde an optional, default feature
  • Sources can now invoke error callback when they encounter recoverable
    errors.

Bugfixes

  • Symph source will try to recover from recoverable errors.
  • Input devices were selected instead of output devices

Raplay v0.3.0

21 Sep 15:13

Choose a tag to compare

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

30 Aug 21:09

Choose a tag to compare

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

30 Jul 20:34

Choose a tag to compare

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

30 Jul 18:24

Choose a tag to compare

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