There is a problem with the bgm of the app in the background playing in certain situations. If this is a bug, quick action is needed.
FlameAudio.bgm.initialize();
FlameAudio.bgm.play('adventure-track.mp3');
BGM in the background should not be played.
Specific situations found to be reproducible
SM-N960N, in Android 10 environment
[√] Flutter (Channel master, 3.14.0-14.0.pre.309, on Microsoft Windows [Version 10.0.19045.3693], locale ko-KR)
• Flutter version 3.14.0-14.0.pre.309 on channel master at C:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 0b540a87f1 (3 months ago), 2023-09-15 13:39:30 +0900
• Engine revision 45bc4307cd
• Dart version 3.2.0 (build 3.2.0-162.0.dev)
• DevTools version 2.28.0-dev.0
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at C:\Users\AppData\Local\Android\sdk
• Platform android-33, build-tools 33.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.3.6)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.3.32929.385
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2022.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• android-studio-dir = C:\Program Files\Android\Android Studio
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
[√] VS Code, 64-bit edition (version 1.84.2)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.78.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.3693]
• Chrome (web) • chrome • web-javascript • Google Chrome 119.0.6045.200
• Edge (web) • edge • web-javascript • Microsoft Edge 119.0.2151.97
[√] Network resources
• All expected network resources are available.
• No issues found!
Currently, BGM development is halted due to this issue. Wouldn't this problem occur if I play with normal play instead of bgm? The complexity of implementation increases.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too