sipxmedialib  Version 3.3
MpJbeFixed.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2008 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2008 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // $$
10 
11 // Author: Alexander Chemeris <Alexander.Chemeris AT SIPez DOT com>
12 
13 #ifndef _MpJbeFixed_h_
14 #define _MpJbeFixed_h_
15 
16 // SYSTEM INCLUDES
17 // APPLICATION INCLUDES
19 #include <os/OsIntTypes.h>
20 
21 // DEFINES
22 // MACROS
23 // EXTERNAL FUNCTIONS
24 // EXTERNAL VARIABLES
25 // CONSTANTS
26 // STRUCTS
27 // TYPEDEFS
28 // FORWARD DECLARATIONS
29 
34 {
35 /* //////////////////////////////// PUBLIC //////////////////////////////// */
36 public:
37  static const char *name;
38 
40 /* =============================== CREATORS =============================== */
42 
43 
45  MpJbeFixed();
46 
48  virtual ~MpJbeFixed();
49 
51  virtual OsStatus init(int samplerate);
52 
54 
55 /* ============================= MANIPULATORS ============================= */
57 
58 
60  virtual OsStatus update(const RtpHeader *rtp,
61  uint32_t cur_rtp_timestamp,
62  uint32_t cur_playback_time,
63  int32_t *hint);
64 
66  virtual void reset();
67 
69 
70 /* ============================== ACCESSORS =============================== */
72 
73 
74 
76 
77 /* =============================== INQUIRY ================================ */
79 
80 
81 
83 
84 /* ////////////////////////////// PROTECTED /////////////////////////////// */
85 protected:
86 
87 
88 /* /////////////////////////////// PRIVATE //////////////////////////////// */
89 private:
91  int mJbLength;
92  int32_t mDelay;
93 
94 };
95 
96 /* ============================ INLINE METHODS ============================ */
97 
98 #endif // _MpJbeFixed_h_
int mSamplerate
Definition: MpJbeFixed.h:90
virtual OsStatus update(const RtpHeader *rtp, uint32_t cur_rtp_timestamp, uint32_t cur_playback_time, int32_t *hint)
Update estimation with new received packet.
Definition: MpJbeFixed.cpp:61
static const char * name
Definition: MpJbeFixed.h:37
virtual void reset()
Prepare to process other unrelated audio stream.
Definition: MpJbeFixed.cpp:88
virtual ~MpJbeFixed()
Destructor.
Definition: MpJbeFixed.cpp:43
virtual OsStatus init(int samplerate)
Initialize algorithm with given samplerate.
Definition: MpJbeFixed.cpp:49
int mJbLength
Definition: MpJbeFixed.h:91
RTP header as described in RFC 3550.
Definition: RtpHeader.h:43
MpJbeFixed()
Constructor.
Definition: MpJbeFixed.cpp:39
Abstract base class for Jitter Buffer Estimation (JBE) algorithms.
Definition: MpJitterBufferEstimation.h:35
Estimation algorithm for simple fixed length jitter buffer.
Definition: MpJbeFixed.h:33
int32_t mDelay
Definition: MpJbeFixed.h:92