OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/modules/rtp_rtcp/source/rtp_sender_audio.h" | 11 #include "webrtc/modules/rtp_rtcp/source/rtp_sender_audio.h" |
12 | 12 |
13 #include <assert.h> //assert | 13 #include <assert.h> //assert |
14 #include <string.h> //memcpy | 14 #include <string.h> //memcpy |
15 | 15 |
16 #include "webrtc/base/trace_event.h" | 16 #include "webrtc/base/trace_event.h" |
17 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h" | 17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
18 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 18 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 static const int kDtmfFrequencyHz = 8000; | 22 static const int kDtmfFrequencyHz = 8000; |
23 | 23 |
24 RTPSenderAudio::RTPSenderAudio(Clock* clock, | 24 RTPSenderAudio::RTPSenderAudio(Clock* clock, |
25 RTPSender* rtpSender, | 25 RTPSender* rtpSender, |
26 RtpAudioFeedback* audio_feedback) | 26 RtpAudioFeedback* audio_feedback) |
27 : _clock(clock), | 27 : _clock(clock), |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 retVal = _rtpSender->SendToNetwork(dtmfbuffer, 4, 12, -1, | 479 retVal = _rtpSender->SendToNetwork(dtmfbuffer, 4, 12, -1, |
480 kAllowRetransmission, | 480 kAllowRetransmission, |
481 RtpPacketSender::kHighPriority); | 481 RtpPacketSender::kHighPriority); |
482 sendCount--; | 482 sendCount--; |
483 | 483 |
484 }while (sendCount > 0 && retVal == 0); | 484 }while (sendCount > 0 && retVal == 0); |
485 | 485 |
486 return retVal; | 486 return retVal; |
487 } | 487 } |
488 } // namespace webrtc | 488 } // namespace webrtc |
OLD | NEW |