Skip to content

Releases: erikas-taroza/simple_audio

v2.0.4

07 Jan 12:55
Compare
Choose a tag to compare
  • Fix race condition when setting seek ts when opening a new file.
  • Enable all Cargo features by default

v2.0.3

05 Jan 04:38
Compare
Choose a tag to compare
  • Fix missing symbol error when running on Android

v2.0.2

05 Jan 02:48
Compare
Choose a tag to compare
  • Reset seek ts in decoder when opening new file.
  • Update FRB to 2.7.0.
  • Downgrade resampler dependency that caused unexpected results.
  • Fixed clippy suggestions.
  • Fix iOS build

v2.0.1

16 Jul 05:01
Compare
Choose a tag to compare
  • Support Gradle 8

v2.0.0

12 Jul 23:22
Compare
Choose a tag to compare

Main changes:

  • Removed media controllers
    • Please check the example project to see how you can implement media controllers using other packages
  • Decoupled Rust code from FlutterRustBridge.
    • Allows for compatibility with other FlutterRustBridge packages that may have a different version from simple_audio. If you need this functionality, please check how simple_audio_flutter implements a Dart API.
  • API changes

How to migrate to V2 from v1.9.0:

  • SimpleAudio.init() no longer takes any parameters.
  • SimpleAudio() constructor only takes one optional parameter: shouldNormalizeVolume
  • playbackStateStream is renamed to playbackState
  • progressStateStream is renamed to progressState
  • Network errors are now handled by listening to the networkError stream
  • Decode errors are now handled by listening to the decodeError stream
  • ProgressState now represents time via Duration. To get the position in seconds, do state.position.inSeconds
  • seek now takes a Duration. To seek to a given point in seconds, do seek(Duration(seconds: seconds)
  • setMetadata and Metadata are removed. Please use other packages as shown in the example to implement media controllers.

v1.9.0

07 Nov 06:30
Compare
Choose a tag to compare
  • Improved gapless playback
    • The preloaded file is automatically played when the current file is done playing.
    • clearPreload() removes the preloaded file so that it doesn't automatically play.
    • PreloadPlayed playback state which is sent after the preload was automatically played.

v1.8.0

14 Oct 05:40
Compare
Choose a tag to compare

v1.7.0

20 Sep 03:06
Compare
Choose a tag to compare
  • Improved error handling. Custom errors are thrown in open() and preload(). The onNetworkStreamError and onDecodeError callbacks now have a parameter for the error message.
  • Updated flutter_rust_bridge to 1.82.1
  • Removed useless comments in pubspec.yaml

v1.6.6

18 Sep 03:30
Compare
Choose a tag to compare
  • Specify explicit version of flutter_rust_bridge

v1.6.5

12 Sep 03:06
Compare
Choose a tag to compare
  • Increase device buffer size, compare buffer size to default instead of 1