<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta name="robots" content="noindex"> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>AudioTone class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Generated by Doxygen 1.2.5 on Fri Oct 5 09:43:52 2001 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> <hr><h1>AudioTone Class Reference</h1>The tone class is used to construct or generate a tone sample in memory. generate audio sample in memory. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="audio_h-source.html">audio.h</a>></code> <p> <p>Inheritance diagram for AudioTone: <p><center><img src="class_audiotone.gif" usemap="#AudioTone_map" border="0"></center> <map name="AudioTone_map"> <area href="class_audiosample.html" alt="AudioSample" shape="rect" coords="0,0,86,24"> </map> <a href="class_audiotone-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_audiotone.html#a0">AudioTone</a> (unsigned size, unsigned f1, unsigned <a class="el" href="class_audiosample.html#n1">rate</a>=8000)</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_audiotone.html#a1">AudioTone</a> (unsigned size, unsigned f1, unsigned f2, unsigned <a class="el" href="class_audiosample.html#n1">rate</a>=8000)</td></tr> <tr><td nowrap align=right valign=top>unsigned </td><td valign=bottom><a class="el" href="class_audiotone.html#a2">getFreq1</a> (void)</td></tr> <tr><td nowrap align=right valign=top>unsigned </td><td valign=bottom><a class="el" href="class_audiotone.html#a3">getFreq2</a> (void)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> The tone class is used to construct or generate a tone sample in memory. generate audio sample in memory. <p> These tone samples can be either single or dual tones, and are created as linear samples of a specified sample rate. <p> <dl compact><dt> <b>Author(s): </b><dd> David Sugar <<a href="mailto:dyfet@ostel.com">dyfet@ostel.com</a>> </dl> <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="AudioTone::AudioTone"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> AudioTone::AudioTone ( </b></td> <td valign="bottom"><b> unsigned <em>size</em>, </b></td> </tr> <tr> <td></td> <td><b> unsigned <em>f1</em>, </b></td> </tr> <tr> <td></td> <td><b> unsigned <em>rate</em> = 8000 ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a1" doxytag="AudioTone::AudioTone"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> AudioTone::AudioTone ( </b></td> <td valign="bottom"><b> unsigned <em>size</em>, </b></td> </tr> <tr> <td></td> <td><b> unsigned <em>f1</em>, </b></td> </tr> <tr> <td></td> <td><b> unsigned <em>f2</em>, </b></td> </tr> <tr> <td></td> <td><b> unsigned <em>rate</em> = 8000 ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a2" doxytag="AudioTone::getFreq1"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> unsigned AudioTone::getFreq1 ( </b></td> <td valign="bottom"><b> void )<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a3" doxytag="AudioTone::getFreq2"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> unsigned AudioTone::getFreq2 ( </b></td> <td valign="bottom"><b> void )<code> [inline]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="audio_h-source.html">audio.h</a></ul> <hr><address><small>Generated at Fri Oct 5 09:43:52 2001 for ccaudio by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.5 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address> </body> </html>