How can I play a MIDI file in my game using the win32 API?

  • Thread starter Thread starter finchie_88
  • Start date Start date
  • Tags Tags
    Game Sound
AI Thread Summary
To play a MIDI file in a game using the Win32 API, leveraging DirectX is recommended due to the complexities involved in handling MIDI directly through the API. The user has successfully resolved several glitches in their game but is seeking guidance specifically on MIDI playback. While they are familiar with playing WAV files, they are struggling to find the necessary information for MIDI. DirectX provides more straightforward methods for audio playback, making it a more viable option for this task. Utilizing DirectX will simplify the implementation of MIDI functionality in the game.
finchie_88
Ok, well, I've solved a few glitches that were present in my game, although, there is one other things I need help on. (working on windows, compiler:dev-C++, using win32 API).

1. How do I get my program to play a midi. I know how to play a wav file, but can't find the right info on this.
 
Technology news on Phys.org
Look into DirectX.
Doing it with just the API is going to be very difficult.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
Back
Top