| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 class ProcessThread; | 22 class ProcessThread; |
| 23 | 23 |
| 24 class VoEBaseImpl : public VoEBase, | 24 class VoEBaseImpl : public VoEBase, |
| 25 public AudioTransport, | 25 public AudioTransport, |
| 26 public AudioDeviceObserver { | 26 public AudioDeviceObserver { |
| 27 public: | 27 public: |
| 28 int RegisterVoiceEngineObserver(VoiceEngineObserver& observer) override; | 28 int RegisterVoiceEngineObserver(VoiceEngineObserver& observer) override; |
| 29 int DeRegisterVoiceEngineObserver() override; | 29 int DeRegisterVoiceEngineObserver() override; |
| 30 | 30 |
| 31 int Init(AudioDeviceModule* external_adm = nullptr, | 31 int Init( |
| 32 AudioProcessing* audioproc = nullptr, | 32 AudioDeviceModule* external_adm, |
| 33 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory = | 33 AudioProcessing* external_apm, |
| 34 nullptr) override; | 34 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory) override; |
| 35 AudioProcessing* audio_processing() override { | 35 AudioProcessing* audio_processing() override { |
| 36 return shared_->audio_processing(); | 36 // TODO(peah): Remove this when downstream dependencies have properly been |
| 37 // resolved. |
| 38 RTC_DCHECK(audio_processing_); |
| 39 return audio_processing_.get(); |
| 37 } | 40 } |
| 38 AudioDeviceModule* audio_device_module() override { | 41 AudioDeviceModule* audio_device_module() override { |
| 39 return shared_->audio_device(); | 42 return shared_->audio_device(); |
| 40 } | 43 } |
| 41 voe::TransmitMixer* transmit_mixer() override { | 44 voe::TransmitMixer* transmit_mixer() override { |
| 42 return shared_->transmit_mixer(); | 45 return shared_->transmit_mixer(); |
| 43 } | 46 } |
| 44 int Terminate() override; | 47 int Terminate() override; |
| 45 | 48 |
| 46 int CreateChannel() override; | 49 int CreateChannel() override; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 void* audio_data, int64_t* elapsed_time_ms, | 117 void* audio_data, int64_t* elapsed_time_ms, |
| 115 int64_t* ntp_time_ms); | 118 int64_t* ntp_time_ms); |
| 116 | 119 |
| 117 // Initialize channel by setting Engine Information then initializing | 120 // Initialize channel by setting Engine Information then initializing |
| 118 // channel. | 121 // channel. |
| 119 int InitializeChannel(voe::ChannelOwner* channel_owner); | 122 int InitializeChannel(voe::ChannelOwner* channel_owner); |
| 120 VoiceEngineObserver* voiceEngineObserverPtr_; | 123 VoiceEngineObserver* voiceEngineObserverPtr_; |
| 121 rtc::CriticalSection callbackCritSect_; | 124 rtc::CriticalSection callbackCritSect_; |
| 122 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 125 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
| 123 | 126 |
| 127 // TODO(peah): Remove this when upstream dependencies have properly been |
| 128 // resolved. |
| 129 rtc::scoped_refptr<AudioProcessing> audio_processing_; |
| 130 |
| 124 AudioFrame audioFrame_; | 131 AudioFrame audioFrame_; |
| 125 voe::SharedData* shared_; | 132 voe::SharedData* shared_; |
| 126 }; | 133 }; |
| 127 | 134 |
| 128 } // namespace webrtc | 135 } // namespace webrtc |
| 129 | 136 |
| 130 #endif // WEBRTC_VOICE_ENGINE_VOE_BASE_IMPL_H | 137 #endif // WEBRTC_VOICE_ENGINE_VOE_BASE_IMPL_H |
| OLD | NEW |