I'm trying to write a software synthesiser for Windows for a university project. The project in in the prototype stage, where I have a basic Windows interface and a graphical display (rendered using the SetPixel () function).
The problem is, the program won't run at a sufficient speed so as to get a reasonable sample rate for the audio.
The code to do this will go in the WM_TIMER event, and even with the timer interval set to 0, the program is still far too slow.
How can I get the program running at a decent speed?