From: Hannu Savolainen <hannu@opensound.com>
To: linux-sound@vger.kernel.org
Subject: Re: Playing a sine wave
Date: Wed, 12 May 1999 08:56:41 +0000 [thread overview]
Message-ID: <marc-linux-sound-92652810730306@msgid-missing> (raw)
In-Reply-To: <marc-linux-sound-92649832906805@msgid-missing>
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 (hannu@opensound.com)
http://www.opensound.com (Open Sound System (OSS))
http://www.compusonic.fi (Finnish OSS pages)
next prev parent reply other threads:[~1999-05-12 8:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-12 1:22 Playing a sine wave Hrafnkell Eiriksson
1999-05-12 8:56 ` Hannu Savolainen [this message]
1999-05-12 17:16 ` Eric Mitchell
1999-05-12 17:59 ` Itai Nahshon
1999-05-12 20:22 ` Cornelius Creedon
1999-05-12 21:44 ` Jeff Tranter
1999-05-13 3:25 ` Hrafnkell Eiriksson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-sound-92652810730306@msgid-missing \
--to=hannu@opensound.com \
--cc=linux-sound@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.