-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: SoLoudFileLoadFailedException (SoLoudFileLoadFailedException: File found, but could not be loaded! Could be a permission error or the file is corrupted. (on the C++ side).) #181
Comments
Hi @Miamlya, at first sight, I see you are calling I think you can safely remove that line or declare it as I see also in the main that you call Feel free to ask if you have any doubts and to close this issue if this helps. |
Thank you for your reply. It is MP3 format. Tried with a few other mp3 files. Same error. WAV files play just fine. Also, I get the same problem with example() method.
|
As the error said, it could be a problem with the mp3. Maybe it is encoded with some non-common format that dr_mp3.h (which is the decoder used by the native SoLoud C++ lib uses) cannot manage. Could you please provide me |
Sure, hover_1.mp3 https://audio.jukehost.co.uk/qwhvubrSN2u3az8eDTOAljfv84UzoT1D |
It seems it is an issue for very short mp3s coming from dr_mp3.h. Unfortunately, I cannot do much about this issue. My suggestion is to convert it to wav with something like |
Hey, Thank youu :) |
Hey Verry, unfortunately I don't have many thoughts. Do users want to open these very short mp3 files for use in your app? I have no experience on iOS, but on Android if you have the media permission you can open all the music files stored in the Music folder. If you are using a file picker it will copy the media to your app sandbox and your app for sure has the permission to open it. As soon as you have some more info, please let me know! |
Description
When I run the app, while initializing sources within my static class, I get this exception using VSCode, Flutter - Windows.
I initialized SoLoud in the main() function and I ran AudioEffects.initialize as showed in the example.
AudioEffects class:
main.dart:
Expected Behavior
Play sound
Screenshots
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: