Chapter 8: Building an Application with the Concertina Framework


Overview

The Concertina framework is a header file that combines the functionality of the audio samples that you have seen, and presents it all in an SDK format. So if you accept the design decisions that we have made in designing this framework, you need do no more than include the headers and sources in your project, amend the tables of wave files to match those that you require, and you re ready to go. Of course, you will probably want to tailor the code to suit your particular application, but as a framework that wraps all the complexity of DirectSound and presents the programmer with a powerful, flexible, and obvious set of calls, it s not bad.

The purpose of the Concertina framework is to provide the kind of layer that simply involves calls to methods whose names and functions match the movement of objects around a 3-D world, or the playing of background music or ambient sounds.

The Concertina.exe program is a small sample showing how to call into the framework (see Figure 8.1). It only has Play Game, Stop Game and Exit buttons , with text telling you what is going on in our mock 3-D world. Run this program now, which is located in the AVBook\bin directory.

click to expand
Figure 8.1: Concertina framework test dialog box.

This chapter describes the design philosophy behind the framework, how to initialize it for your own project, and finally, all the methods that it implements.




Fundamentals of Audio and Video Programming for Games
Fundamentals of Audio and Video Programming for Games (Pro-Developer)
ISBN: 073561945X
EAN: 2147483647
Year: 2003
Pages: 120

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net