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

Issue 1769373003: AudioBus: Add a ToInterleavedFloat() method to AudioBus (Closed)

Created:
4 years, 9 months ago by eklavyamirani
Modified:
4 years, 4 months ago
Reviewers:
*mcasas
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, imcheng+watch_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, jasonroberts+watch_google.com, mkwst+moarreviews-renderer_chromium.org, xjz+watch_chromium.org, isheriff+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

AudioBus: Add a ToInterleavedFloat() method to AudioBus Bug = 580391 R = mcasas@chromium.org

Patch Set 1 #

Total comments: 12

Patch Set 2 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -21 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/audio_track_recorder.cc View 1 2 chunks +2 lines, -14 lines 0 comments Download
M media/base/audio_bus.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/audio_bus.cc View 1 1 chunk +16 lines, -0 lines 1 comment Download
M media/base/audio_bus_unittest.cc View 1 2 chunks +21 lines, -0 lines 3 comments Download
M media/cast/sender/audio_encoder.cc View 1 1 chunk +4 lines, -7 lines 1 comment Download

Messages

Total messages: 16 (5 generated)
eklavyamirani
4 years, 9 months ago (2016-03-08 02:00:34 UTC) #1
mcasas
Looking good, some comments. https://codereview.chromium.org/1769373003/diff/1/content/renderer/media/audio_track_recorder.cc File content/renderer/media/audio_track_recorder.cc (right): https://codereview.chromium.org/1769373003/diff/1/content/renderer/media/audio_track_recorder.cc#newcode81 content/renderer/media/audio_track_recorder.cc:81: audio_bus->ToInterleavedFloat(0, 0, audio_bus->frames(), Please inline ...
4 years, 9 months ago (2016-03-09 00:24:18 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1769373003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1769373003/1
4 years, 9 months ago (2016-03-09 00:27:16 UTC) #4
commit-bot: I haz the power
Dry run: The author eklavyamirani@gmail.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com ...
4 years, 9 months ago (2016-03-09 00:27:19 UTC) #6
eklavyamirani
Will publish the updated CL shortly. https://codereview.chromium.org/1769373003/diff/1/content/renderer/media/audio_track_recorder.cc File content/renderer/media/audio_track_recorder.cc (right): https://codereview.chromium.org/1769373003/diff/1/content/renderer/media/audio_track_recorder.cc#newcode81 content/renderer/media/audio_track_recorder.cc:81: audio_bus->ToInterleavedFloat(0, 0, audio_bus->frames(), ...
4 years, 9 months ago (2016-03-15 03:48:13 UTC) #8
mcasas
On 2016/03/15 03:48:13, eklavyamirani wrote: > Will publish the updated CL shortly. > > https://codereview.chromium.org/1769373003/diff/1/content/renderer/media/audio_track_recorder.cc ...
4 years, 8 months ago (2016-03-28 18:18:46 UTC) #11
eklavyamirani
https://codereview.chromium.org/1769373003/diff/20001/media/base/audio_bus_unittest.cc File media/base/audio_bus_unittest.cc (right): https://codereview.chromium.org/1769373003/diff/20001/media/base/audio_bus_unittest.cc#newcode394 media/base/audio_bus_unittest.cc:394: ASSERT_EQ(memcmp(test_array, kTestVectorFloat, Fixed the formatting on this in my ...
4 years, 8 months ago (2016-04-04 08:11:58 UTC) #12
mcasas
On 2016/04/04 08:11:58, eklavyamirani wrote: > https://codereview.chromium.org/1769373003/diff/20001/media/base/audio_bus_unittest.cc > File media/base/audio_bus_unittest.cc (right): > > https://codereview.chromium.org/1769373003/diff/20001/media/base/audio_bus_unittest.cc#newcode394 > ...
4 years, 8 months ago (2016-04-04 15:33:48 UTC) #13
mcasas
Apologies for the delay, didn't see it! https://codereview.chromium.org/1769373003/diff/1/media/base/audio_bus_unittest.cc File media/base/audio_bus_unittest.cc (right): https://codereview.chromium.org/1769373003/diff/1/media/base/audio_bus_unittest.cc#newcode389 media/base/audio_bus_unittest.cc:389: float test_array[arraysize(kTestVectorFloat)]; ...
4 years, 8 months ago (2016-04-11 23:47:08 UTC) #14
mcasas
On 2016/04/11 23:47:08, mcasas wrote: > Apologies for the delay, didn't see it! > > ...
4 years, 7 months ago (2016-05-12 16:42:58 UTC) #15
mcasas
4 years, 4 months ago (2016-07-27 14:42:09 UTC) #16
On 2016/05/12 16:42:58, mcasas wrote:
> On 2016/04/11 23:47:08, mcasas wrote:
> > Apologies for the delay, didn't see it!
> > 
> >
>
https://codereview.chromium.org/1769373003/diff/1/media/base/audio_bus_unitte...
> > File media/base/audio_bus_unittest.cc (right):
> > 
> >
>
https://codereview.chromium.org/1769373003/diff/1/media/base/audio_bus_unitte...
> > media/base/audio_bus_unittest.cc:389: float
> > test_array[arraysize(kTestVectorFloat)];
> > On 2016/03/15 03:48:13, eklavyamirani wrote:
> > > On 2016/03/09 00:24:18, mcasas wrote:
> > > > You might want to add a 
> > > > SCOPED_TRACE("float");
> > > > for this scope.
> > > 
> > > Done.
> > > 
> > > Is this to output information when the tests run?
> > 
> > Yes.
> > 
> >
https://codereview.chromium.org/1769373003/diff/20001/media/base/audio_bus.cc
> > File media/base/audio_bus.cc (right):
> > 
> >
>
https://codereview.chromium.org/1769373003/diff/20001/media/base/audio_bus.cc...
> > media/base/audio_bus.cc:304: int num_samples,
> > This parameter is called |int num_channels| in the
> > method declaration. Only one is correct, and beyond
> > that, if you allow the caller to specify |num_samples|,
> > then this method should be suffixed Partial like
> > in l.317.
> > 
> > Also try to follow the other ToInterleaved*() variable
> > naming convention, e.g. |dest|, |start_frame| etc.
> > 
> >
>
https://codereview.chromium.org/1769373003/diff/20001/media/base/audio_bus_un...
> > File media/base/audio_bus_unittest.cc (right):
> > 
> >
>
https://codereview.chromium.org/1769373003/diff/20001/media/base/audio_bus_un...
> > media/base/audio_bus_unittest.cc:382: // into a single linear output buffer
> > correctly
> > s/ToInterleavedFloat/ToInterleavedFloat()/
> > 
> > Classes like AudioBus do not need to be 
> > specified |as_variable|. 
> > 
> > Period at the end.
> > 
> >
>
https://codereview.chromium.org/1769373003/diff/20001/media/base/audio_bus_un...
> > media/base/audio_bus_unittest.cc:394: ASSERT_EQ(memcmp(test_array,
> > kTestVectorFloat,
> > On 2016/04/04 08:11:58, eklavyamirani wrote:
> > > Fixed the formatting on this in my local commit. Amend the commit posted
> here,
> > > or it goes as a separate patch?
> > 
> > Sorry, yes, when you have addressed the
> > reviewers' comments, upload a new patch,
> > then "Publish and mail comments" please.
> > 
> >
>
https://codereview.chromium.org/1769373003/diff/20001/media/cast/sender/audio...
> > File media/cast/sender/audio_encoder.cc (right):
> > 
> >
>
https://codereview.chromium.org/1769373003/diff/20001/media/cast/sender/audio...
> > media/cast/sender/audio_encoder.cc:286: DCHECK_EQ(audio_bus->channels(),
> > num_channels_);
> > nit: Expected value goes first, and I 
> > think in this case that's |num_channels_|.
> 
> eklavyamirani@ are you planning to continue with this CL?
> You were almost there! :)

https://codereview.chromium.org/2024993004/ addressed the issue,
so I'm going to close this CL. eklavyamirani@: thanks!

Powered by Google App Engine
This is Rietveld 408576698