Is there a way to create a sound from scratch using DirectSound, eg play the notes ac, d, e, f,g etc? However, the sound must be realistic, and sound at least a little like a proper sound.
Thanks. I have tried to be as concise yet as detailed as I can.
This is what an audio synthesizer does. There are many techniques - you probably need to narrow down what you want to do before you can get useful advice.
However, the simplest technique that will produce a tone is to write an even number of periods of a sine wave of the correct frequency into a buffer, and play that as a looping buffer in DirectSound
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.