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}
This commit is contained in:
solenberg
2017-09-27 10:58:59 -07:00
committed by Commit Bot
parent 2d0f77585d
commit df5bb65ce4

View File

@ -52,12 +52,21 @@ class AudioDeviceModule : public RefCountedModule {
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;