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

Side by Side Diff: webrtc/api/call/audio_state.h

Issue 2377023002: Now pass ADM as a constructor argument to audio_state. (Closed)
Patch Set: Removed audio_transport() mock calls in tests. Created 4 years, 2 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
« no previous file with comments | « no previous file | webrtc/audio/BUILD.gn » ('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 #ifndef WEBRTC_API_CALL_AUDIO_STATE_H_ 10 #ifndef WEBRTC_API_CALL_AUDIO_STATE_H_
(...skipping 16 matching lines...) Expand all
27 // webrtc::Call for audio processing purposes. 27 // webrtc::Call for audio processing purposes.
28 class AudioState : public rtc::RefCountInterface { 28 class AudioState : public rtc::RefCountInterface {
29 public: 29 public:
30 struct Config { 30 struct Config {
31 // VoiceEngine used for audio streams and audio/video synchronization. 31 // VoiceEngine used for audio streams and audio/video synchronization.
32 // AudioState will tickle the VoE refcount to keep it alive for as long as 32 // AudioState will tickle the VoE refcount to keep it alive for as long as
33 // the AudioState itself. 33 // the AudioState itself.
34 VoiceEngine* voice_engine = nullptr; 34 VoiceEngine* voice_engine = nullptr;
35 35
36 // The AudioDeviceModule associated with the Calls. 36 // The AudioDeviceModule associated with the Calls.
37 AudioDeviceModule* audio_device_module = nullptr; 37 AudioDeviceModule* audio_device_module = nullptr;
the sun 2016/09/29 16:15:07 Look at me!
38 }; 38 };
39 39
40 // TODO(solenberg): Replace scoped_refptr with shared_ptr once we can use it. 40 // TODO(solenberg): Replace scoped_refptr with shared_ptr once we can use it.
41 static rtc::scoped_refptr<AudioState> Create( 41 static rtc::scoped_refptr<AudioState> Create(const AudioState::Config& config,
42 const AudioState::Config& config); 42 webrtc::AudioDeviceModule* adm);
the sun 2016/09/29 16:15:07 Can you use the one in Config instead?
43 43
44 virtual ~AudioState() {} 44 virtual ~AudioState() {}
45 }; 45 };
46 } // namespace webrtc 46 } // namespace webrtc
47 47
48 #endif // WEBRTC_API_CALL_AUDIO_STATE_H_ 48 #endif // WEBRTC_API_CALL_AUDIO_STATE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/audio/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698