fix: fixed repeat and gain for small speaker

This commit is contained in:
2021-09-29 09:16:39 +02:00
parent 5a745f5bd7
commit c601835dcb
4 changed files with 8 additions and 2 deletions

View File

@@ -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

View File

@@ -82,7 +82,7 @@ void handleAudio()
if (!mp3->loop())
{
//mp3->stop();
if(n++ > AUDIOREPEATS)
if(n++ >= AUDIOREPEATS)
{
i++;
n= 0;

View File

@@ -7,7 +7,7 @@
#include "AudioFileSourceID3.h"
#include "AudioOutputI2S.h"
#define AUDIOGAIN 0.1
#define AUDIOGAIN 1
#define AUDIONSONGS 3
#define AUDIOREPEATS 3