So I need to program (using Java) some things that include generated sounds. I am struggling to understand how to make it work because I require a rather short signal while still using a sampling rate supported by the average sound card. For example a 100 uSec beep with a 200 uSec delay followed by another beep (initially supposed to be a click but a sine wave also works, would be grateful if you could explain why a sine wave makes it simpler).
My understanding is that I need a high sampling rate (number of samples per second), a frequency within hearing range (for example 1000) and a buffer to hold that data that will be fed to the audio stream provided by the Java libraries. The issue is that with my limit of sampling rate (hardware limitations) I end up with an almost completely empty buffer because of the tiny intervals of sound it must hold to meet the time requirements.
Am I missing something? Is there another way? Why does using a sine wave instead of a click make things easier? Any help would be appreciated.