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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -