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

Issue 2717623003: Add the ability to read/write to WAV files in FakeAudioDevice (Closed)

Created:
3 years, 10 months ago by oprypin_webrtc
Modified:
3 years, 9 months ago
Reviewers:
the sun, kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, kjellander_webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add the ability to read/write to WAV files in FakeAudioDevice BUG=webrtc:7229 Review-Url: https://codereview.webrtc.org/2717623003 Cr-Commit-Position: refs/heads/master@{#17230} Committed: https://chromium.googlesource.com/external/webrtc/+/a514584b9a594447b78ed15bba7504b5121d2fcd

Patch Set 1 #

Total comments: 38

Patch Set 2 : Address smaller codereview issues #

Patch Set 3 : Rebase #

Patch Set 4 : Split into FileReaderAudioDevice and FileWriterAudioDevice #

Patch Set 5 : Revert changing to a lambda #

Patch Set 6 : Don't run the thread all the time; add more checks #

Total comments: 15

Patch Set 7 : Implement file reading/writing in FakeAudioDevice instead #

Patch Set 8 : Add the ability to wait for a FakeAudioDevice to finish #

Patch Set 9 : Remove forgotten debug line #

Patch Set 10 : Remove obsolete files from build #

Total comments: 26

Patch Set 11 : Address review feedback #

Patch Set 12 : Drop the old FakeAudioDevice constructor #

Patch Set 13 : Prevent nested CritScope to fix 'use of an invalid mutex' #

Total comments: 26

Patch Set 14 : Address review feedback #

Total comments: 17

Patch Set 15 : Address review feedback #

Patch Set 16 : Avoid repetition when checking sample rate #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -58 lines) Patch
M webrtc/call/call_perf_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -1 line 0 comments Download
M webrtc/test/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/test/call_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -2 lines 0 comments Download
M webrtc/test/fake_audio_device.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +73 lines, -13 lines 0 comments Download
M webrtc/test/fake_audio_device.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +187 lines, -42 lines 0 comments Download

Messages

