Prepare to remove ADM APIs that are to be deprecated.
BUG=webrtc:4690
Review-Url: https://codereview.webrtc.org/3019563002
Cr-Commit-Position: refs/heads/master@{#20006}
diff --git a/modules/audio_device/include/audio_device.h b/modules/audio_device/include/audio_device.h
index 8751b8e..b378f9f 100644
--- a/modules/audio_device/include/audio_device.h
+++ b/modules/audio_device/include/audio_device.h
@@ -52,12 +52,21 @@
const int32_t id,
const AudioLayer audio_layer);
+ // TODO(solenberg): Remove temporary implementation of Module interface.
+ int64_t TimeUntilNextProcess() override {
+ // Make sure Process() isn't called very often.
+ return 1000000;
+ }
+ void Process() override {}
+
// Retrieve the currently utilized audio layer
virtual int32_t ActiveAudioLayer(AudioLayer* audioLayer) const = 0;
// Error handling
virtual ErrorCode LastError() const = 0;
- virtual int32_t RegisterEventObserver(AudioDeviceObserver* eventCallback) = 0;
+ virtual int32_t RegisterEventObserver(AudioDeviceObserver* eventCallback) {
+ return 0;
+ }
// Full-duplex transportation of PCM audio
virtual int32_t RegisterAudioCallback(AudioTransport* audioCallback) = 0;