I saw this topic a while ago, when I tried to create my function generator from the scratch. Now I finally managed to output some noise on the PC soundcard output.. Thanks a lot, I surely couldn't have managed without this thread, as I found this description the best among the tutorials on the web in the topic. Yet I have a final issue that I can't really solve:
How can you ensure, that the audio buffer receives continuos stream? There's this cruicial part in the code: Stop(); calc(); Play(); with which the playback is highly fragmented.
I use a 2000 sample buffer, tried with 20.000 samples, same results, only the continuos parts were longer...
Any help would be highly appreciated! :)