<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>ccRTP: audio.h</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> </div> <div class="contents"> <h1>audio.h</h1><div class="fragment"><pre class="fragment"><span class="comment">// Common header for audiorx/audiotx. </span> <span class="comment">// A simple and amusing application for testing basic features of ccRTP.</span> <span class="comment">// Copyright (C) 2001,2002 Federico Montesino <fedemp@altern.org></span> <span class="comment">// </span> <span class="comment">// This program is free software; you can redistribute it and/or modify</span> <span class="comment">// it under the terms of the GNU General Public License as published by</span> <span class="comment">// the Free Software Foundation; either version 2 of the License, or</span> <span class="comment">// (at your option) any later version.</span> <span class="comment">// </span> <span class="comment">// This program is distributed in the hope that it will be useful,</span> <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> <span class="comment">// GNU General Public License for more details.</span> <span class="comment">// </span> <span class="comment">// You should have received a copy of the GNU General Public License</span> <span class="comment">// along with this program; if not, write to the Free Software</span> <span class="comment">// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span> <span class="comment">// audiorx and audiotx are, respectively, the transmitter and receiver of</span> <span class="comment">// a simple application for testing ccRTP with audio. It aims to</span> <span class="comment">// transmit/receive \mu-law encoded audio on RTP packets.</span> <span class="comment">// UDP/RTP ports </span> <span class="keyword">const</span> <span class="keywordtype">int</span> RECEIVER_BASE = 22222; <span class="keyword">const</span> <span class="keywordtype">int</span> TRANSMITTER_BASE = 33334; <span class="comment">// We will sample at 8 Khz using \mu-law encoding</span> <span class="keyword">const</span> <span class="keywordtype">int</span> SAMPLING_RATE = 8000; <span class="comment">// Transmission interval between consecutive packets. </span> <span class="comment">// Ideally, the interval should be 20 milliseconds</span> <span class="keyword">const</span> <span class="keywordtype">int</span> PERIOD = 20; <span class="comment">// Packets are 8000*20/1000 = 160 octects long. </span> <span class="keyword">const</span> <span class="keywordtype">int</span> PACKET_SIZE=SAMPLING_RATE*PERIOD/1000; </pre></div> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Fri Jul 24 21:42:25 2009 for ccRTP by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>