Hi y’all- I know that this is a super simple problem but I’ve been stuck on it for days and my google searches aren’t helping.
I am currently trying to read a midi file from disk on windows but the read always fails, here’s a boiled down version of my code:
FileInputStream* inputStream = file.createInputStream();
midiFile.readFrom(*inputStream); //fails here
It throws “sourceStream was nullptr”. Also if I check against file.exists() before trying to stream it in file doesn’t exist.
The file I’m trying to read is in my juce project and I took the absolute path from the visual studio properties of the midi file to be sure, I’ve also tried a whole bunch of different locations so I don’t think it’s just me screwing up the path…
Have I made some super obvious error?