I have the problem to play a MIDI file.
The following is my simple program compiled by VC++.
If I trace the above program, “Unhandled exception in …: Access Violation” message popped up when invoking system->createSound(..).
When I replace a MIDI file with a wave or mp3 file, it works well.
Please let me know what is wrong with my code.
- jangyeon asked 13 years ago
First I unzipped fmodapi40023win.zip file.
Secondly I copied canyon.mid file into fmodapi40023win\examples\media folder.
Then, I opened the fmodapi40023win\examples\playstream\main.cpp file, replaced the line of “result=system->createStream(“../media/wave.mp3”, …) with the line of “result=system->createStream(“../media/canyon.mid”,…), and rebuild it using Win32 Debug CPP configuration.
But it failed to play the canyon.mid and the same error message popped up. The same situation when trying the same thing in playsound example folder.
Please login first to submit.