Sorry, this is probably a simple C++ question, but I’m a bit rusty and could use some help. I’ve create a module that uses the “Dr Wav” library. It includes the library like so:
Squicky Labs solution worked. If I remove the #define DR_WAV_IMPLEMENTATION from one of the files, it compiles. @Vortico Andrew, your solution didn’t work for some reason. If I remove…
#define DR_WAV_IMPLEMENTATION
#include "dr_wav.h"
… from both module files and move it to plugin.cpp, I get an error:
src/my_module.cpp:22:2: error: ‘drwav_uint64’ does not name a type
22 | drwav_uint64 total_sample_count;
It sounds like your solution is ideal, so I’m confused on why it might not work.