5 Interfacing with MIDI – Interpreter, please!

This chapter details the implementation of another game audio asset – MIDI (the Musical Instrument Digital Interface). The high-level musical services offered via MIDI are discussed, and a robust interpreter for both MIDI input and output streams is presented. Platform-specific operations are again compartmentalized for easy replacing when moving to a different platform.

More on devices

As we discussed in the Chapter 4, the Soundtrack Manager plays a game’s audio content through some platform object we call a device. For example, the output device for digital audio on the PC is the soundcard, accessed through DirectSound. On the Macintosh platform, the digital audio output device is often the built-in ...

Get Audio Programming for Interactive Games now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.