Chromium Code Reviews| OLD | NEW | 
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 #ifndef WEBRTC_AUDIO_STATE_H_ | |
| 11 #define WEBRTC_AUDIO_STATE_H_ | |
| 12 | |
| 13 namespace webrtc { | |
| 14 | |
| 15 class AudioDeviceModule; | |
| 16 class VoiceEngine; | |
| 17 | |
| 18 // AudioState holds the state which must be shared between multiple instances of | |
| 19 // webrtc::Call for audio processing purposes. | |
| 20 class AudioState { | |
| 21 public: | |
| 22 struct Config { | |
| 23 // VoiceEngine used for audio streams and audio/video synchronization. | |
| 
 
tommi
2015/10/29 16:28:50
what about ownership/lifetime? (same for voice_eng
 
the sun
2015/10/30 12:19:01
Made it clear in the comment, or did you have anyt
 
tommi
2015/11/02 13:46:53
Thanks, comment is what I meant.
 
the sun
2015/11/03 12:41:07
Acknowledged.
 
 | |
| 24 VoiceEngine* voice_engine = nullptr; | |
| 25 | |
| 26 // The AudioDeviceModule associated with the Calls. | |
| 27 AudioDeviceModule* audio_device_module = nullptr; | |
| 28 }; | |
| 29 | |
| 30 static AudioState* Create(const AudioState::Config& config); | |
| 31 | |
| 32 virtual ~AudioState() {} | |
| 33 }; | |
| 34 } // namespace webrtc | |
| 35 | |
| 36 #endif // WEBRTC_AUDIO_STATE_H_ | |
| OLD | NEW |