Mercurial > hg > audiostuff
comparison intercom/rtp.h @ 3:c6c5a16ce2f2
compilation fixes
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 09:59:25 +0200 |
parents | 13be24d74cd2 |
children |
comparison
equal
deleted
inserted
replaced
2:13be24d74cd2 | 3:c6c5a16ce2f2 |
---|---|
32 | 32 |
33 /* optional - used with telephone conference */ | 33 /* optional - used with telephone conference */ |
34 unsigned long csrc[15]; | 34 unsigned long csrc[15]; |
35 | 35 |
36 public: | 36 public: |
37 RTP::RTP(); | 37 RTP(); |
38 void RTP::init(int payload_type_, unsigned long ssrc_); | 38 void init(int payload_type_, unsigned long ssrc_); |
39 int RTP::add_csrc(unsigned long csrc_); | 39 int add_csrc(unsigned long csrc_); |
40 void RTP::reset_csrc(); | 40 void reset_csrc(); |
41 int RTP::find_csrc(unsigned long ssrc_); | 41 int find_csrc(unsigned long ssrc_); |
42 void RTP::next(int frameduration); | 42 void next(int frameduration); |
43 int RTP::check(); | 43 int check(); |
44 unsigned long RTP::getssrc() { | 44 unsigned long getssrc() { |
45 return ssrc; | 45 return ssrc; |
46 }; | 46 }; |
47 int RTP::get_pt() { | 47 int get_pt() { |
48 return (int) payload_type; | 48 return (int) payload_type; |
49 }; | 49 }; |
50 int RTP::get_cc() { | 50 int get_cc() { |
51 return (int) csrc_count; | 51 return (int) csrc_count; |
52 } | 52 } |
53 }; | 53 }; |
54 | 54 |
55 const unsigned PT_PCMU = 0; // 8000 sample/second, G.711 u-Law | 55 const unsigned PT_PCMU = 0; // 8000 sample/second, G.711 u-Law |