Summary


In this chapter, we have demonstrated and described the Circular Streams and Three Streams samples. Unless you have already made an investment in the Windows notifications-based method of streaming (the Three Streams sample) and it is working well for you, then it is highly recommended that you base your work on the polling method (the Circular Streams sample).

In order to get the polling method to work, we needed to define a new class, CCircularSound , which inherits from the CSound class. The TopUpBuffer method of the CCircularSound class is the key to getting streaming to work well.

Many games developers should work with the CCircularSound class to get the best audio performance for their game, because it has the reliability across many different systems that is absent from the Windows notifications method. Although we have not shown an example of applying effects to streaming buffers, they can be applied without any significant difference in performance from applying effects to static buffers.




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