| OLD | NEW |
| 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 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 namespace webrtc { | 22 namespace webrtc { |
| 23 namespace internal { | 23 namespace internal { |
| 24 | 24 |
| 25 class AudioState final : public webrtc::AudioState, | 25 class AudioState final : public webrtc::AudioState, |
| 26 public webrtc::VoiceEngineObserver { | 26 public webrtc::VoiceEngineObserver { |
| 27 public: | 27 public: |
| 28 explicit AudioState(const AudioState::Config& config); | 28 explicit AudioState(const AudioState::Config& config); |
| 29 ~AudioState() override; | 29 ~AudioState() override; |
| 30 | 30 |
| 31 // TODO(peah): Remove the conditional when upstream dependencies have properly | |
| 32 // been resolved. | |
| 33 AudioProcessing* audio_processing() override { | 31 AudioProcessing* audio_processing() override { |
| 34 return config_.audio_processing ? config_.audio_processing.get() | 32 RTC_DCHECK(config_.audio_processing); |
| 35 : voe_base_->audio_processing(); | 33 return config_.audio_processing.get(); |
| 36 } | 34 } |
| 37 | 35 |
| 38 VoiceEngine* voice_engine(); | 36 VoiceEngine* voice_engine(); |
| 39 rtc::scoped_refptr<AudioMixer> mixer(); | 37 rtc::scoped_refptr<AudioMixer> mixer(); |
| 40 bool typing_noise_detected() const; | 38 bool typing_noise_detected() const; |
| 41 | 39 |
| 42 private: | 40 private: |
| 43 // rtc::RefCountInterface implementation. | 41 // rtc::RefCountInterface implementation. |
| 44 int AddRef() const override; | 42 int AddRef() const override; |
| 45 int Release() const override; | 43 int Release() const override; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 65 // Transports mixed audio from the mixer to the audio device and | 63 // Transports mixed audio from the mixer to the audio device and |
| 66 // recorded audio to the VoE AudioTransport. | 64 // recorded audio to the VoE AudioTransport. |
| 67 AudioTransportProxy audio_transport_proxy_; | 65 AudioTransportProxy audio_transport_proxy_; |
| 68 | 66 |
| 69 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioState); | 67 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioState); |
| 70 }; | 68 }; |
| 71 } // namespace internal | 69 } // namespace internal |
| 72 } // namespace webrtc | 70 } // namespace webrtc |
| 73 | 71 |
| 74 #endif // WEBRTC_AUDIO_AUDIO_STATE_H_ | 72 #endif // WEBRTC_AUDIO_AUDIO_STATE_H_ |
| OLD | NEW |