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:

audioformatreader

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

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -