Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Unified Diff: webrtc/audio/audio_state.h

Issue 2377023002: Now pass ADM as a constructor argument to audio_state. (Closed)
Patch Set: Removed audio_transport() mock calls in tests. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/audio/audio_state.h
diff --git a/webrtc/audio/audio_state.h b/webrtc/audio/audio_state.h
index 31892d04faaa5141b9e25d9486553da4ce101b11..eacb4bd97507df3e3e2342c9d2cce6251d35e94f 100644
--- a/webrtc/audio/audio_state.h
+++ b/webrtc/audio/audio_state.h
@@ -24,10 +24,12 @@ namespace internal {
class AudioState final : public webrtc::AudioState,
public webrtc::VoiceEngineObserver {
public:
- explicit AudioState(const AudioState::Config& config);
+ explicit AudioState(const AudioState::Config& config,
+ webrtc::AudioDeviceModule* adm);
~AudioState() override;
VoiceEngine* voice_engine();
+ AudioDeviceModule* audio_device();
bool typing_noise_detected() const;
private:
@@ -53,6 +55,8 @@ class AudioState final : public webrtc::AudioState,
// Reference count; implementation copied from rtc::RefCountedObject.
mutable volatile int ref_count_ = 0;
+ rtc::scoped_refptr<AudioDeviceModule> adm_;
+
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioState);
};
} // namespace internal

Powered by Google App Engine
This is Rietveld 408576698