Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Issue 2652803002: Refactor FakeAudioDevice to have separate methods for starting recording and playout. (Closed)

Created:
3 years, 11 months ago by perkj_webrtc
Modified:
3 years, 10 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun, stefan-webrtc, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

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} Committed: https://chromium.googlesource.com/external/webrtc/+/ac61b745df8eb918e8a39368fec7d7c3a890f221

Patch Set 1 #

Patch Set 2 : Made some methods private. Readded init. #

Total comments: 16

Patch Set 3 : Addressed comments. #

Total comments: 21

Patch Set 4 : Addressed peahs comments. #

Patch Set 5 : Fix bug with sample size. #

Total comments: 9

Patch Set 6 : Use 48000KHz sample rate. Changed from sine to a noise pulse. #

Total comments: 17

Patch Set 7 : Addressed review comments. #

Total comments: 36

Patch Set 8 : Removed drifting clock. #

Total comments: 22

Patch Set 9 : Addressed comments. #

Total comments: 7

Patch Set 10 : Moved initialization to ctor. Made StartRecording and StartPlayout to private. Fixed call_test #

Total comments: 7

Patch Set 11 : Addressed solenbergs comments. #

Patch Set 12 : fix size_t #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -134 lines) Patch
M webrtc/call/call_perf_tests.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -10 lines 0 comments Download
M webrtc/modules/audio_device/include/fake_audio_device.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -1 line 0 comments Download
M webrtc/test/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/test/call_test.cc View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -18 lines 0 comments Download
M webrtc/test/fake_audio_device.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +32 lines, -25 lines 0 comments Download
M webrtc/test/fake_audio_device.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +98 lines, -79 lines 0 comments Download

Messages

