mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-26 04:06:34 +00:00
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
|
#ifdef ESP32
|
||||||
#include <HTTPClient.h>
|
#include <HTTPClient.h>
|
||||||
#else
|
#else
|
||||||
|
#include <WiFiClient.h>
|
||||||
#include <ESP8266HTTPClient.h>
|
#include <ESP8266HTTPClient.h>
|
||||||
#endif
|
#endif
|
||||||
#include "AudioFileSource.h"
|
#include "AudioFileSource.h"
|
||||||
@ -63,4 +64,3 @@ class AudioFileSourceHTTPStream : public AudioFileSource
|
|||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -47,4 +47,3 @@ class AudioFileSourceICYStream : public AudioFileSourceHTTPStream
|
|||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -22,6 +22,10 @@
|
|||||||
#define _AUDIOFILESOURCESD_H
|
#define _AUDIOFILESOURCESD_H
|
||||||
|
|
||||||
#include "AudioFileSource.h"
|
#include "AudioFileSource.h"
|
||||||
|
#ifdef ESP8266
|
||||||
|
#include <SdFat.h>
|
||||||
|
#include <SDFS.h>
|
||||||
|
#endif
|
||||||
#include <SD.h>
|
#include <SD.h>
|
||||||
|
|
||||||
|
|
||||||
@ -46,4 +50,3 @@ class AudioFileSourceSD : public AudioFileSource
|
|||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -272,6 +272,8 @@ bool AudioGeneratorMP3::begin(AudioFileSource *source, AudioOutput *output)
|
|||||||
stream = NULL;
|
stream = NULL;
|
||||||
frame = NULL;
|
frame = NULL;
|
||||||
synth = 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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -349,4 +351,3 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user