Any libraries for playing audio on esp32?
Posted: Wed Nov 08, 2017 11:11 pm
I tried the tmrpcm library since it had a key feature: playing multiple concurrent wav files. But it didn't compile with issues related to timers.
C:\Users\Owner\Documents\Arduino\libraries\TMRpcm-master\TMRpcm.cpp:104:31: error: 'TCCR1A' was not declared in this scope
volatile byte *TCCRnA[] = {&TCCR1A};
C:\Users\Owner\Documents\Arduino\libraries\TMRpcm-master\TMRpcm.cpp:105:31: error: 'TCCR1B' was not declared in this scope
volatile byte *TCCRnB[] = {&TCCR1B};
I searched around and so far it looks like the programmer has to write their own use of timers and buffers. I found various posts on this site with some examples. I am looking for something simple
player.play("soundeffectCrash.wav", 30); //start playing at 30seconds
-----------------------
I can use the dfplayer Mini board and library but I'm not sure this will have the flexibility of playing two concurrent files (mono).
This video from pcbreflux shows that it works
https://www.youtube.com/watch?v=kq2RLz65_w0
Any suggestions would be welcome without any extensive programming.
C:\Users\Owner\Documents\Arduino\libraries\TMRpcm-master\TMRpcm.cpp:104:31: error: 'TCCR1A' was not declared in this scope
volatile byte *TCCRnA[] = {&TCCR1A};
C:\Users\Owner\Documents\Arduino\libraries\TMRpcm-master\TMRpcm.cpp:105:31: error: 'TCCR1B' was not declared in this scope
volatile byte *TCCRnB[] = {&TCCR1B};
I searched around and so far it looks like the programmer has to write their own use of timers and buffers. I found various posts on this site with some examples. I am looking for something simple
player.play("soundeffectCrash.wav", 30); //start playing at 30seconds
-----------------------
I can use the dfplayer Mini board and library but I'm not sure this will have the flexibility of playing two concurrent files (mono).
This video from pcbreflux shows that it works
https://www.youtube.com/watch?v=kq2RLz65_w0
Any suggestions would be welcome without any extensive programming.