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:
Paul Adenot 2017-12-15 17:05:42 -06:00
Родитель 7b3648e5fc
Коммит 1ca7466136
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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; }