comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Typical Newbie Problem: Tone Generation
Date: Wed, 27 Apr 2005 00:48:02 -0500
Date: 2005-04-27T00:48:02-05:00	[thread overview]
Message-ID: <EM2dnRwl0M4PuvLfRVn-iQ@comcast.com> (raw)
In-Reply-To: 1114563757.133852.169710@o13g2000cwo.googlegroups.com

Windows has a tone generation call.  I believe you can see it in a
download of the free Claw.Sounds
    procedure Beep (Hertz : in Hertz_Type := 400;
                    Milliseconds : in Claw.DWord := 200);
        -- Create a Beep with the specified Hertz and Millisecond duration.
        -- Raises:
        --      Windows_Error if Windows reports an error.
        --      Not_Supported_Error if not running on Windows NT and the
        --          parameters have values other than the default ones.
        -- Implementation note: On Windows 95, this always triggers the
        -- system default sound; the parameter values aren't used.  Use the
        -- control panel to adjust the sound or turn it off.
        -- Note:
        -- This routine waits for the sound to be played, returning only
        -- when it is done.

The supported Claw has the routines for playing waveforms and a little demo
that plays a tune where you can adjust the tone characteristics, and thus
the "instrument", on the fly.



      reply	other threads:[~2005-04-27  5:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-26 17:53 Typical Newbie Problem: Tone Generation Fran Renard
2005-04-26 18:18 ` Martin Dowie
2005-04-27  1:02   ` Fran Renard
2005-04-27  5:48     ` tmoran [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox