mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 21:17:18 +03:00
complete environment
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
# "main" pseudo-component makefile.
|
||||
#
|
||||
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
|
||||
CFLAGS += -DPOSIX -DLINKALL -DLOOPBACK -DDACAUDIO -DFIXED_POINT -DSMALL_STACK -I$(COMPONENT_PATH)/../libmad -I$(COMPONENT_PATH)/../libflac/include -I$(COMPONENT_PATH)/../faad2/include
|
||||
CFLAGS += -DPOSIX -DLINKALL -DLOOPBACK -DDACAUDIO \
|
||||
-I$(COMPONENT_PATH)/../components/codecs/inc \
|
||||
-I$(COMPONENT_PATH)/../components/codecs/inc/mad \
|
||||
-I$(COMPONENT_PATH)/../components/codecs/inc/faad2
|
||||
LDFLAGS += -s
|
||||
|
||||
|
||||
|
||||
@@ -314,7 +314,7 @@ static int read_mp4_header(unsigned long *samplerate_p, unsigned char *channels_
|
||||
static decode_state faad_decode(void) {
|
||||
size_t bytes_total;
|
||||
size_t bytes_wrap;
|
||||
NeAACDecFrameInfo info;
|
||||
static NeAACDecFrameInfo info;
|
||||
s32_t *iptr;
|
||||
bool endstream;
|
||||
frames_t frames;
|
||||
@@ -400,7 +400,7 @@ static decode_state faad_decode(void) {
|
||||
if (bytes_wrap < WRAPBUF_LEN && bytes_total > WRAPBUF_LEN) {
|
||||
|
||||
// make a local copy of frames which may have wrapped round the end of streambuf
|
||||
u8_t buf[WRAPBUF_LEN];
|
||||
static u8_t buf[WRAPBUF_LEN];
|
||||
memcpy(buf, streambuf->readp, bytes_wrap);
|
||||
memcpy(buf + bytes_wrap, streambuf->buf, WRAPBUF_LEN - bytes_wrap);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user