c++ - Using AudioFormatReader in Juce to load impulse responses -
i creating convolution reverb plugin using juce , having trouble loading in impulse response audio files.
i using audioformatreader class. here code have implemented far producing errors:
std::ifstream irstream; irstream.open("1 halls 01 large hall l.wav"); audioformatreader(juce::inputstream irstream, const juce::string &wavaudioformat);
this attempt @ loading 1 audio file, many.
here link audioformatreader class documentation:
you can use audioformat::createreaderfor (note pure virtual function, , you'll have use 1 if derived types such wavaudioformat) alongside file. example...
file myfile ("myfile.wav"); audioformatreader* myformatreader = wavaudioformat().createreaderfor (myfile.createinputstream(), true);
Comments
Post a Comment