Merge branch 'development' into teleinfo

This commit is contained in:
Charles 2020-08-16 10:30:45 +02:00 committed by GitHub
commit ed08c29ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
568 changed files with 252 additions and 63 deletions

View File

@ -25,6 +25,7 @@
#ifdef ESP32
#include <HTTPClient.h>
#else
#include <WiFiClient.h>
#include <ESP8266HTTPClient.h>
#endif
#include "AudioFileSource.h"
@ -63,4 +64,3 @@ class AudioFileSourceHTTPStream : public AudioFileSource
#endif

View File

@ -47,4 +47,3 @@ class AudioFileSourceICYStream : public AudioFileSourceHTTPStream
#endif

View File

@ -22,6 +22,10 @@
#define _AUDIOFILESOURCESD_H
#include "AudioFileSource.h"
#ifdef ESP8266
#include <SdFat.h>
#include <SDFS.h>
#endif
#include <SD.h>
@ -46,4 +50,3 @@ class AudioFileSourceSD : public AudioFileSource
#endif

View File

@ -272,6 +272,8 @@ bool AudioGeneratorMP3::begin(AudioFileSource *source, AudioOutput *output)
stream = NULL;
frame = NULL;
synth = NULL;
uint32_t size = buffLen + sizeof(struct mad_stream) + sizeof(struct mad_frame) + sizeof(struct mad_synth);
audioLogger->printf_P("OOM error in MP3: Want %d bytes\n", size);
return false;
}
}
@ -349,4 +351,3 @@ extern "C" {
}
#endif
}

Some files were not shown because too many files have changed in this diff Show More