I'm working on an app that will require very tight timing requirements for processing audio (using the FMOD library). In this, I need to check audio status (via FFT) every ~20 ms.
From what I've seen I'd like to use GAPIDraw to do the graphics. In tinkering with the GDIDemo, I've been able to add my audio routines which seem to function ok EXCEPT they are been called unpredictably. I am assuming that's because I really need two threads - one for the GAPIDraw graphics, and one to process audio.
I'm looking for advice (or a very clear example with code) of what I should do to make a multi-threaded version of the GDIDemo app.
Anyone want to point me in the right direction?
From what I've seen I'd like to use GAPIDraw to do the graphics. In tinkering with the GDIDemo, I've been able to add my audio routines which seem to function ok EXCEPT they are been called unpredictably. I am assuming that's because I really need two threads - one for the GAPIDraw graphics, and one to process audio.
I'm looking for advice (or a very clear example with code) of what I should do to make a multi-threaded version of the GDIDemo app.
Anyone want to point me in the right direction?