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

Issue 1864483002: Forward output glitch information from stream WebRTC log (Closed)

Created:
4 years, 8 months ago by Henrik Grunell
Modified:
4 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, miu+watch_chromium.org, posciak+watch_chromium.org, vanellope-cl_google.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Forward output glitch information from stream WebRTC log * A callback is added as input parameter on AudioManager create stream functions. * OnLogMessage() function is added to the AudioLog interface. * The AudioOutputDispatcherImpl gives AudioLog::OnLogMessage() as callback when creating an output stream. * AudioInputController gives AudioInputController::LogMessage() (new function) as callback when creating an input stream. In this function, the message is passed to AudioInputRendererHost::OnLog(). * In both input and output cases, the message is then passed to the WebRTC log. * The Mac input and output streams inform about OS glitches via the callback. BUG=610967 Committed: https://crrev.com/2b2114872f08a1fcfe2a6fb284b645a8152da85c Cr-Commit-Position: refs/heads/master@{#396722}

Patch Set 1 #

Patch Set 2 : Cleanup. #

Total comments: 4

Patch Set 3 : New approach - added function to AudioLog interface. #

Patch Set 4 : Cleaning. #

Patch Set 5 : Finished up for review. #

Total comments: 18

Patch Set 6 : Code review (olka@ and dalecurtis@). Added callback for input and linear too. #

Total comments: 2

Patch Set 7 : Rebase. #

Patch Set 8 : Fixed several platform specific compile errors. #

Patch Set 9 : Updated unit tests to test the log message. Fixed more build errors. #

Patch Set 10 : Fixed cast compile error. #

Patch Set 11 : Rebase. #

Patch Set 12 : Fixed include path. #

Patch Set 13 : Now really fixing the cast compile error. I hope. Really. #

Patch Set 14 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+411 lines, -210 lines) Patch
M chromecast/media/audio/cast_audio_manager.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -4 lines 0 comments Download
M chromecast/media/audio/cast_audio_manager.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -4 lines 0 comments Download
M chromecast/media/audio/cast_audio_output_stream_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -2 lines 0 comments Download
M components/audio_modem/audio_recorder_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/media/media_internals.cc View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M media/audio/alsa/alsa_output_unittest.cc View 1 2 3 4 5 1 chunk +11 lines, -7 lines 0 comments Download
M media/audio/alsa/audio_manager_alsa.h View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M media/audio/alsa/audio_manager_alsa.cc View 1 2 3 4 5 1 chunk +10 lines, -4 lines 0 comments Download
M media/audio/android/audio_android_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M media/audio/android/audio_manager_android.h View 1 2 3 4 5 6 7 1 chunk +14 lines, -7 lines 0 comments Download
M media/audio/android/audio_manager_android.cc View 1 2 3 4 5 6 7 8 5 chunks +19 lines, -10 lines 0 comments Download
M media/audio/audio_input_controller.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M media/audio/audio_input_controller.cc View 1 2 3 4 5 11 chunks +20 lines, -14 lines 0 comments Download
M media/audio/audio_input_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M media/audio/audio_logging.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M media/audio/audio_low_latency_input_output_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M media/audio/audio_manager.h View 1 2 3 4 5 4 chunks +9 lines, -2 lines 0 comments Download
M media/audio/audio_manager_base.h View 1 2 3 4 5 2 chunks +16 lines, -7 lines 0 comments Download
M media/audio/audio_manager_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +8 lines, -6 lines 0 comments Download
M media/audio/audio_output_dispatcher_impl.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download
M media/audio/audio_output_proxy_unittest.cc View 1 2 3 4 5 20 chunks +52 lines, -37 lines 0 comments Download
M media/audio/cras/audio_manager_cras.h View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M media/audio/cras/audio_manager_cras.cc View 1 2 3 4 5 2 chunks +10 lines, -4 lines 0 comments Download
M media/audio/fake_audio_log_factory.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/fake_audio_manager.h View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M media/audio/fake_audio_manager.cc View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M media/audio/mac/audio_auhal_mac.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -1 line 0 comments Download
M media/audio/mac/audio_auhal_mac.cc View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -6 lines 0 comments Download
M media/audio/mac/audio_auhal_mac_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +19 lines, -5 lines 0 comments Download
M media/audio/mac/audio_low_latency_input_mac.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -1 line 0 comments Download
M media/audio/mac/audio_low_latency_input_mac.cc View 1 2 3 4 5 6 7 8 5 chunks +14 lines, -7 lines 0 comments Download
M media/audio/mac/audio_low_latency_input_mac_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -2 lines 0 comments Download
M media/audio/mac/audio_manager_mac.h View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M media/audio/mac/audio_manager_mac.cc View 1 2 3 4 5 6 7 8 5 chunks +14 lines, -7 lines 0 comments Download
M media/audio/mock_audio_manager.h View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M media/audio/mock_audio_manager.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M media/audio/pulse/audio_manager_pulse.h View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M media/audio/pulse/audio_manager_pulse.cc View 1 2 3 4 5 2 chunks +10 lines, -4 lines 0 comments Download
M media/audio/win/audio_low_latency_input_win_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M media/audio/win/audio_low_latency_output_win_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M media/audio/win/audio_manager_win.h View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M media/audio/win/audio_manager_win.cc View 1 2 3 4 5 4 chunks +10 lines, -4 lines 0 comments Download
M media/audio/win/audio_output_win_unittest.cc View 1 2 3 4 5 6 7 8 13 chunks +21 lines, -21 lines 0 comments Download

