Step 13


Play the game and examine the report. If you set the fPrintReport flag to true in the endConcertina method, it will produce a report in a file called  Concertina Log.txt (written to the current directory).

The output of the file will look like the following example from a successful run of Concertina.exe.

 Concertina Log file            =====================            Wave file     Fixed Area  Overflow Area  Rejected  -------------------------------------------------------------           Prop.wav          1             0         0            TurboProp.wav     1             0         0            Rain.wav          1             0         0            Thunder.wav       0             1         0 - overflow area only 

This will tell you how often an attempt to get a sound ID for the wave file succeeded from the fixed area, how often the request was sent to the overflow area, and finally, how often an attempt to get the ID failed. Failure can be when all the fixed and overflow buffers are full. You might want to increase or decrease the number of fixed buffers for a wave file, depending on the results. No overflow indicates that you might want to reduce the number of buffers, while some rejected plays along with a high number of normal and overflow plays indicates you might consider increasing the number of fixed buffers. If all plays are rejected, then probably something else is wrong, such as the file could not be found, or was in the wrong format (in these cases an error will follow the entry for that wave file in the log).

The number of fixed buffers is specified in the bestGuessAudio structure.




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