Hi Corona688...
Absolutely correct, even to the start click, in this particular case using "/dev/dsp", but, it is just as easy to create a header for stereo, signed, unsigned, various bit depths and sampling speeds manually this way too. Hence the proof of concept.
However, I used only the limits of " " and "~" which are 32 and 126 decimal respectively.
The idea was to make RAW waveform generation independent of any binary at all and it works a treat.
A sinewave VFO RAW sweeper using ASCII characters only is in the pipeline. It will take some time to work out all the values but I need this facility along with a constant amplitude amplifier to do flat bandwidth tests on the AudioScope.sh...
SriniShoo...
This is a starter:-
https://ccrma.stanford.edu/courses/4...ts/WaveFormat/
EDIT:
I forgot to add that it is not a pulse but an increasing pseudo-square wave. Due to the interpolation at the default "/dev/dsp" characteristics the square wave can have a lot of sinusoidal ringing on it. It entirely depends on the system. This is from measuring and looking at the earphone output(s) with professional test gear...