<!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>Example Documentation</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Generated by Doxygen 1.2.5 on Fri Oct 5 10:28:25 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> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindex" href="examples.html">Examples</a> </center> <hr><h1>audio.h</h1> <p> <div class="fragment"><pre><font class="comment">// Common header for audiorx/audiotx. </font> <font class="comment">// A simple and amusing application for testing basic features of ccRTP.</font> <font class="comment">// Copyright (C) 2001 Federico Montesino <p5087@quintero.fie.us.es></font> <font class="comment">// </font> <font class="comment">// This program is free software; you can redistribute it and/or modify</font> <font class="comment">// it under the terms of the GNU General Public License as published by</font> <font class="comment">// the Free Software Foundation; either version 2 of the License, or</font> <font class="comment">// (at your option) any later version.</font> <font class="comment">// </font> <font class="comment">// This program is distributed in the hope that it will be useful,</font> <font class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</font> <font class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</font> <font class="comment">// GNU General Public License for more details.</font> <font class="comment">// </font> <font class="comment">// You should have received a copy of the GNU General Public License</font> <font class="comment">// along with this program; if not, write to the Free Software</font> <font class="comment">// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</font> <font class="comment">// audiorx and audiotx are, respectively, the transmitter and receiver of</font> <font class="comment">// a simple application for testing ccRTP with audio. It aims to</font> <font class="comment">// transmit/receive \mu-law encoded audio on RTP packets.</font> <font class="comment">// UDP/RTP ports </font> <font class="keyword">const</font> <font class="keywordtype">int</font> RECEIVER_BASE = 22222; <font class="keyword">const</font> <font class="keywordtype">int</font> TRANSMITTER_BASE = 33334; <font class="comment">// We will sample at 8 Khz using \mu-law encoding</font> <font class="keyword">const</font> <font class="keywordtype">int</font> SAMPLING_RATE = 8000; <font class="comment">// Transmission interval between consecutive packets. </font> <font class="comment">// Ideally, the interval should be 20 milliseconds</font> <font class="keyword">const</font> <font class="keywordtype">int</font> PERIOD = 20; <font class="comment">// Packets are 8000*20/1000 = 160 octects long. </font> <font class="keyword">const</font> <font class="keywordtype">int</font> PACKET_SIZE=SAMPLING_RATE*PERIOD/1000; </div></pre><hr><address><small>Generated at Fri Oct 5 10:28:25 2001 for ccRTP 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>