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

Issue 155695: Replace the guts of AudioRendererBase with calls to scaling algorithm. (Closed)

Created:
11 years, 5 months ago by kylep
Modified:
7 years, 2 months ago
CC:
chromium-reviews_googlegroups.com, scherkus (not reviewing), fbarchard, awong, kylep
Visibility:
Public.

Description

Replace the guts of AudioRendererBase with calls to scaling algorithm. BUG=16011 TEST=audio_renderer_base_unittest.cc and buffer_queue_unittest.cc

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 17

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 6

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Total comments: 6

Patch Set 14 : '' #

Patch Set 15 : '' #

Total comments: 5

Patch Set 16 : '' #

Patch Set 17 : '' #

Patch Set 18 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -226 lines) Patch
M chrome/renderer/media/audio_renderer_impl.h View 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/renderer/media/audio_renderer_impl.cc View 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +7 lines, -9 lines 0 comments Download
M media/base/buffer_queue.h View 9 10 11 12 13 14 15 16 17 2 chunks +6 lines, -3 lines 0 comments Download
M media/base/buffer_queue.cc View 9 10 11 12 13 14 15 16 17 3 chunks +21 lines, -7 lines 0 comments Download
M media/base/buffer_queue_unittest.cc View 11 12 13 14 15 16 17 1 chunk +34 lines, -23 lines 0 comments Download
M media/base/mock_filters.h View 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +12 lines, -1 line 0 comments Download
M media/filters/audio_renderer_algorithm_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +6 lines, -3 lines 0 comments Download
M media/filters/audio_renderer_algorithm_base.cc View 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +13 lines, -12 lines 0 comments Download
M media/filters/audio_renderer_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +11 lines, -17 lines 0 comments Download
M media/filters/audio_renderer_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 9 chunks +58 lines, -116 lines 0 comments Download
MM media/filters/audio_renderer_base_unittest.cc View 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +8 lines, -6 lines 0 comments Download
M media/filters/audio_renderer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -5 lines 0 comments Download
M media/filters/audio_renderer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +3 lines, -5 lines 0 comments Download
M media/filters/null_audio_renderer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +0 lines, -6 lines 0 comments Download
M media/filters/null_audio_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +3 lines, -9 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
kylep
Ok, I _think_ this should be everything to get pitch-shifter into ARB. It needs more ...
11 years, 5 months ago (2009-07-17 21:24:24 UTC) #1
scherkus (not reviewing)
looking awesome! http://codereview.chromium.org/155695/diff/40/1031 File media/filters/audio_renderer_algorithm_base.cc (right): http://codereview.chromium.org/155695/diff/40/1031#newcode92 Line 92: request_read_callback_->Run(); this is over indented http://codereview.chromium.org/155695/diff/40/1027 ...
11 years, 5 months ago (2009-07-17 21:44:51 UTC) #2
Alpha Left Google
looking good! Please fix andrew's comments and add a unit test to AudioRendererBase to make ...
11 years, 5 months ago (2009-07-17 21:56:58 UTC) #3
Alpha Left Google
http://codereview.chromium.org/155695/diff/40/1027 File media/filters/audio_renderer_base.cc (right): http://codereview.chromium.org/155695/diff/40/1027#newcode53 Line 53: ParseMediaFormat(decoder_->media_format(), On 2009/07/17 21:44:51, scherkus wrote: > I ...
11 years, 5 months ago (2009-07-17 21:57:04 UTC) #4
kylep
Also added fix to arb where Initialize was not returning after it set error to ...
11 years, 5 months ago (2009-07-22 18:38:53 UTC) #5
Alpha Left Google
On 2009/07/22 18:38:53, kylep wrote: > Also added fix to arb where Initialize was not ...
11 years, 5 months ago (2009-07-22 20:45:04 UTC) #6
scherkus (not reviewing)
LGTM with tiny nits I would encourage you to test out this change with the ...
11 years, 5 months ago (2009-07-22 21:23:51 UTC) #7
kylep
Added some more comments, and fixed an issue with BufferQueue exploding on seek and eof. ...
11 years, 5 months ago (2009-07-23 01:07:40 UTC) #8
kylep
Ok, all the time logic is identical to before this changelist. It seems to me ...
11 years, 5 months ago (2009-07-23 18:10:09 UTC) #9
kylep
Changing the way BufferQueue calculates the time broke the unittest. I commented it out because ...
11 years, 5 months ago (2009-07-23 20:55:27 UTC) #10
scherkus (not reviewing)
it's looking good -- I'll try and give this code a test run sometime today ...
11 years, 4 months ago (2009-07-28 16:42:53 UTC) #11
kylep
Also rewrote the completely broken test and fixed the troubleshooting commented out lines. http://codereview.chromium.org/155695/diff/2074/2087 File ...
11 years, 4 months ago (2009-07-28 18:31:26 UTC) #12
scherkus (not reviewing)
looking good, few nits I'm building chrome with your patch right now... here goes nothing ...
11 years, 4 months ago (2009-07-29 18:27:09 UTC) #13
kylep
11 years, 4 months ago (2009-07-31 22:09:50 UTC) #14
Tested and retested. Works for everything except ogv with large gaps between
valid timestamps (tho I suspect this is a clock issue). I'm opening a bug for
that, but I think this patch is finally ready to go!

http://codereview.chromium.org/155695/diff/1190/1203
File media/base/buffer_queue.cc (right):

http://codereview.chromium.org/155695/diff/1190/1203#newcode48
Line 48: // See line 37.
On 2009/07/29 18:27:09, scherkus wrote:
> nit: guaranteed this comment will go out of date
> 
> just say something like "refer to TODO above" or better yet copy + paste it

Nevermind. We will always have a garbage value to check for, and 0 is as good as
any (and it's what we get with ogg).

http://codereview.chromium.org/155695/diff/1190/1205
File media/base/buffer_queue_unittest.cc (right):

http://codereview.chromium.org/155695/diff/1190/1205#newcode140
Line 140: // TODO(kylep): Fix the following test cases (see buffer_queue.cc).
On 2009/07/29 18:27:09, scherkus wrote:
> file a bug on yourself and add the bug number/url to this comment

Nevermind. Start-time = 0 is a garbage value.

Powered by Google App Engine
This is Rietveld 408576698