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

Side by Side Diff: webrtc/media/engine/webrtcvoiceengine.h

Issue 1827263002: Early initialize recording on the ADM from WebRtcVoiceMediaChannel. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Simplify the solution Created 4 years, 8 months 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
OLDNEW
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
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // ignored. This allows us to selectively turn on and off different options 96 // ignored. This allows us to selectively turn on and off different options
97 // easily at any time. 97 // easily at any time.
98 bool ApplyOptions(const AudioOptions& options); 98 bool ApplyOptions(const AudioOptions& options);
99 void SetDefaultDevices(); 99 void SetDefaultDevices();
100 100
101 // webrtc::TraceCallback: 101 // webrtc::TraceCallback:
102 void Print(webrtc::TraceLevel level, const char* trace, int length) override; 102 void Print(webrtc::TraceLevel level, const char* trace, int length) override;
103 103
104 void StartAecDump(const std::string& filename); 104 void StartAecDump(const std::string& filename);
105 int CreateVoEChannel(); 105 int CreateVoEChannel();
106 webrtc::AudioDeviceModule* adm();
106 107
107 rtc::ThreadChecker signal_thread_checker_; 108 rtc::ThreadChecker signal_thread_checker_;
108 rtc::ThreadChecker worker_thread_checker_; 109 rtc::ThreadChecker worker_thread_checker_;
109 110
110 // The audio device manager. 111 // The audio device manager.
111 rtc::scoped_refptr<webrtc::AudioDeviceModule> adm_; 112 rtc::scoped_refptr<webrtc::AudioDeviceModule> adm_;
112 // The primary instance of WebRtc VoiceEngine. 113 // The primary instance of WebRtc VoiceEngine.
113 std::unique_ptr<VoEWrapper> voe_wrapper_; 114 std::unique_ptr<VoEWrapper> voe_wrapper_;
114 rtc::scoped_refptr<webrtc::AudioState> audio_state_; 115 rtc::scoped_refptr<webrtc::AudioState> audio_state_;
115 std::vector<AudioCodec> codecs_; 116 std::vector<AudioCodec> codecs_;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 int cng_payload_type = -1; 277 int cng_payload_type = -1;
277 int cng_plfreq = -1; 278 int cng_plfreq = -1;
278 webrtc::CodecInst codec_inst; 279 webrtc::CodecInst codec_inst;
279 } send_codec_spec_; 280 } send_codec_spec_;
280 281
281 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel); 282 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcVoiceMediaChannel);
282 }; 283 };
283 } // namespace cricket 284 } // namespace cricket
284 285
285 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_ 286 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVOICEENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvoiceengine.cc » ('j') | webrtc/media/engine/webrtcvoiceengine.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698