Is there a way to oscilate the value of a variable from -x to +x at x cycles-per-second? Looking to form a symetrical sine wave if possible.

In case you're curious, this is for outputting to the soundcard. It seems that the data sent to the soundcard is used to manually vibrate the speaker. I'm interested on synthysizing a high-piched sine wave over through my soundcard.

BTW, I'm writing this for VB and QB. (Both display the sine wave, but only QB plays it on the soundcard) so no external dlls or ocxs please.