All of lore.kernel.org
 help / color / mirror / Atom feed
From: Itai Nahshon <nahshon@actcom.co.il>
To: linux-sound@vger.kernel.org
Subject: Re: Playing a sine wave
Date: Wed, 12 May 1999 17:59:17 +0000	[thread overview]
Message-ID: <marc-linux-sound-92657688928217@msgid-missing> (raw)
In-Reply-To: <marc-linux-sound-92649832906805@msgid-missing>

>> 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).

See
   http://metalab.unc.edu/pub/Linux/apps/sound/dtmf-dial-0.2.tar.gz   

It combines two sine waves and outputs to /dev/dsp. You are
welcome to hack on it. Internally it has the function to
produce sine waves at any integer frequency and sampling rate.

Itai

  parent reply	other threads:[~1999-05-12 17:59 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
1999-05-12 17:16 ` Eric Mitchell
1999-05-12 17:59 ` Itai Nahshon [this message]
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-92657688928217@msgid-missing \
    --to=nahshon@actcom.co.il \
    --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.