Refactor FakeAudioDevice to have separate methods for starting recording and playout.
Also, change FakeAudioDevice to generate a sine tone instead of using a file. TBR=henrika@webrtc.org, stefan@webrtc.org BUG=webrtc:7080 Review-Url: https://codereview.webrtc.org/2652803002 Cr-Commit-Position: refs/heads/master@{#16385}
This commit is contained in:
@ -21,6 +21,8 @@ class FakeAudioDeviceModule : public AudioDeviceModule {
|
||||
virtual ~FakeAudioDeviceModule() {}
|
||||
virtual int32_t AddRef() const { return 0; }
|
||||
virtual int32_t Release() const { return 0; }
|
||||
|
||||
private:
|
||||
virtual int32_t RegisterEventObserver(AudioDeviceObserver* eventCallback) {
|
||||
return 0;
|
||||
}
|
||||
@ -121,7 +123,10 @@ class FakeAudioDeviceModule : public AudioDeviceModule {
|
||||
virtual int32_t PlayoutBuffer(BufferType* type, uint16_t* sizeMS) const {
|
||||
return 0;
|
||||
}
|
||||
virtual int32_t PlayoutDelay(uint16_t* delayMS) const { return 0; }
|
||||
virtual int32_t PlayoutDelay(uint16_t* delayMS) const {
|
||||
*delayMS = 0;
|
||||
return 0;
|
||||
}
|
||||
virtual int32_t RecordingDelay(uint16_t* delayMS) const { return 0; }
|
||||
virtual int32_t CPULoad(uint16_t* load) const { return 0; }
|
||||
virtual int32_t StartRawOutputFileRecording(
|
||||
|
||||
Reference in New Issue
Block a user