OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 #ifdef HAVE_WEBRTC_VOICE | 11 #ifdef HAVE_WEBRTC_VOICE |
12 | 12 |
13 #include "webrtc/media/engine/webrtcvoiceengine.h" | 13 #include "webrtc/media/engine/webrtcvoiceengine.h" |
14 | 14 |
15 #include <algorithm> | 15 #include <algorithm> |
16 #include <cstdio> | 16 #include <cstdio> |
17 #include <functional> | 17 #include <functional> |
18 #include <string> | 18 #include <string> |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
21 #include "webrtc/audio_sink.h" | 21 #include "webrtc/api/call/audio_sink.h" |
22 #include "webrtc/base/arraysize.h" | 22 #include "webrtc/base/arraysize.h" |
23 #include "webrtc/base/base64.h" | 23 #include "webrtc/base/base64.h" |
24 #include "webrtc/base/byteorder.h" | 24 #include "webrtc/base/byteorder.h" |
25 #include "webrtc/base/common.h" | 25 #include "webrtc/base/common.h" |
26 #include "webrtc/base/constructormagic.h" | 26 #include "webrtc/base/constructormagic.h" |
27 #include "webrtc/base/helpers.h" | 27 #include "webrtc/base/helpers.h" |
28 #include "webrtc/base/logging.h" | 28 #include "webrtc/base/logging.h" |
29 #include "webrtc/base/stringencode.h" | 29 #include "webrtc/base/stringencode.h" |
30 #include "webrtc/base/stringutils.h" | 30 #include "webrtc/base/stringutils.h" |
31 #include "webrtc/base/trace_event.h" | 31 #include "webrtc/base/trace_event.h" |
(...skipping 2631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2663 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 2663 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
2664 const auto it = send_streams_.find(ssrc); | 2664 const auto it = send_streams_.find(ssrc); |
2665 if (it != send_streams_.end()) { | 2665 if (it != send_streams_.end()) { |
2666 return it->second->channel(); | 2666 return it->second->channel(); |
2667 } | 2667 } |
2668 return -1; | 2668 return -1; |
2669 } | 2669 } |
2670 } // namespace cricket | 2670 } // namespace cricket |
2671 | 2671 |
2672 #endif // HAVE_WEBRTC_VOICE | 2672 #endif // HAVE_WEBRTC_VOICE |
OLD | NEW |