OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 22 matching lines...) Expand all Loading... |
33 if (OutputMixer::Create(_outputMixerPtr, _gInstanceCounter) == 0) | 33 if (OutputMixer::Create(_outputMixerPtr, _gInstanceCounter) == 0) |
34 { | 34 { |
35 _outputMixerPtr->SetEngineInformation(_engineStatistics); | 35 _outputMixerPtr->SetEngineInformation(_engineStatistics); |
36 } | 36 } |
37 if (TransmitMixer::Create(_transmitMixerPtr, _gInstanceCounter) == 0) | 37 if (TransmitMixer::Create(_transmitMixerPtr, _gInstanceCounter) == 0) |
38 { | 38 { |
39 _transmitMixerPtr->SetEngineInformation(*_moduleProcessThreadPtr, | 39 _transmitMixerPtr->SetEngineInformation(*_moduleProcessThreadPtr, |
40 _engineStatistics, | 40 _engineStatistics, |
41 _channelManager); | 41 _channelManager); |
42 } | 42 } |
43 _audioDeviceLayer = AudioDeviceModule::kPlatformDefaultAudio; | |
44 } | 43 } |
45 | 44 |
46 SharedData::~SharedData() | 45 SharedData::~SharedData() |
47 { | 46 { |
48 OutputMixer::Destroy(_outputMixerPtr); | 47 OutputMixer::Destroy(_outputMixerPtr); |
49 TransmitMixer::Destroy(_transmitMixerPtr); | 48 TransmitMixer::Destroy(_transmitMixerPtr); |
50 if (_audioDevicePtr) { | 49 if (_audioDevicePtr) { |
51 _audioDevicePtr->Release(); | 50 _audioDevicePtr->Release(); |
52 } | 51 } |
53 _moduleProcessThreadPtr->Stop(); | 52 _moduleProcessThreadPtr->Stop(); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } | 100 } |
102 | 101 |
103 void SharedData::SetLastError(int32_t error, TraceLevel level, | 102 void SharedData::SetLastError(int32_t error, TraceLevel level, |
104 const char* msg) const { | 103 const char* msg) const { |
105 _engineStatistics.SetLastError(error, level, msg); | 104 _engineStatistics.SetLastError(error, level, msg); |
106 } | 105 } |
107 | 106 |
108 } // namespace voe | 107 } // namespace voe |
109 | 108 |
110 } // namespace webrtc | 109 } // namespace webrtc |
OLD | NEW |