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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.