Skip to content

Commit

Permalink
fix: soundsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemensElflein committed Nov 12, 2022
1 parent 77d4dfb commit 23ef8b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions Firmware/LowLevel/include/soundsystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@

#define BUFFERSIZE 100

#define NR_SOUNDFILES 15 // Number of Soundfiles on SD-card



class MP3Sound
{
Expand All @@ -45,7 +42,7 @@ class MP3Sound

MP3Sound();

bool begin(int anzsoundsOnSD); // init serial stream and soundmodule, anzsoundOnSD : maximum number of available soundfiles on the SD-card
bool begin(); // init serial stream and soundmodule, anzsoundOnSD : maximum number of available soundfiles on the SD-card

void playSound(int soundNr); // play soundfile number. This method writes soundfile nr in a list, the method processSounds() (has to run in loop) will play
// the sounds according to the list
Expand Down
4 changes: 1 addition & 3 deletions Firmware/LowLevel/src/soundsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ void MP3Sound::playSoundAdHoc(int soundNr)
{
if(soundNr > anzSoundfiles) return;

myMP3.play(soundNr);
delay(1000);

myMP3.play(soundNr);
}


Expand Down

0 comments on commit 23ef8b2

Please sign in to comment.