I looked up some code, seems like everything is creating some math function waves, but I want to a single tone, or a custom wave made with custom single tones.
I read this How can I generate continuous tones of varying frequencies?
Which is close to my answer. Assumin I'm gonna use waveOutWrite like in the above link, I can't seem to figure out how the amp/freq is calculated for each Sample in HWAVEOUT.
In the code from the link It's done like this:
Samples[i] := round(vol*sin(omega*t));
Assuming I want a 15kHz freq single tone with some amp (does not matter which), how would a Sample[1] be calculated?