Ok for the inttypes I made a new header file (I called it common.h):
#if defined(_WIN32) && defined(_MSC_VER)
typedef __int8 int8_t;
typedef unsigned __int8 uint8_t;
typedef __int16 int16_t;
typedef unsigned __int16 uint16_t;
typedef __int32 int32_t;
typedef unsigned __int32 uint32_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#ifdef _WIN64
typedef __int64 intptr_t;
typedef unsigned __int64 uintptr_t;
#else
typedef __int32 intptr_t;
typedef unsigned __int32 uintptr_t;
#endif
#define inline __inline
#define CONFIG_WIN32
#pragma warning(disable:4267 4244 4305)
#else
#include <inttypes.h>
#include "config.h"
#endif
I made sure I call this header early enough in each *.c file.
I also found a bug which caused the program to crash in release (optimized) mode.
In dsp.c in the function mdct512 the end loop should be
for(i=0; i<256; i++) {
out[i] = coef[i];
}
instead of for(i=0; i<512; i++) {
out[i] = coef[i];
}
As for audio encoding I'm not experienced in it either - but that won't stop me