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

Issue 9826023: Merge AudioRendererImpl and AudioRendererBase; add NullAudioSink (Closed)

Created:
8 years, 9 months ago by vrk (LEFT CHROMIUM)
Modified:
8 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org, Chris Rogers, scherkus (not reviewing), acolwell GONE FROM CHROMIUM
Visibility:
Public.

Description

Merge AudioRendererImpl and AudioRendererBase; add NullAudioSink This CL removes AudioRendererImpl and replaces it with AudioRendererBase. NullAudioRenderer is also removed and replaced with NullAudioSink. Also, a subtle bug is fixed in AudioRendererBase to allow for smooth video playback when running Chrome with the --disable-audio flag. BUG=119549, 116645 TEST=media_unittests, playing video on Chrome/content_shell with and without --disable-audio flag should look identical Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131089

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 15

Patch Set 4 : Rebase ToT + address CR comments #

Total comments: 2

Patch Set 5 : Response to CR #

Patch Set 6 : Fix compiler errors #

Patch Set 7 : Rebase ToT #

Patch Set 8 : Fix win build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+633 lines, -978 lines) Patch
M content/content_renderer.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/audio_device.h View 1 2 3 3 chunks +2 lines, -18 lines 0 comments Download
M content/renderer/media/audio_device.cc View 1 2 3 4 5 6 3 chunks +3 lines, -6 lines 0 comments Download
M content/renderer/media/audio_hardware.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/media/audio_hardware.cc View 1 chunk +0 lines, -30 lines 0 comments Download
M content/renderer/media/audio_input_device.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
D content/renderer/media/audio_renderer_impl.h View 1 chunk +0 lines, -137 lines 0 comments Download
D content/renderer/media/audio_renderer_impl.cc View 1 chunk +0 lines, -229 lines 0 comments Download
D content/renderer/media/audio_renderer_impl_unittest.cc View 1 chunk +0 lines, -199 lines 0 comments Download
M content/renderer/media/render_audiosourceprovider.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/render_audiosourceprovider.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_impl.h View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_impl.cc View 1 2 3 4 4 chunks +9 lines, -8 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M media/audio/audio_util.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/audio_util.cc View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A media/audio/null_audio_sink.h View 1 2 3 4 5 6 7 1 chunk +65 lines, -0 lines 0 comments Download
A media/audio/null_audio_sink.cc View 1 2 3 1 chunk +110 lines, -0 lines 0 comments Download
M media/base/audio_renderer_sink.h View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M media/base/pipeline.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M media/filters/audio_renderer_base.h View 1 2 3 4 5 6 chunks +81 lines, -44 lines 0 comments Download
M media/filters/audio_renderer_base.cc View 1 2 3 4 5 6 11 chunks +236 lines, -66 lines 0 comments Download
M media/filters/audio_renderer_base_unittest.cc View 1 11 chunks +40 lines, -41 lines 0 comments Download
D media/filters/null_audio_renderer.h View 1 chunk +0 lines, -65 lines 0 comments Download
D media/filters/null_audio_renderer.cc View 1 chunk +0 lines, -95 lines 0 comments Download
M media/filters/pipeline_integration_test_base.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M media/media.gyp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M media/tools/player_wtl/movie.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M media/tools/player_x11/player_x11.cc View 1 2 3 4 5 3 chunks +4 lines, -2 lines 0 comments Download
M webkit/media/webmediaplayer_impl.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
vrk (LEFT CHROMIUM)
jam: content OWNERS tommi: webrtc uint32/size_t -> int changes enal: everything else! scherkus/crogers/acolwell: FYI! acolwell, ...
8 years, 9 months ago (2012-03-22 21:28:53 UTC) #1
jam
On 2012/03/22 21:28:53, Victoria Kirst wrote: > jam: content OWNERS lgtm for content files other ...
8 years, 9 months ago (2012-03-22 21:55:58 UTC) #2
scherkus (not reviewing)
very nice! few drive-by nits but not adding myself as a reviewer I didn't go ...
8 years, 9 months ago (2012-03-23 15:24:51 UTC) #3
tommi (sloooow) - chröme
lgtm for webrtc code. http://codereview.chromium.org/9826023/diff/4001/content/renderer/media/webrtc_audio_device_impl.h File content/renderer/media/webrtc_audio_device_impl.h (right): http://codereview.chromium.org/9826023/diff/4001/content/renderer/media/webrtc_audio_device_impl.h#newcode261 content/renderer/media/webrtc_audio_device_impl.h:261: return input_audio_parameters_.frames_per_buffer(); fyi - this ...
8 years, 9 months ago (2012-03-26 10:57:25 UTC) #4
vrk (LEFT CHROMIUM)
Ping enal! Addressed comments so far. https://chromiumcodereview.appspot.com/9826023/diff/4001/content/renderer/media/webrtc_audio_device_impl.h File content/renderer/media/webrtc_audio_device_impl.h (right): https://chromiumcodereview.appspot.com/9826023/diff/4001/content/renderer/media/webrtc_audio_device_impl.h#newcode261 content/renderer/media/webrtc_audio_device_impl.h:261: return input_audio_parameters_.frames_per_buffer(); On ...
8 years, 8 months ago (2012-04-02 21:17:54 UTC) #5
vrk (LEFT CHROMIUM)
BTW, I forgot to mention this before, but this CL attempts to exactly duplicate the ...
8 years, 8 months ago (2012-04-02 21:24:17 UTC) #6
enal1
On 2012/04/02 21:24:17, Victoria Kirst wrote: > BTW, I forgot to mention this before, but ...
8 years, 8 months ago (2012-04-03 16:11:58 UTC) #7
enal1
https://chromiumcodereview.appspot.com/9826023/diff/14001/media/filters/audio_renderer_base.cc File media/filters/audio_renderer_base.cc (right): https://chromiumcodereview.appspot.com/9826023/diff/14001/media/filters/audio_renderer_base.cc#newcode75 media/filters/audio_renderer_base.cc:75: state_ = kPaused; We already set paused state in ...
8 years, 8 months ago (2012-04-03 16:12:20 UTC) #8
vrk (LEFT CHROMIUM)
Thanks enal! On 2012/04/03 16:11:58, enal1 wrote: > On 2012/04/02 21:24:17, Victoria Kirst wrote: > ...
8 years, 8 months ago (2012-04-03 18:27:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vrk@chromium.org/9826023/22001
8 years, 8 months ago (2012-04-05 01:33:59 UTC) #10
commit-bot: I haz the power
Try job failure for 9826023-22001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-05 02:14:57 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vrk@chromium.org/9826023/30001
8 years, 8 months ago (2012-04-05 22:18:19 UTC) #12
commit-bot: I haz the power
8 years, 8 months ago (2012-04-06 03:17:46 UTC) #13
Change committed as 131089

Powered by Google App Engine
This is Rietveld 408576698