fix: fixed repeat and gain for small speaker
This commit is contained in:
1
.gitmodules
vendored
1
.gitmodules
vendored
@@ -9,3 +9,4 @@
|
||||
[submodule "FW/m5stack_audio/lib/RFID.MFRC522"]
|
||||
path = FW/m5stack_audio/lib/RFID.MFRC522
|
||||
url = http://192.168.2.3/Bonobo.Git.Server/RFID.MFRC522.git
|
||||
branch = master
|
||||
|
||||
@@ -44,3 +44,8 @@ libraries scanning project source files.
|
||||
|
||||
More information about PlatformIO Library Dependency Finder
|
||||
- https://docs.platformio.org/page/librarymanager/ldf.html
|
||||
|
||||
|
||||
update submodules force
|
||||
|
||||
$git submodule update --init --force --remote
|
||||
@@ -82,7 +82,7 @@ void handleAudio()
|
||||
if (!mp3->loop())
|
||||
{
|
||||
//mp3->stop();
|
||||
if(n++ > AUDIOREPEATS)
|
||||
if(n++ >= AUDIOREPEATS)
|
||||
{
|
||||
i++;
|
||||
n= 0;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "AudioFileSourceID3.h"
|
||||
#include "AudioOutputI2S.h"
|
||||
|
||||
#define AUDIOGAIN 0.1
|
||||
#define AUDIOGAIN 1
|
||||
#define AUDIONSONGS 3
|
||||
#define AUDIOREPEATS 3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user