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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 RTC_DCHECK_RUN_ON(&construction_thread_); | 54 RTC_DCHECK_RUN_ON(&construction_thread_); |
55 return &encoder_queue_; | 55 return &encoder_queue_; |
56 } | 56 } |
57 | 57 |
58 void SharedData::set_audio_device( | 58 void SharedData::set_audio_device( |
59 const rtc::scoped_refptr<AudioDeviceModule>& audio_device) { | 59 const rtc::scoped_refptr<AudioDeviceModule>& audio_device) { |
60 _audioDevicePtr = audio_device; | 60 _audioDevicePtr = audio_device; |
61 } | 61 } |
62 | 62 |
63 void SharedData::set_audio_processing(AudioProcessing* audioproc) { | 63 void SharedData::set_audio_processing(AudioProcessing* audioproc) { |
64 audioproc_.reset(audioproc); | |
65 _transmitMixerPtr->SetAudioProcessingModule(audioproc); | 64 _transmitMixerPtr->SetAudioProcessingModule(audioproc); |
66 _outputMixerPtr->SetAudioProcessingModule(audioproc); | 65 _outputMixerPtr->SetAudioProcessingModule(audioproc); |
67 } | 66 } |
68 | 67 |
69 int SharedData::NumOfSendingChannels() { | 68 int SharedData::NumOfSendingChannels() { |
70 ChannelManager::Iterator it(&_channelManager); | 69 ChannelManager::Iterator it(&_channelManager); |
71 int sending_channels = 0; | 70 int sending_channels = 0; |
72 | 71 |
73 for (ChannelManager::Iterator it(&_channelManager); it.IsValid(); | 72 for (ChannelManager::Iterator it(&_channelManager); it.IsValid(); |
74 it.Increment()) { | 73 it.Increment()) { |
(...skipping 27 matching lines...) Expand all Loading... |
102 } | 101 } |
103 | 102 |
104 void SharedData::SetLastError(int32_t error, TraceLevel level, | 103 void SharedData::SetLastError(int32_t error, TraceLevel level, |
105 const char* msg) const { | 104 const char* msg) const { |
106 _engineStatistics.SetLastError(error, level, msg); | 105 _engineStatistics.SetLastError(error, level, msg); |
107 } | 106 } |
108 | 107 |
109 } // namespace voe | 108 } // namespace voe |
110 | 109 |
111 } // namespace webrtc | 110 } // namespace webrtc |
OLD | NEW |