On Wed, 12 May 1999, Hrafnkell Eiriksson wrote:
> Hi
>
> Is it possible to use the sequencer stuff in the OSS sound driver
> to let the sound card play a sine wave of a given frequency?
In theory it's possible to play sine waves using the OPL3 FM synth chip
available on most older (ISA) soundcards. However this is very inpractical
way.
A much easier way is using /dev/dsp. You only need to construct few cycles
of sine wave at given frequency to a buffer. Then just keep writing this
buffer to /dev/dsp as many times as you need. In fact it may even be
possible that somebody has already written this kind of app (look at
ftp://sunsite.unc.edu/pub/Linux/apps/sound).
Best regards,
Hannu
-----
Hannu Savolainen ([EMAIL PROTECTED])
http://www.opensound.com (Open Sound System (OSS))
http://www.compusonic.fi (Finnish OSS pages)