Some weird #define problem
I want to check some data of a waveform extensible file and according to the specifications of this page :
Code:
the SubFormat field must be set to KSDATAFORMAT_SUBTYPE_PCM.
Well that doesnt look to difficult does it ? :)
but a little below it is defined as
Code:
#define STATIC_KSDATAFORMAT_SUBTYPE_PCM\
DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_PCM)
DEFINE_GUIDSTRUCT("00000001-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_PCM);
#define KSDATAFORMAT_SUBTYPE_PCM DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_PCM)
I dont know what this crap means but cant get it to work. I also tried to include the whole file and then i get a zillion errors during the compilation. Does anyone know how i can get KSDATAFORMAT_SUBTYPE_PCM defined?
I am using mingw so that probabely explains the errors of the include file.