mirror of https://github.com/arendst/Tasmota.git
Merge branch 'development' into teleinfo
This commit is contained in:
commit
ed08c29ef6
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
@ -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
|
||||
|
|
@ -47,4 +47,3 @@ class AudioFileSourceICYStream : public AudioFileSourceHTTPStream
|
|||
|
||||
|
||||
#endif
|
||||
|
|
@ -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
|
||||
|
|
@ -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
Loading…
Reference in New Issue