Total messages: 64 (37 generated)
oprypin_webrtc
3 years, 10 months ago (2017-02-24 13:58:45 UTC) #5
oprypin_webrtc
3 years, 10 months ago (2017-02-24 15:04:59 UTC) #8
perkj_webrtc
-perkj@ +solenberg@
3 years, 9 months ago (2017-02-27 06:49:23 UTC) #10
kwiberg-webrtc
Nicely written! Would it be possible (and reasonable...) to split this into separate classes for ...
3 years, 9 months ago (2017-02-28 13:43:47 UTC) #12
oprypin_webrtc
https://codereview.webrtc.org/2717623003/diff/1/webrtc/test/file_audio_device.cc File webrtc/test/file_audio_device.cc (right): https://codereview.webrtc.org/2717623003/diff/1/webrtc/test/file_audio_device.cc#newcode30 webrtc/test/file_audio_device.cc:30: : filename_(filename), On 2017/02/28 13:43:47, kwiberg-webrtc wrote: > Since ...
3 years, 9 months ago (2017-03-06 16:45:01 UTC) #16
kwiberg-webrtc
Good news: Except for what I complain about in the comments, this looks just like ...
3 years, 9 months ago (2017-03-07 10:11:58 UTC) #19
oprypin_webrtc
On 2017/03/07 10:11:58, kwiberg-webrtc wrote: > Bad news: solenberg@ had another idea about how to ...
3 years, 9 months ago (2017-03-07 12:36:32 UTC) #20
kwiberg-webrtc
On 2017/03/07 12:36:32, oprypin_webrtc wrote: > On 2017/03/07 10:11:58, kwiberg-webrtc wrote: > > Bad news: ...
3 years, 9 months ago (2017-03-07 14:33:16 UTC) #21
oprypin_webrtc
On 2017/03/07 14:33:16, kwiberg-webrtc wrote: > On 2017/03/07 12:36:32, oprypin_webrtc wrote: > > It is ...
3 years, 9 months ago (2017-03-07 15:03:57 UTC) #22
kwiberg-webrtc
On 2017/03/07 15:03:57, oprypin_webrtc wrote: > On 2017/03/07 14:33:16, kwiberg-webrtc wrote: > > On 2017/03/07 ...
3 years, 9 months ago (2017-03-07 20:38:14 UTC) #23
oprypin_webrtc
Hi, the CL has been reworked as suggested, requesting review. https://codereview.webrtc.org/2717623003/diff/120001/webrtc/test/file_audio_device.cc File webrtc/test/file_audio_device.cc (right): https://codereview.webrtc.org/2717623003/diff/120001/webrtc/test/file_audio_device.cc#newcode58 ...
3 years, 9 months ago (2017-03-09 08:23:24 UTC) #28
kwiberg-webrtc
Very nice! I have a bunch of nits, but it's very clear that this way ...
3 years, 9 months ago (2017-03-09 10:04:11 UTC) #33
oprypin_webrtc
https://codereview.webrtc.org/2717623003/diff/200001/webrtc/test/fake_audio_device.cc File webrtc/test/fake_audio_device.cc (right): https://codereview.webrtc.org/2717623003/diff/200001/webrtc/test/fake_audio_device.cc#newcode28 webrtc/test/fake_audio_device.cc:28: } // namespace On 2017/03/09 10:04:10, kwiberg-webrtc wrote: > ...
3 years, 9 months ago (2017-03-10 10:44:28 UTC) #37
kwiberg-webrtc
Thanks for hanging in there. It feels like we're almost done... https://codereview.webrtc.org/2717623003/diff/200001/webrtc/test/fake_audio_device.h File webrtc/test/fake_audio_device.h (right): ...
3 years, 9 months ago (2017-03-13 10:18:22 UTC) #40
oprypin_webrtc
https://codereview.webrtc.org/2717623003/diff/260001/webrtc/call/call_perf_tests.cc File webrtc/call/call_perf_tests.cc (right): https://codereview.webrtc.org/2717623003/diff/260001/webrtc/call/call_perf_tests.cc#newcode151 webrtc/call/call_perf_tests.cc:151: FakeAudioDevice::CreateDiscarder(48000), audio_rtp_speed); On 2017/03/13 10:18:21, kwiberg-webrtc wrote: > This ...
3 years, 9 months ago (2017-03-13 13:55:14 UTC) #41
kwiberg-webrtc
https://codereview.webrtc.org/2717623003/diff/260001/webrtc/call/call_perf_tests.cc File webrtc/call/call_perf_tests.cc (right): https://codereview.webrtc.org/2717623003/diff/260001/webrtc/call/call_perf_tests.cc#newcode151 webrtc/call/call_perf_tests.cc:151: FakeAudioDevice::CreateDiscarder(48000), audio_rtp_speed); On 2017/03/13 13:55:14, oprypin_webrtc wrote: > On ...
3 years, 9 months ago (2017-03-13 14:22:29 UTC) #46
oprypin_webrtc
https://codereview.webrtc.org/2717623003/diff/280001/webrtc/test/fake_audio_device.cc File webrtc/test/fake_audio_device.cc (right): https://codereview.webrtc.org/2717623003/diff/280001/webrtc/test/fake_audio_device.cc#newcode191 webrtc/test/fake_audio_device.cc:191: sample_rate == 44100 || sample_rate == 48000); On 2017/03/13 ...
3 years, 9 months ago (2017-03-13 15:11:36 UTC) #47
oprypin_webrtc
https://codereview.webrtc.org/2717623003/diff/260001/webrtc/test/fake_audio_device.h File webrtc/test/fake_audio_device.h (right): https://codereview.webrtc.org/2717623003/diff/260001/webrtc/test/fake_audio_device.h#newcode135 webrtc/test/fake_audio_device.h:135: rtc::BufferT<int16_t> recording_buffer_ GUARDED_BY(lock_); On 2017/03/13 14:22:26, kwiberg-webrtc wrote: > ...
3 years, 9 months ago (2017-03-13 15:35:20 UTC) #48
kwiberg-webrtc
https://codereview.webrtc.org/2717623003/diff/260001/webrtc/test/fake_audio_device.h File webrtc/test/fake_audio_device.h (right): https://codereview.webrtc.org/2717623003/diff/260001/webrtc/test/fake_audio_device.h#newcode135 webrtc/test/fake_audio_device.h:135: rtc::BufferT<int16_t> recording_buffer_ GUARDED_BY(lock_); On 2017/03/13 15:35:20, oprypin_webrtc wrote: > ...
3 years, 9 months ago (2017-03-14 10:02:03 UTC) #49
oprypin_webrtc
https://codereview.webrtc.org/2717623003/diff/260001/webrtc/test/fake_audio_device.h File webrtc/test/fake_audio_device.h (right): https://codereview.webrtc.org/2717623003/diff/260001/webrtc/test/fake_audio_device.h#newcode135 webrtc/test/fake_audio_device.h:135: rtc::BufferT<int16_t> recording_buffer_ GUARDED_BY(lock_); On 2017/03/14 10:02:03, kwiberg-webrtc wrote: > ...
3 years, 9 months ago (2017-03-14 11:58:13 UTC) #50
kwiberg-webrtc
lgtm, but see the question about the possibly redundant SetSize() call. Leave recording_buffer_ as it ...
3 years, 9 months ago (2017-03-14 13:46:47 UTC) #55
oprypin_webrtc
Thank you very much for the reviews, Karl! I really learned a lot in the ...
3 years, 9 months ago (2017-03-14 14:01:40 UTC) #56
kwiberg-webrtc
https://codereview.webrtc.org/2717623003/diff/260001/webrtc/test/fake_audio_device.h File webrtc/test/fake_audio_device.h (right): https://codereview.webrtc.org/2717623003/diff/260001/webrtc/test/fake_audio_device.h#newcode135 webrtc/test/fake_audio_device.h:135: rtc::BufferT<int16_t> recording_buffer_ GUARDED_BY(lock_); On 2017/03/14 14:01:40, oprypin_webrtc wrote: > ...
3 years, 9 months ago (2017-03-14 14:08:56 UTC) #57
kwiberg-webrtc
On 2017/03/14 14:01:40, oprypin_webrtc wrote: > Thank you very much for the reviews, Karl! I ...
3 years, 9 months ago (2017-03-14 14:12:40 UTC) #58
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/2717623003/320001
3 years, 9 months ago (2017-03-14 15:59:35 UTC) #60
commit-bot: I haz the power
Committed patchset #16 (id:320001) as https://chromium.googlesource.com/external/webrtc/+/a514584b9a594447b78ed15bba7504b5121d2fcd
3 years, 9 months ago (2017-03-14 16:01:53 UTC) #63
the sun
3 years, 9 months ago (2017-03-15 13:28:45 UTC) #64
Message was sent while issue was closed.
Very nice! LGTM

Powered by Google App Engine
This is Rietveld 408576698