adamstark/AudioFile

getAiffSampleRate returns unsigned value. So you can't use -1 to compare.

soundpoint opened this issue · 1 comments

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;

I've fixed this now :)