Low level sound access

Is there any way to do really low-level access to sound output in a
non-platform specific way? I don’t want to play music or sounds, just set the
output level. Think function generator–but since the output level is
controlled by another program being simulated, there is no way to predict
what the waveform, or its duration, will be ahead of time.

TIA,
Jeff

The only solution I see is unfortunately make a delay
between program execution and sound playing, e.g. record
the levels the program does, and then fill the audio buffer with them.

sylvain

Is there any way to do really low-level access to sound output in a
non-platform specific way? I don’t want to play music or sounds,
just set the output level. Think function generator–but since
the output level is controlled by another program being simulated,
there is no way to predict what the waveform, or its duration,
will be ahead of time.

TIA,
Jeff