Closed juanvenado84 closed 9 years ago
extraData->sampleRate is double, but we have to write a uint instead.
Suggested fix is to change this: fwrite(&(extraData->sampleRate), sizeof(unsigned int), 1, extraData->fileHandle)
fwrite(&(extraData->sampleRate), sizeof(unsigned int), 1, extraData->fileHandle)
Into that: unsigned int sampleRateAsUint = (unsigned int)extraData->sampleRate; fwrite(&(sampleRateAsUint), sizeof(unsigned int), 1, extraData->fileHandle)
unsigned int sampleRateAsUint = (unsigned int)extraData->sampleRate;
fwrite(&(sampleRateAsUint), sizeof(unsigned int), 1, extraData->fileHandle)
I submitted a pull request with a fix
Fixed with pull request 210
extraData->sampleRate is double, but we have to write a uint instead.
Suggested fix is to change this:
fwrite(&(extraData->sampleRate), sizeof(unsigned int), 1, extraData->fileHandle)
Into that:
unsigned int sampleRateAsUint = (unsigned int)extraData->sampleRate;
fwrite(&(sampleRateAsUint), sizeof(unsigned int), 1, extraData->fileHandle)