O'Reilly logo

Audio Programming for Interactive Games by Martin D. Wilde

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required