ryanheise / just_audio

Audio Player
1.05k stars 675 forks source link

Equalizer parameters are not restored after stop #486

Closed ryanheise closed 3 years ago

ryanheise commented 3 years ago

Which API doesn't behave as documented, and how does it misbehave?

AndroidEqualizer.parameters stops working after the player is stopped and resumed.

Minimal reproduction project

The example.

To Reproduce (i.e. user steps, not code) Steps to reproduce the behavior:

  1. Run example/lib/example_effects.dart
  2. Press play
  3. Enable the equalizer
  4. Adjust the bands
  5. Stop the player by moving the app into the background
  6. Bring the app back to the foreground
  7. Press play

Now the equalizer just sounds like the default settings. The bands set earlier are forgotten.

Error messages

There is no error.

Expected behavior

After the user resumes playback, the equalizer should sound the same as it did before stopping.

Screenshots

None.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Flutter SDK version

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on Linux, locale en_AU.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/linux#android-setup for more details.
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] Connected device (4 available)

Additional context

It will re-establish the connection if you drag the band sliders.

ryanheise commented 3 years ago

Fixed in 0.9.8.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with just_audio.