Re: [Tuxnes-devel] Sound routine abstraction
Brought to you by:
tmmm
|
From: Jim U. <ji...@3e...> - 2001-07-21 20:10:48
|
At 11:05pm on 2001 July 20, I wrote: > It seems like it might be a good idea to abstract the InitAudio() > and UpdateAudio() routines into platform-specific functions, and > call the old InitAudio() etc. functions through an indirect call OK, I did this, and it works well. Also, I have a performance question. In the new progressive architecture, ProgressiveSoundUpdate() is always called no matter if sound is enabled or not. This seems kind of wasteful. It may not have much of an impact, but you can effectively disable the sound calculations by setting samples_per_vsync to 0 (this skips the while loop at the top of Progressive...() ). -- "You can eat if you want to; that's your prerogative... I used to play that game... I know what it's like... But I'm just not interested in it any more... I'm not interested in going out, and working for the money to buy the food, then shopping for it, then going home and preparing it, then eating it, then washing the dishes, then just letting it all out in the toilet... and in the end, you end up in a box, in the ground, on the outside of town." -- breatharian.com ji...@3e... / 0x43340710 / 517B C658 D2CB 260D 3E1F 5ED1 6DB3 FBB9 4334 0710 |