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

Issue 10829183: Introduce AudioBus to replace std::vector<float*>. (Closed)

Created:
8 years, 4 months ago by DaleCurtis
Modified:
8 years, 4 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, tommi (sloooow) - chröme
Visibility:
Public.

Description

Introduce AudioBus to replace std::vector<float*> within AudioRenderSink::RenderCallback. The first step towards unifying our pipeline on float. Adds a new AudioBus class for managing audio channel data. Includes helper methods for shared memory transfers and common tasks such as zeroing the audio data. Inspired by WebKit's AudioBus. BUG=114700 TEST=Unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150660

Patch Set 1 : Cleanup. #

Total comments: 34

Patch Set 2 : Comments. #

Total comments: 28

Patch Set 3 : Mo' Comments! #

Patch Set 4 : Line endings? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -0 lines) Patch
A media/base/audio_bus.h View 1 2 3 1 chunk +72 lines, -0 lines 0 comments Download
A media/base/audio_bus.cc View 1 2 3 1 chunk +90 lines, -0 lines 0 comments Download
A media/base/audio_bus_unittest.cc View 1 2 1 chunk +127 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
DaleCurtis
PTAL. A preliminary look at what this looks like can be seen here https://chromiumcodereview.appspot.com/10823175 (only ...
8 years, 4 months ago (2012-08-04 02:34:03 UTC) #1
DaleCurtis
On 2012/08/04 02:34:03, DaleCurtis wrote: > PTAL. A preliminary look at what this looks like ...
8 years, 4 months ago (2012-08-04 03:12:32 UTC) #2
scherkus (not reviewing)
nice! mostly nits http://codereview.chromium.org/10829183/diff/5001/media/base/audio_bus.cc File media/base/audio_bus.cc (right): http://codereview.chromium.org/10829183/diff/5001/media/base/audio_bus.cc#newcode39 media/base/audio_bus.cc:39: DCHECK_EQ(reinterpret_cast<uintptr_t>(audio_data_vector_[i]) & idea: add static IsAligned() ...
8 years, 4 months ago (2012-08-06 18:55:34 UTC) #3
Chris Rogers
Excellent work, this looks great. As a little background, the class this was roughly based ...
8 years, 4 months ago (2012-08-06 19:40:26 UTC) #4
DaleCurtis
http://codereview.chromium.org/10829183/diff/5001/media/base/audio_bus.cc File media/base/audio_bus.cc (right): http://codereview.chromium.org/10829183/diff/5001/media/base/audio_bus.cc#newcode19 media/base/audio_bus.cc:19: // Choose a size such that each channel is ...
8 years, 4 months ago (2012-08-07 01:36:32 UTC) #5
scherkus (not reviewing)
lgtm w/ nits! nice to see this coming together! http://codereview.chromium.org/10829183/diff/4004/media/base/audio_bus.cc File media/base/audio_bus.cc (right): http://codereview.chromium.org/10829183/diff/4004/media/base/audio_bus.cc#newcode18 media/base/audio_bus.cc:18: ...
8 years, 4 months ago (2012-08-07 02:51:16 UTC) #6
henrika (OOO until Aug 14)
Great stuff Dale. Added some nits for the unit test. Glad to to see this ...
8 years, 4 months ago (2012-08-07 09:52:55 UTC) #7
DaleCurtis
crogers: any more comments? http://codereview.chromium.org/10829183/diff/4004/media/base/audio_bus.cc File media/base/audio_bus.cc (right): http://codereview.chromium.org/10829183/diff/4004/media/base/audio_bus.cc#newcode18 media/base/audio_bus.cc:18: static inline bool IsAligned(void* ptr) ...
8 years, 4 months ago (2012-08-07 18:29:45 UTC) #8
henrika (OOO until Aug 14)
LGTM. Question: what is the next step when this CL has landed?
8 years, 4 months ago (2012-08-07 18:36:34 UTC) #9
scherkus (not reviewing)
On 2012/08/07 18:36:34, henrika wrote: > LGTM. > > Question: what is the next step ...
8 years, 4 months ago (2012-08-07 18:39:49 UTC) #10
henrika (OOO until Aug 14)
one small step for man... On Tue, Aug 7, 2012 at 8:39 PM, <scherkus@chromium.org> wrote: ...
8 years, 4 months ago (2012-08-07 18:44:43 UTC) #11
DaleCurtis
On 2012/08/07 18:44:43, henrika wrote: > one small step for man... > > > On ...
8 years, 4 months ago (2012-08-07 19:18:38 UTC) #12
Chris Rogers
LGTM
8 years, 4 months ago (2012-08-08 21:51:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/10829183/12005
8 years, 4 months ago (2012-08-08 22:24:19 UTC) #14
commit-bot: I haz the power
Try job failure for 10829183-12005 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 4 months ago (2012-08-08 23:06:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/10829183/12005
8 years, 4 months ago (2012-08-08 23:27:15 UTC) #16
commit-bot: I haz the power
8 years, 4 months ago (2012-08-09 01:04:17 UTC) #17
Change committed as 150660

Powered by Google App Engine
This is Rietveld 408576698