Hi,
I have a very simple (and probably dumb) question.
I’m making an Audio app with a cMake file. I already have a separate part in the program/function to process audio files.
void AudioPlayer::loadURL(URL audioURL)
{
auto* reader = formatManager.createReaderFor(audioURL.createInputStream(false));
if (reader != nullptr) // good file!
{
std::unique_ptr<AudioFormatReaderSource> newSource (new AudioFormatReaderSource (reader,
true));
transportSource.setSource (newSource.get(), 0, nullptr, reader->sampleRate);
readerSource.reset (newSource.release());
}
}
I’m not sure how to access a file that is in BinaryData. I know the non-BinaryData version of “File audioFile (”/path/to/guitar.wav");" but what is the BinaryData way of calling a file like that so it will work with my cMake file. If that makes sense.
Thank you!
