I can currently load and play a midi file with no problems.
I have it loading in all at once so I can get all the data for the whole file using lock/unlock. I then save it as a wav using a fileStream like in the recording example. I then play the resulting wav file and get lots of static and buzzing while the song plays. If I try the same process on a wav or mp3 file, it works just fine. I can record the playing midi file and stream it to a wav by setting my sound card to record "What You Hear" and have FMOD record what is playing. I thought that I could do it a faster way with the entire midi at once. Is there something that FMOD does to the midi while it is playing?
- edilis asked 6 years ago
Are you saying if you don’t call lock/unlock the noise doesnt happen? Are you calling createSound with FMOD_CREATESAMPLE? (or just no flags, as this is the default) to load the sound?
You would probably want FMOD_ACCURATETIME as well so it allocates the right amount of memory.
If there is a noise you may have inadvertently written to the locked pointer?
Please login first to submit.