Messages

Total messages: 61 (27 generated)
Henrik Grunell
Dale: can you have a look at the idea here: are you OK with using ...
4 years, 8 months ago (2016-04-05 15:13:57 UTC) #4
o1ka
I think it looks fine. https://codereview.chromium.org/1864483002/diff/20001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): https://codereview.chromium.org/1864483002/diff/20001/content/browser/renderer_host/media/media_stream_manager.cc#newcode417 content/browser/renderer_host/media/media_stream_manager.cc:417: media::InitWebRtcLoggingCallback(&MediaStreamManager::SendMessageToNativeLog); I would do ...
4 years, 8 months ago (2016-04-05 15:28:42 UTC) #5
DaleCurtis
https://codereview.chromium.org/1864483002/diff/20001/media/audio/mac/audio_low_latency_input_mac.cc File media/audio/mac/audio_low_latency_input_mac.cc (right): https://codereview.chromium.org/1864483002/diff/20001/media/audio/mac/audio_low_latency_input_mac.cc#newcode1331 media/audio/mac/audio_low_latency_input_mac.cc:1331: WebRtcLogMessage("(Example) Here the stats will be logged."); No, this ...
4 years, 8 months ago (2016-04-05 21:56:52 UTC) #6
Henrik Grunell
I draft implemented a new approach. It compiles on Linux, works, and also spits out ...
4 years, 8 months ago (2016-04-06 12:25:31 UTC) #8
DaleCurtis
Seems okay, instead of passing the AudioLog all the way down into the streams, we ...
4 years, 8 months ago (2016-04-06 21:18:10 UTC) #9
DaleCurtis
Whoops forgot the why in that statement: It allows the streams to not have to ...
4 years, 8 months ago (2016-04-06 21:18:55 UTC) #10
Henrik Grunell
Ptal. I plan to create a CL for input tomorrow. I couldn't access bugs.chromium.org so ...
4 years, 7 months ago (2016-05-17 13:03:35 UTC) #15
Henrik Grunell
Added sievers for trivial content/* changes, please review. Dale: please review as well.
4 years, 7 months ago (2016-05-18 13:03:55 UTC) #18
o1ka
Confused about input/output and declaration/usage mismatches. Could you clarify? https://codereview.chromium.org/1864483002/diff/140001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/1864483002/diff/140001/media/audio/android/audio_manager_android.cc#newcode222 media/audio/android/audio_manager_android.cc:222: ...
4 years, 7 months ago (2016-05-18 14:00:17 UTC) #19
DaleCurtis
Instead of passing a statistics cb should we just pass the audio log into the ...
4 years, 7 months ago (2016-05-19 00:44:02 UTC) #20
Henrik Grunell
On 2016/05/19 00:44:02, DaleCurtis wrote: > Instead of passing a statistics cb should we just ...
4 years, 7 months ago (2016-05-19 08:26:13 UTC) #21
DaleCurtis
Haha sorry, I blame vacation :) StatsCB is fine with me, I'll take a look ...
4 years, 7 months ago (2016-05-19 18:53:28 UTC) #22
DaleCurtis
https://codereview.chromium.org/1864483002/diff/140001/media/audio/audio_logging.h File media/audio/audio_logging.h (right): https://codereview.chromium.org/1864483002/diff/140001/media/audio/audio_logging.h#newcode54 media/audio/audio_logging.h:54: virtual void OnStatistics(int component_id, It seems this should just ...
4 years, 7 months ago (2016-05-19 20:34:37 UTC) #23
Henrik Grunell
Code review fixes. I've added for input streams and "linear" streams as well in this ...
4 years, 7 months ago (2016-05-23 17:13:55 UTC) #24
DaleCurtis
lgtm https://codereview.chromium.org/1864483002/diff/160001/media/audio/audio_output_dispatcher_impl.cc File media/audio/audio_output_dispatcher_impl.cc (right): https://codereview.chromium.org/1864483002/diff/160001/media/audio/audio_output_dispatcher_impl.cc#newcode150 media/audio/audio_output_dispatcher_impl.cc:150: const int stream_id = audio_stream_id_; audio_stream_id_++; they're free ...
4 years, 7 months ago (2016-05-23 18:39:47 UTC) #25
Henrik Grunell
sievers: content/browser/* slan: chromecast/* xiyuan: components/audio_modem/* The above are trivial changes. Changes since patch set ...
4 years, 7 months ago (2016-05-25 14:27:36 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864483002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864483002/220001
4 years, 7 months ago (2016-05-25 14:28:55 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/166085)
4 years, 7 months ago (2016-05-25 14:44:21 UTC) #34
DaleCurtis
still lgtm
4 years, 7 months ago (2016-05-25 19:58:55 UTC) #35
xiyuan
components/audio_modem LGTM
4 years, 7 months ago (2016-05-25 23:41:42 UTC) #36
slan
lgtm % cast_shell_linux errors.
4 years, 7 months ago (2016-05-26 00:17:23 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864483002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864483002/260001
4 years, 7 months ago (2016-05-26 10:20:47 UTC) #39
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/166765)
4 years, 7 months ago (2016-05-26 10:35:30 UTC) #41
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864483002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864483002/280001
4 years, 7 months ago (2016-05-26 11:05:32 UTC) #43
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/166772)
4 years, 7 months ago (2016-05-26 11:22:17 UTC) #45
no sievers
content lgtm
4 years, 7 months ago (2016-05-26 19:54:30 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864483002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864483002/300001
4 years, 7 months ago (2016-05-26 20:34:05 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/12120) ios-device-gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 7 months ago (2016-05-26 20:37:20 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864483002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864483002/320001
4 years, 6 months ago (2016-05-30 11:23:06 UTC) #54
commit-bot: I haz the power
Committed patchset #14 (id:320001)
4 years, 6 months ago (2016-05-30 13:51:03 UTC) #56
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/2b2114872f08a1fcfe2a6fb284b645a8152da85c Cr-Commit-Position: refs/heads/master@{#396722}
4 years, 6 months ago (2016-05-30 13:52:23 UTC) #58
ericrk
A revert of this CL (patchset #14 id:320001) has been created in https://codereview.chromium.org/2023943002/ by ericrk@chromium.org. ...
4 years, 6 months ago (2016-05-30 18:13:22 UTC) #59
Guido Urdaneta
A revert of this CL (patchset #14 id:320001) has been created in https://codereview.chromium.org/2025733003/ by guidou@chromium.org. ...
4 years, 6 months ago (2016-05-31 16:05:58 UTC) #60
Henrik Grunell
4 years, 6 months ago (2016-06-01 07:15:21 UTC) #61
Message was sent while issue was closed.
On 2016/05/31 16:05:58, Guido Urdaneta wrote:
> A revert of this CL (patchset #14 id:320001) has been created in
> https://codereview.chromium.org/2025733003/ by mailto:guidou@chromium.org.
> 
> The reason for reverting is: Suspect of causing WebRTC Linux Tester bot to
fail.
> 
> 
> See
>
https://build.chromium.org/p/chromium.webrtc/builders/Linux%20Tester/builds/1...
> 
> Will reland if the revert does not fix the bot..

For the record, this last revert didn't land. It was supposed to be a revert of
the re-landed CL, so reverting this CL failed. Anyway, the re-landed CL was not
the cause of the bot failure.

Powered by Google App Engine
This is Rietveld 408576698