Total messages: 71 (42 generated)
perkj_webrtc
Please?
3 years, 11 months ago (2017-01-23 20:56:15 UTC) #4
the sun
A few comments. Don't have time to look more right now. peah@, can you take ...
3 years, 11 months ago (2017-01-24 08:58:12 UTC) #8
perkj_webrtc
ptal https://codereview.webrtc.org/2652803002/diff/20001/webrtc/call/call_perf_tests.cc File webrtc/call/call_perf_tests.cc (right): https://codereview.webrtc.org/2652803002/diff/20001/webrtc/call/call_perf_tests.cc#newcode273 webrtc/call/call_perf_tests.cc:273: fake_audio_device.StopPlayout(); On 2017/01/24 08:58:12, the sun (OOO until ...
3 years, 11 months ago (2017-01-24 09:57:03 UTC) #9
peah-webrtc
I'm not fully sure about the background to this class but my immediate feeling is ...
3 years, 11 months ago (2017-01-24 12:42:21 UTC) #10
perkj_webrtc
ptal https://codereview.webrtc.org/2652803002/diff/40001/webrtc/test/fake_audio_device.cc File webrtc/test/fake_audio_device.cc (right): https://codereview.webrtc.org/2652803002/diff/40001/webrtc/test/fake_audio_device.cc#newcode90 webrtc/test/fake_audio_device.cc:90: if (recording_) { On 2017/01/24 12:42:21, peah-webrtc wrote: ...
3 years, 11 months ago (2017-01-24 14:38:15 UTC) #11
peah-webrtc
https://codereview.webrtc.org/2652803002/diff/80001/webrtc/test/fake_audio_device.cc File webrtc/test/fake_audio_device.cc (right): https://codereview.webrtc.org/2652803002/diff/80001/webrtc/test/fake_audio_device.cc#newcode36 webrtc/test/fake_audio_device.cc:36: uint16_t peak_to_peak) Do you really need to specify frequency_in_hz ...
3 years, 11 months ago (2017-01-25 10:45:28 UTC) #16
perkj_webrtc
ptal https://codereview.webrtc.org/2652803002/diff/80001/webrtc/test/fake_audio_device.cc File webrtc/test/fake_audio_device.cc (right): https://codereview.webrtc.org/2652803002/diff/80001/webrtc/test/fake_audio_device.cc#newcode36 webrtc/test/fake_audio_device.cc:36: uint16_t peak_to_peak) On 2017/01/25 10:45:27, peah-webrtc wrote: > ...
3 years, 11 months ago (2017-01-25 13:43:25 UTC) #19
peah-webrtc
Great! Thanks for the new patch! I have some comments though. PTAL https://codereview.webrtc.org/2652803002/diff/100001/webrtc/test/fake_audio_device.cc File webrtc/test/fake_audio_device.cc ...
3 years, 10 months ago (2017-01-26 09:24:00 UTC) #22
perkj_webrtc
I learned a few tricks. Thanks PTAL https://codereview.webrtc.org/2652803002/diff/100001/webrtc/test/fake_audio_device.cc File webrtc/test/fake_audio_device.cc (right): https://codereview.webrtc.org/2652803002/diff/100001/webrtc/test/fake_audio_device.cc#newcode27 webrtc/test/fake_audio_device.cc:27: random_audio_.SetSize(num_samples); On ...
3 years, 10 months ago (2017-01-26 12:16:25 UTC) #25
peah-webrtc
Thanks for the update! I have some more comments which need to be addressed, though. ...
3 years, 10 months ago (2017-01-26 13:20:12 UTC) #26
peah-webrtc
One additional comment. https://codereview.webrtc.org/2652803002/diff/120001/webrtc/test/fake_audio_device.cc File webrtc/test/fake_audio_device.cc (right): https://codereview.webrtc.org/2652803002/diff/120001/webrtc/test/fake_audio_device.cc#newcode136 webrtc/test/fake_audio_device.cc:136: uint32_t new_mic_level; Please initialize new_mic_level.
3 years, 10 months ago (2017-01-26 13:25:18 UTC) #27
perkj_webrtc
Adding Danil as well since he seemed to have made the last modifications to the ...
3 years, 10 months ago (2017-01-29 13:25:20 UTC) #33
peah-webrtc
Thanks for the update! I think the class looks great now, but I have some ...
3 years, 10 months ago (2017-01-30 06:45:09 UTC) #36
peah-webrtc
Ah, hold on, you need a BUG issue number as well.
3 years, 10 months ago (2017-01-30 07:43:27 UTC) #37
perkj_webrtc
solenberg@ would you like to take a look? I think I need your approval. https://codereview.webrtc.org/2652803002/diff/140001/webrtc/test/call_test.cc ...
3 years, 10 months ago (2017-01-30 12:02:12 UTC) #42
peah-webrtc
I have some further comments. It is still an lgtm conditioned that I'm wrong about ...
3 years, 10 months ago (2017-01-30 17:06:40 UTC) #45
perkj_webrtc
https://codereview.webrtc.org/2652803002/diff/140001/webrtc/test/fake_audio_device.cc File webrtc/test/fake_audio_device.cc (right): https://codereview.webrtc.org/2652803002/diff/140001/webrtc/test/fake_audio_device.cc#newcode113 webrtc/test/fake_audio_device.cc:113: int32_t FakeAudioDevice::RegisterAudioCallback(AudioTransport* callback) { On 2017/01/30 17:06:39, peah-webrtc wrote: ...
3 years, 10 months ago (2017-01-31 06:50:35 UTC) #46
peah-webrtc
On 2017/01/31 06:50:35, perkj_webrtc wrote: > https://codereview.webrtc.org/2652803002/diff/140001/webrtc/test/fake_audio_device.cc > File webrtc/test/fake_audio_device.cc (right): > > https://codereview.webrtc.org/2652803002/diff/140001/webrtc/test/fake_audio_device.cc#newcode113 > ...
3 years, 10 months ago (2017-01-31 07:52:18 UTC) #47
the sun
Much better this way, thanks, only one mid-size comment. https://codereview.webrtc.org/2652803002/diff/160001/webrtc/test/fake_audio_device.cc File webrtc/test/fake_audio_device.cc (right): https://codereview.webrtc.org/2652803002/diff/160001/webrtc/test/fake_audio_device.cc#newcode31 webrtc/test/fake_audio_device.cc:31: ...
3 years, 10 months ago (2017-01-31 13:08:11 UTC) #48
perkj_webrtc
ptal https://codereview.webrtc.org/2652803002/diff/160001/webrtc/test/fake_audio_device.cc File webrtc/test/fake_audio_device.cc (right): https://codereview.webrtc.org/2652803002/diff/160001/webrtc/test/fake_audio_device.cc#newcode142 webrtc/test/fake_audio_device.cc:142: RTC_CHECK_EQ( On 2017/01/31 13:08:11, the sun wrote: > ...
3 years, 10 months ago (2017-01-31 14:14:05 UTC) #51
the sun
lgtm % nits https://codereview.webrtc.org/2652803002/diff/180001/webrtc/call/call_perf_tests.cc File webrtc/call/call_perf_tests.cc (right): https://codereview.webrtc.org/2652803002/diff/180001/webrtc/call/call_perf_tests.cc#newcode265 webrtc/call/call_perf_tests.cc:265: EXPECT_EQ(0, voe_base->StartSend(send_channel_id)); This line shouldn't be ...
3 years, 10 months ago (2017-01-31 16:27:08 UTC) #54
peah-webrtc
https://codereview.webrtc.org/2652803002/diff/140001/webrtc/test/fake_audio_device.cc File webrtc/test/fake_audio_device.cc (right): https://codereview.webrtc.org/2652803002/diff/140001/webrtc/test/fake_audio_device.cc#newcode113 webrtc/test/fake_audio_device.cc:113: int32_t FakeAudioDevice::RegisterAudioCallback(AudioTransport* callback) { On 2017/01/31 06:50:35, perkj_webrtc wrote: ...
3 years, 10 months ago (2017-01-31 16:37:33 UTC) #55
perkj_webrtc
https://codereview.webrtc.org/2652803002/diff/160001/webrtc/test/fake_audio_device.cc File webrtc/test/fake_audio_device.cc (right): https://codereview.webrtc.org/2652803002/diff/160001/webrtc/test/fake_audio_device.cc#newcode31 webrtc/test/fake_audio_device.cc:31: class FakeAudioDevice::PulsedNoiseCapturer { On 2017/01/31 16:37:33, peah-webrtc wrote: > ...
3 years, 10 months ago (2017-01-31 19:11:07 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2652803002/200001
3 years, 10 months ago (2017-01-31 19:11:26 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/12876)
3 years, 10 months ago (2017-01-31 19:16:36 UTC) #61
perkj_webrtc
TBR: henrika@webrtc.org as owner of audio_device_module stefan@webrtc.org as owner of webrtc/test
3 years, 10 months ago (2017-01-31 20:32:55 UTC) #63
perkj_webrtc
3 years, 10 months ago (2017-01-31 20:33:36 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2652803002/220001
3 years, 10 months ago (2017-01-31 20:33:57 UTC) #68
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 21:32:57 UTC) #71
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/external/webrtc/+/ac61b745df8eb918e8a39368f...

Powered by Google App Engine
This is Rietveld 408576698