ccRTP 2.1.2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
audio.h
Go to the documentation of this file.
1 // Common header for audiorx/audiotx.
2 // A simple and amusing application for testing basic features of ccRTP.
3 // Copyright (C) 2001-2015 Federico Montesino <fedemp@altern.org>
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 
23 // audiorx and audiotx are, respectively, the transmitter and receiver of
24 // a simple application for testing ccRTP with audio. It aims to
25 // transmit/receive \mu-law encoded audio on RTP packets.
26 
27 
28 // UDP/RTP ports
29 const int RECEIVER_BASE = 22222;
30 const int TRANSMITTER_BASE = 33334;
31 
32 // We will sample at 8 Khz using \mu-law encoding
33 const int SAMPLING_RATE = 8000;
34 
35 // Transmission interval between consecutive packets.
36 // Ideally, the interval should be 20 milliseconds
37 const int PERIOD = 20;
38 
39 // Packets are 8000*20/1000 = 160 octects long.
const int PERIOD
Definition: audio.h:37
const int SAMPLING_RATE
Definition: audio.h:33
const int RECEIVER_BASE
file audio.h Common header for audiorx and audiotx.
Definition: audio.h:29
const int TRANSMITTER_BASE
Definition: audio.h:30
const int PACKET_SIZE
Definition: audio.h:40