Comments (6)
My PR did not actually fix the eventual freeze; I just hadn't waited long enough to find that out.
It still freezes after a while (at which point the entire sketch locks up). My current (not ideal) workaround is to manually call feedBuffer() and do a softReset() every once in a while.
from adafruit_vs1053_library.
Is there any better solution to this yet?
Thanks
Lukas
from adafruit_vs1053_library.
Please give this version a try. Let me know if it solve the freezing problem?
https://github.com/PaulStoffregen/Adafruit_VS1053_Library
Also, you might try with Arduino 1.5.8, which has the newer SPI library with transaction support.....
from adafruit_vs1053_library.
not sure but we've just pulled some lock-tweaks - please reopen if it still happens!
from adafruit_vs1053_library.
Hey, I hate it when OP abandons the thread, but unfortunately I won't be able to confirm the fix in the foreseeable future as I'm busy with other projects. Thanks for working on it though, hopefully the next person to use this will benefit.
from adafruit_vs1053_library.
Just a note that I ran into this problem today using the Adafruit VS1053 Library (v1.2.1) with the Adafruit Feather nRF52840 board and Adafruit MP3 Featherwing.
I built a simple MP3 player that reads all .mp3 filenames from the SD card and plays MP3s with the musicPlayer.startPlayingFile
function. You can navigate next/previous using either Serial commands or buttons. For example, pressing n
in Serial Console would start playing the next song.
Needless to say, startPlayingFile
was intermittently but consistently crashing—sometimes after playing parts of 3 songs, sometimes 10 or 15 but eventually it would happen if you hit "next" enough.
I tried a range of things but eventually landed on calling noInterrupts()
before musicPlayer.stopPlaying()
and then not re-enabling interrupts myself but instead relying on the fact that the musicPlayer.startPlayingFile
function calls interrupts()
itself (and thus re-enables interrupts there).
If you want to see the source code, check it out here: https://github.com/makeabilitylab/arduino/blob/master/PlayingMusic/SimpleMp3Player/SimpleMp3Player.ino
Hope it helps someone.
from adafruit_vs1053_library.
Related Issues (20)
- "Adafruit_VS1053.cpp" problem with "feather_player" exemple HOT 2
- record_ogg example does not support multiple recordings without reset HOT 2
- setVolume ranges? HOT 1
- Travis Build Broken HOT 1
- Error in compilation for Arduino Uno WiFi Rev2 HOT 2
- Compiler error when using a Arduino Nano Every (ATMega4809) HOT 4
- Problem with begin() HOT 1
- how to use the applyPatch() function? HOT 4
- Not really a issue but.. HOT 7
- custom SPI pins not working on ESP32 HOT 29
- Convert to BusIO HOT 1
- Strange error occurs once and again while using Music Maker
- Increase SPI clock? HOT 1
- Please fix sdfat HOT 4
- Does not work on ESP32 HOT 7
- Using SDfat on RP2040 (earlephilhower core) HOT 1
- Issue with Ogg Recording Example on VS1053 Breakout Board
- Playback stops (but not fully) when changing volume too quickly
- Possible Code Modifications for Adafruit_VS1053 Files
- Doesn't work with all memory cards
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_vs1053_library.