[Tuxnes-devel] Sound Core
Brought to you by:
tmmm
From: Paul Z. <pe...@tr...> - 2004-05-14 04:33:14
|
Hello, I wrote the sound core about three years ago while I was still in college. Though it works it's really a horrible unmaintainable mess. Is there a desire for the code to be cleaner? I was thinking about pulling the different channels into data structures and functions to isolate each channel's sound generation (for a tight loop per channel). Then I'd make a final pass to mix and convert the output to the supported format and send it to the output device. It will mean more code size but the CPU should be able to cache a few tight loops better than the current monolithic monster. Just wanted some input before I devoted any time to it. Thanks, Paul |