| 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 #ifndef WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ | 11 #ifndef WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ |
| 12 #define WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ | 12 #define WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ |
| 13 | 13 |
| 14 #include <map> | 14 #include <map> |
| 15 #include <memory> | 15 #include <memory> |
| 16 #include <string> | 16 #include <string> |
| 17 #include <vector> | 17 #include <vector> |
| 18 | 18 |
| 19 #include "webrtc/api/audio_codecs/audio_encoder_factory.h" | 19 #include "webrtc/api/audio_codecs/audio_encoder_factory.h" |
| 20 #include "webrtc/api/rtpreceiverinterface.h" | 20 #include "webrtc/api/rtpreceiverinterface.h" |
| 21 #include "webrtc/base/buffer.h" | 21 #include "webrtc/base/buffer.h" |
| 22 #include "webrtc/base/constructormagic.h" | 22 #include "webrtc/base/constructormagic.h" |
| 23 #include "webrtc/base/networkroute.h" | 23 #include "webrtc/base/networkroute.h" |
| 24 #include "webrtc/base/scoped_ref_ptr.h" | 24 #include "webrtc/base/scoped_ref_ptr.h" |
| 25 #include "webrtc/base/task_queue.h" |
| 25 #include "webrtc/base/thread_checker.h" | 26 #include "webrtc/base/thread_checker.h" |
| 26 #include "webrtc/call/audio_state.h" | 27 #include "webrtc/call/audio_state.h" |
| 27 #include "webrtc/call/call.h" | 28 #include "webrtc/call/call.h" |
| 28 #include "webrtc/config.h" | 29 #include "webrtc/config.h" |
| 29 #include "webrtc/media/base/rtputils.h" | 30 #include "webrtc/media/base/rtputils.h" |
| 30 #include "webrtc/media/engine/apm_helpers.h" | 31 #include "webrtc/media/engine/apm_helpers.h" |
| 31 #include "webrtc/media/engine/webrtccommon.h" | 32 #include "webrtc/media/engine/webrtccommon.h" |
| 32 #include "webrtc/media/engine/webrtcvoe.h" | 33 #include "webrtc/media/engine/webrtcvoe.h" |
| 33 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 34 #include "webrtc/modules/audio_processing/include/audio_processing.h" |
| 34 #include "webrtc/pc/channel.h" | 35 #include "webrtc/pc/channel.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Every option that is "set" will be applied. Every option not "set" will be | 104 // Every option that is "set" will be applied. Every option not "set" will be |
| 104 // ignored. This allows us to selectively turn on and off different options | 105 // ignored. This allows us to selectively turn on and off different options |
| 105 // easily at any time. | 106 // easily at any time. |
| 106 bool ApplyOptions(const AudioOptions& options); | 107 bool ApplyOptions(const AudioOptions& options); |
| 107 | 108 |
| 108 // webrtc::TraceCallback: | 109 // webrtc::TraceCallback: |
| 109 void Print(webrtc::TraceLevel level, const char* trace, int length) override; | 110 void Print(webrtc::TraceLevel level, const char* trace, int length) override; |
| 110 | 111 |
| 111 void StartAecDump(const std::string& filename); | 112 void StartAecDump(const std::string& filename); |
| 112 int CreateVoEChannel(); | 113 int CreateVoEChannel(); |
| 114 |
| 115 rtc::TaskQueue low_priority_worker_queue_; |
| 116 |
| 113 webrtc::AudioDeviceModule* adm(); | 117 webrtc::AudioDeviceModule* adm(); |
| 114 webrtc::AudioProcessing* apm(); | 118 webrtc::AudioProcessing* apm(); |
| 115 webrtc::voe::TransmitMixer* transmit_mixer(); | 119 webrtc::voe::TransmitMixer* transmit_mixer(); |
| 116 | 120 |
| 117 AudioCodecs CollectCodecs( | 121 AudioCodecs CollectCodecs( |
| 118 const std::vector<webrtc::AudioCodecSpec>& specs) const; | 122 const std::vector<webrtc::AudioCodecSpec>& specs) const; |
| 119 | 123 |
| 120 rtc::ThreadChecker signal_thread_checker_; | 124 rtc::ThreadChecker signal_thread_checker_; |
| 121 rtc::ThreadChecker worker_thread_checker_; | 125 rtc::ThreadChecker worker_thread_checker_; |
| 122 | 126 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; | 298 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; |
| 295 | 299 |
| 296 rtc::Optional<webrtc::AudioSendStream::Config::SendCodecSpec> | 300 rtc::Optional<webrtc::AudioSendStream::Config::SendCodecSpec> |
| 297 send_codec_spec_; | 301 send_codec_spec_; |
| 298 | 302 |
| 299 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); | 303 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); |
| 300 }; | 304 }; |
| 301 } // namespace cricket | 305 } // namespace cricket |
| 302 | 306 |
| 303 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ | 307 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ |
| OLD | NEW |