complete environment

This commit is contained in:
philippe44
2019-05-21 19:20:22 -07:00
parent d118b4ac36
commit 355a87a9f1
16 changed files with 8607 additions and 5 deletions

View File

@@ -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

View File

@@ -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);