Update to remove warnings, fix new 8266 core rev

Remove build warnings and use the faster pgm_read_*_aligned macros to
update to the latest ESP8266 Arduino core.
This commit is contained in:
Earle F. Philhower, III committed 2019-04-12 15:45:34 -07:00
1 parent 2f2898c496
commit 2d8a97767c
10 files changed
+12 -4

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
name=ESP8266Audio
version=1.1.3
version=1.1.4
author=Earle F. Philhower, III
maintainer=Earle F. Philhower, III
sentence=Audio file and I2S sound playing routines.
+1 -1
View File
@@ -162,7 +162,7 @@ void AudioFileSourceBuffer::fill()
int cnt = src->readNonBlock(&buffer[writePtr], bytesAvailEnd);
length += cnt;
writePtr = (writePtr + cnt) % buffSize;
if (cnt != bytesAvailEnd) return;
if (cnt != (int)bytesAvailEnd) return;
}
if (readPtr > 1) {
+1 -1
View File
@@ -37,7 +37,7 @@ AudioFileSourceHTTPStream::AudioFileSourceHTTPStream(const char *url)
bool AudioFileSourceHTTPStream::open(const char *url)
{
pos = 0;
http.begin(url);
http.begin(client, url);
http.setReuse(true);
int code = http.GET();
if (code != HTTP_CODE_OK) {
+1
View File
@@ -52,6 +52,7 @@ class AudioFileSourceHTTPStream : public AudioFileSource
private:
virtual uint32_t readInternal(void *data, uint32_t len, bool nonBlock);
WiFiClient client;
HTTPClient http;
int pos;
int size;
+1 -1
View File
@@ -38,7 +38,7 @@ bool AudioFileSourceICYStream::open(const char *url)
{
static const char *hdr[] = { "icy-metaint" };
pos = 0;
http.begin(url);
http.begin(client, url);
http.addHeader("Icy-MetaData", "1");
http.collectHeaders( hdr, 1 );
http.setReuse(true);
+1
View File
@@ -17,6 +17,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define PGM_READ_UNALIGNED 0
#include "AudioGeneratorMOD.h"
+2
View File
@@ -1,3 +1,5 @@
#define PGM_READ_UNALIGNED 0
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
+1
View File
@@ -33,6 +33,7 @@
//#ifdef HAVE_CONFIG_H
# include "config.h"
//#endif
#define PGM_READ_UNALIGNED 0
#include <Arduino.h>
#include <pgmspace.h>
+2
View File
@@ -33,6 +33,8 @@
#ifndef FLAC__PRIVATE__CRC_H
#define FLAC__PRIVATE__CRC_H
#define PGM_READ_UNALIGNED 0
#include <pgmspace.h>
#include "../FLAC/ordinals.h"
+1
View File
@@ -42,6 +42,7 @@
**************************************************************************************/
#include "coder.h"
#define PGM_READ_UNALIGNED 0 // Only support aligned reads, faster
#include <pgmspace.h>
/* helper macros - see comments in hufftabs.c about the format of the huffman tables */