Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: webrtc/media/engine/fakewebrtccall.cc

Issue 2392883002: Multi frequency DTMF support - sender side (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.h ('k') | webrtc/media/engine/webrtcvoiceengine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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
(...skipping 22 matching lines...) Expand all
33 void FakeAudioSendStream::SetStats( 33 void FakeAudioSendStream::SetStats(
34 const webrtc::AudioSendStream::Stats& stats) { 34 const webrtc::AudioSendStream::Stats& stats) {
35 stats_ = stats; 35 stats_ = stats;
36 } 36 }
37 37
38 FakeAudioSendStream::TelephoneEvent 38 FakeAudioSendStream::TelephoneEvent
39 FakeAudioSendStream::GetLatestTelephoneEvent() const { 39 FakeAudioSendStream::GetLatestTelephoneEvent() const {
40 return latest_telephone_event_; 40 return latest_telephone_event_;
41 } 41 }
42 42
43 bool FakeAudioSendStream::SendTelephoneEvent(int payload_type, int event, 43 bool FakeAudioSendStream::SendTelephoneEvent(int payload_type,
44 int payload_frequency, int event,
44 int duration_ms) { 45 int duration_ms) {
45 latest_telephone_event_.payload_type = payload_type; 46 latest_telephone_event_.payload_type = payload_type;
47 latest_telephone_event_.payload_frequency = payload_frequency;
46 latest_telephone_event_.event_code = event; 48 latest_telephone_event_.event_code = event;
47 latest_telephone_event_.duration_ms = duration_ms; 49 latest_telephone_event_.duration_ms = duration_ms;
48 return true; 50 return true;
49 } 51 }
50 52
51 void FakeAudioSendStream::SetMuted(bool muted) { 53 void FakeAudioSendStream::SetMuted(bool muted) {
52 muted_ = muted; 54 muted_ = muted;
53 } 55 }
54 56
55 webrtc::AudioSendStream::Stats FakeAudioSendStream::GetStats() const { 57 webrtc::AudioSendStream::Stats FakeAudioSendStream::GetStats() const {
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 } 547 }
546 548
547 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) { 549 void FakeCall::OnSentPacket(const rtc::SentPacket& sent_packet) {
548 last_sent_packet_ = sent_packet; 550 last_sent_packet_ = sent_packet;
549 if (sent_packet.packet_id >= 0) { 551 if (sent_packet.packet_id >= 0) {
550 last_sent_nonnegative_packet_id_ = sent_packet.packet_id; 552 last_sent_nonnegative_packet_id_ = sent_packet.packet_id;
551 } 553 }
552 } 554 }
553 555
554 } // namespace cricket 556 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.h ('k') | webrtc/media/engine/webrtcvoiceengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698