File ofile(file);
FileOutputStream* outputTo = ofile.createOutputStream();
WavAudioFormat* format = new WavAudioFormat();
AudioFormatWriter* writer = format->createWriterFor(outputTo, fs, 1, nbits, NULL, 0);
wave->writeToAudioWriter(writer,0,wave->getNumSamples());
delete writer;
I get a very strange (and frustrating) error at the end of the first block (writeToAudioWriter) when it hits line 667 of juce_AudioSampleBuffer.cpp
if (writer->isFloatingPoint())
Access violation reading location 0x00000018.
Its gotta be something stupid but I can’t find it. Anybody can give me a hint? Thanks!