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

Issue 11959018: Add a unified audio I/O backend for ChromeOS. (Closed)

Created:
7 years, 11 months ago by dgreid
Modified:
7 years, 8 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add a unified audio I/O backend for ChromeOS. Implementation of AudioOutputStream for ChromeOS that supports both input and output of audio samples in one callback. This is protected behind the kEnableWebAudioInput flag, and will remain behind it until its use can be made conditional on the type of stream being played. BUG=chromium-os:35272 TEST=added cras_unified_unittest and play with WebAudioInputDemo named "PedalBoard.js" on Link, Lumpy, and Lucas. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191976

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase and remove redundant code. #

Total comments: 2

Patch Set 3 : Add flow diagrams and pass latency to RenderIO #

Patch Set 4 : rebase,retest #

Patch Set 5 : fixed unittest too #

Total comments: 24

Patch Set 6 : DCHECKs moved copyright updated. #

Total comments: 7

Patch Set 7 : Save params, other cleanups suggested by Dale #

Unified diffs Side-by-side diffs Delta from patch set Stats (+658 lines, -705 lines) Patch
M media/audio/cras/audio_manager_cras.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M media/audio/cras/cras_input.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
D media/audio/cras/cras_output.h View 1 1 chunk +0 lines, -127 lines 0 comments Download
D media/audio/cras/cras_output.cc View 1 2 3 4 5 6 1 chunk +0 lines, -348 lines 0 comments Download
D media/audio/cras/cras_output_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -221 lines 0 comments Download
A media/audio/cras/cras_unified.h View 1 2 3 4 5 6 1 chunk +122 lines, -0 lines 0 comments Download
A media/audio/cras/cras_unified.cc View 1 2 3 4 5 6 1 chunk +369 lines, -0 lines 0 comments Download
A media/audio/cras/cras_unified_unittest.cc View 1 2 3 4 5 6 1 chunk +157 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 4 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
dgreid
All platform-side changes are landed in ToT ChromeOS. Need to reduce the buffer size, but ...
7 years, 11 months ago (2013-01-18 19:09:43 UTC) #1
Chris Rogers
Dylan, this is awesome! I've added more reviewers since I'll be on vacation for two ...
7 years, 11 months ago (2013-01-18 19:48:34 UTC) #2
scherkus (not reviewing)
https://codereview.chromium.org/11959018/diff/1/media/audio/linux/cras_unified.h File media/audio/linux/cras_unified.h (right): https://codereview.chromium.org/11959018/diff/1/media/audio/linux/cras_unified.h#newcode7 media/audio/linux/cras_unified.h:7: // CrasUnifiedStream object is *not* thread-safe and should only ...
7 years, 11 months ago (2013-01-23 20:51:21 UTC) #3
dgreid
rebased on top of xians change to add audio_manager_cras. Also remove CrasOutput in favor of ...
7 years, 10 months ago (2013-02-21 06:38:17 UTC) #4
henrika (OOO until Aug 14)
Adding xians since he knows the Linux audio backend really well. Dylan, it would be ...
7 years, 10 months ago (2013-02-21 08:35:57 UTC) #5
Chris Rogers
https://codereview.chromium.org/11959018/diff/11001/media/audio/cras/audio_manager_cras.cc File media/audio/cras/audio_manager_cras.cc (right): https://codereview.chromium.org/11959018/diff/11001/media/audio/cras/audio_manager_cras.cc#newcode85 media/audio/cras/audio_manager_cras.cc:85: return new CrasUnifiedStream(params, this); For the moment, I think ...
7 years, 10 months ago (2013-02-21 18:17:26 UTC) #6
dgreid
Thanks henrika, I added some pictures and plumbed up the delay to OnMoreIOData. On windows ...
7 years, 10 months ago (2013-02-22 02:09:34 UTC) #7
Chris Rogers
On 2013/02/22 02:09:34, dgreid wrote: > Thanks henrika, I added some pictures and plumbed up ...
7 years, 10 months ago (2013-02-22 02:13:21 UTC) #8
henrika (OOO until Aug 14)
"On windows why are you only updating sometimes? Does one of the system calls take ...
7 years, 10 months ago (2013-02-22 11:44:09 UTC) #9
dgreid
Rebased and Retested on top of tree. By itself this won't work yet, I'll need ...
7 years, 9 months ago (2013-03-20 16:13:51 UTC) #10
no longer working on chromium
On 2013/03/20 16:13:51, dgreid wrote: > Rebased and Retested on top of tree. > > ...
7 years, 9 months ago (2013-03-20 16:55:04 UTC) #11
dgreid
On 2013/03/20 16:55:04, xians1 wrote: > On 2013/03/20 16:13:51, dgreid wrote: > > Rebased and ...
7 years, 9 months ago (2013-03-20 17:01:23 UTC) #12
no longer working on chromium
On 2013/03/20 17:01:23, dgreid wrote: > On 2013/03/20 16:55:04, xians1 wrote: > > On 2013/03/20 ...
7 years, 9 months ago (2013-03-20 17:10:23 UTC) #13
Chris Rogers
It seems like it would be cleaner to make the string value be consistent across ...
7 years, 9 months ago (2013-03-20 17:34:21 UTC) #14
dgreid
On 2013/03/20 17:34:21, Chris Rogers wrote: > It seems like it would be cleaner to ...
7 years, 9 months ago (2013-03-20 20:43:51 UTC) #15
no longer working on chromium
https://codereview.chromium.org/11959018/diff/24002/media/audio/cras/cras_unified.cc File media/audio/cras/cras_unified.cc (right): https://codereview.chromium.org/11959018/diff/24002/media/audio/cras/cras_unified.cc#newcode1 media/audio/cras/cras_unified.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 9 months ago (2013-03-21 15:38:27 UTC) #16
dgreid
https://codereview.chromium.org/11959018/diff/24002/media/audio/cras/cras_unified.cc File media/audio/cras/cras_unified.cc (right): https://codereview.chromium.org/11959018/diff/24002/media/audio/cras/cras_unified.cc#newcode1 media/audio/cras/cras_unified.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 9 months ago (2013-03-21 17:18:44 UTC) #17
no longer working on chromium
lgtm
7 years, 9 months ago (2013-03-26 09:32:39 UTC) #18
DaleCurtis
lgtm % nits. I especially like that you've removed the old implementations in favor of ...
7 years, 9 months ago (2013-03-26 19:23:01 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgreid@chromium.org/11959018/38001
7 years, 8 months ago (2013-04-01 22:26:03 UTC) #20
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=113182
7 years, 8 months ago (2013-04-01 23:41:53 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgreid@chromium.org/11959018/38001
7 years, 8 months ago (2013-04-03 01:02:50 UTC) #22
commit-bot: I haz the power
7 years, 8 months ago (2013-04-03 04:16:47 UTC) #23
Message was sent while issue was closed.
Change committed as 191976

Powered by Google App Engine
This is Rietveld 408576698