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
Click For Summary
SUMMARY

This discussion focuses on playing MIDI files in a game using the Win32 API and DirectX. The user has successfully resolved several glitches in their game but seeks guidance on MIDI playback. They have experience with WAV file playback but find the information on MIDI integration lacking. The consensus is that utilizing DirectX is recommended for easier implementation compared to using the Win32 API alone.

PREREQUISITES
  • Understanding of Win32 API programming
  • Familiarity with DirectX for multimedia applications
  • Knowledge of MIDI file formats and playback mechanisms
  • Experience with C++ programming in a Windows environment
NEXT STEPS
  • Research DirectX MIDI playback techniques
  • Explore the DirectMusic API for advanced MIDI handling
  • Learn about MIDI file structure and parsing
  • Investigate alternative libraries for MIDI playback in C++
USEFUL FOR

Game developers, particularly those working with C++ and the Win32 API, who need to implement MIDI file playback in their applications.

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.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
1K
Replies
13
Views
6K
Replies
81
Views
8K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
14
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 18 ·
Replies
18
Views
2K