зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1425596 - Stop busy looping in mFakeAudioDevice. r=jya
This is a workaround for the fact that our code is wrong. FakeAudioDeviceModule :::TimeUntilNextProcess() returns 0, so we're busy looping. I'm switching that to 100, which is arbitrary, but makes the problem go away. I want to fix that soon, because this is a terrible workaround. FakeAudioDeviceModule is _not_ made to be used in production. MozReview-Commit-ID: FoGs6GFsRRN --HG-- extra : rebase_source : d62f7c2d5b98c4814c06be13aca49bd478d5b381
This commit is contained in:
Родитель
7b3648e5fc
Коммит
1ca7466136
|
@ -39,7 +39,7 @@ class FakeAudioDeviceModule : public AudioDeviceModule {
|
|||
virtual int32_t SetStereoRecording(bool enable) { return 0; }
|
||||
virtual int32_t SetAGC(bool enable) { return 0; }
|
||||
virtual int32_t StopRecording() { return 0; }
|
||||
virtual int64_t TimeUntilNextProcess() { return 0; }
|
||||
virtual int64_t TimeUntilNextProcess() { return 100; }
|
||||
virtual void Process() {}
|
||||
virtual int32_t Terminate() { return 0; }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче