getAiffSampleRate returns unsigned value. So you can't use -1 to compare.
soundpoint opened this issue · 1 comments
soundpoint commented
sampleRate = getAiffSampleRate (fileData, p + 16);
// check the sample rate was properly decoded
if (sampleRate == -1)
{
std::cout << "ERROR: this AIFF file has an unsupported sample rate" << std::endl;
return false;
adamstark commented
I've fixed this now :)