Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Jeff Tranter <tranter@pobox.com>
To: linux-sound@vger.kernel.org
Subject: Re: Playing a sine wave
Date: Wed, 12 May 1999 21:44:59 +0000	[thread overview]
Message-ID: <marc-linux-sound-92658863601553@msgid-missing> (raw)
In-Reply-To: <marc-linux-sound-92649832906805@msgid-missing>

On Wed, 12 May 1999, Hannu Savolainen wrote:

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

Yes, I wrote such a program using /dev/dsp. Look for "wave"
on sunsite.unc.edu, probably in the directory mentioned above
unless they moved it.

It can do sine, square, triangle, and ramp waveforms, in stereo.

--
Jeff Tranter (mailto:tranter@pobox.com http://www.pobox.com/~tranter)
Currently running Linux 2.2.7      Learn more at http://www.linux.org

  parent reply	other threads:[~1999-05-12 21:44 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
1999-05-12 20:22 ` Cornelius Creedon
1999-05-12 21:44 ` Jeff Tranter [this message]
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-92658863601553@msgid-missing \
    --to=tranter@pobox.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox