Step 5


For now, leave the  Concertina.h file alone and declare the Concertina object in your own program.

 CConcertina    Concertina;    // Create one Concertina object. 

Now place the initConcertina and endConcertina calls into your own game s initialization and termination functions.

 bool initConcertina(HWND hDlg); 

The only input parameter is the Windows handle. The initConcertina method basically takes the tables you have previously filled out, and creates a suitable sound environment.

 void endConcertina(bool fPrintReport = false); 

This method cleans up everything. Set the optional parameter to true for a printed report, which will be sent to the file  Concertina Log.txt in the current directory (see Step 12).




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