Closed syslogic closed 5 years ago
after some review, I've also noticed that this part of wav_priv.h
also is problematic:
#if defined(__i386__) || defined(_M_I86) || defined(_X86_) || defined(__amd64__) || defined(__x86_64__) || defined(_M_X64)
#define WAVE_ENDIAN_LITTLE
#endif
#ifdef WAVE_ENDIAN_LITTLE
#define WAVE_RIFF_CHUNK_ID 'FFIR'
#define WAVE_FORMAT_CHUNK_ID ' tmf'
#define WAVE_FACT_CHUNK_ID 'tcaf'
#define WAVE_DATA_CHUNK_ID 'atad'
#define WAVE_WAVE_ID 'EVAW'
#endif
#ifdef WAVE_ENDIAN_BIG
#define WAVE_RIFF_CHUNK_ID 'RIFF'
#define WAVE_FORMAT_CHUNK_ID 'fmt '
#define WAVE_FACT_CHUNK_ID 'fact'
#define WAVE_DATA_CHUNK_ID 'data'
#define WAVE_WAVE_ID 'WAVE'
#endif
if checking for Mac and else
defaulting to WAVE_ENDIAN_LITTLE
would permit easier cross-building.
I will look into the issue these days.
For the 1st issue, you need to add the proper include path in your IDE. For the 2nd issue, I have updated code. Please checkout the newest commit.
When I generate build-files and build in the shell, it seems to build fine - but in the IDE (with the same settings), it fails. I'm not certain if this isn't due to the manually supplied header files there.