1/**********
2This library is free software; you can redistribute it and/or modify it under
3the terms of the GNU Lesser General Public License as published by the
4Free Software Foundation; either version 3 of the License, or (at your
5option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
6
7This library is distributed in the hope that it will be useful, but WITHOUT
8ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
9FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
10more details.
11
12You should have received a copy of the GNU Lesser General Public License
13along with this library; if not, write to the Free Software Foundation, Inc.,
1451 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15**********/
16// "liveMedia"
17// Copyright (c) 1996-2020 Live Networks, Inc. All rights reserved.
18// AMR Audio RTP Sources (RFC 4867)
19// C++ header
20
21#ifndef _AMR_AUDIO_RTP_SOURCE_HH
22#define _AMR_AUDIO_RTP_SOURCE_HH
23
24#ifndef _RTP_SOURCE_HH
25#include "RTPSource.hh"
26#endif
27#ifndef _AMR_AUDIO_SOURCE_HH
28#include "AMRAudioSource.hh"
29#endif
30
31class AMRAudioRTPSource {
32public:
33 static AMRAudioSource* createNew(UsageEnvironment& env,
34 Groupsock* RTPgs,
35 RTPSource*& resultRTPSource,
36 unsigned char rtpPayloadFormat,
37 Boolean isWideband = False,
38 unsigned numChannels = 1,
39 Boolean isOctetAligned = True,
40 unsigned interleaving = 0,
41 // relevant only if "isOctetAligned"
42 // The maximum # of frame-blocks in a group
43 // 0 means: no interleaving
44 Boolean robustSortingOrder = False,
45 // relevant only if "isOctetAligned"
46 Boolean CRCsArePresent = False
47 // relevant only if "isOctetAligned"
48 );
49 // This returns a source to read from, but "resultRTPSource" will
50 // point to RTP-related state.
51};
52
53#endif
54