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 2475453003: Support floating-point audio output for Windows7+ (Closed)

Created:
4 years, 1 month ago by Raymond Toy
Modified:
4 years, 1 month ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support floating-point audio output for Windows7+ Instead of converting audio to 16-bit PCM, pass the audio data as floating-point directly on the low-latency path (WASAPI) BUG=659641 TEST=Run test url from bug and set gain to 0.00002 and hear output Committed: https://crrev.com/70fe19f8a20761c939444f2d3b8c6d1daf13c975 Cr-Commit-Position: refs/heads/master@{#429928}

Patch Set 1 #

Patch Set 2 : git cl format #

Total comments: 4

Patch Set 3 : Address review comments #

Patch Set 4 : Remove old comment and unused variable. #

Patch Set 5 : Fixup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -16 lines) Patch
M media/audio/win/audio_low_latency_output_win.cc View 1 2 3 4 6 chunks +23 lines, -16 lines 0 comments Download

Messages

Total messages: 29 (13 generated)
Raymond Toy
PTAL or suggest another reviewer.
4 years, 1 month ago (2016-11-02 18:32:38 UTC) #2
DaleCurtis
+tommi, lgtm though. That was way easier than expected. :o
4 years, 1 month ago (2016-11-02 19:05:24 UTC) #4
tommi (sloooow) - chröme
lgtm! Adding henrika@ to cc as FYI https://codereview.chromium.org/2475453003/diff/20001/media/audio/win/audio_low_latency_output_win.cc File media/audio/win/audio_low_latency_output_win.cc (right): https://codereview.chromium.org/2475453003/diff/20001/media/audio/win/audio_low_latency_output_win.cc#newcode110 media/audio/win/audio_low_latency_output_win.cc:110: format->wBitsPerSample = ...
4 years, 1 month ago (2016-11-02 20:23:05 UTC) #5
Raymond Toy
https://codereview.chromium.org/2475453003/diff/20001/media/audio/win/audio_low_latency_output_win.cc File media/audio/win/audio_low_latency_output_win.cc (right): https://codereview.chromium.org/2475453003/diff/20001/media/audio/win/audio_low_latency_output_win.cc#newcode110 media/audio/win/audio_low_latency_output_win.cc:110: format->wBitsPerSample = 32; On 2016/11/02 20:23:04, tommi (chrömium) wrote: ...
4 years, 1 month ago (2016-11-02 21:26:14 UTC) #6
tommi (sloooow) - chröme
lgtm
4 years, 1 month ago (2016-11-02 23:14:26 UTC) #11
henrika (OOO until Aug 14)
LGTM :-)
4 years, 1 month ago (2016-11-03 08:35:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2475453003/60001
4 years, 1 month ago (2016-11-03 15:41:47 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/324717)
4 years, 1 month ago (2016-11-03 18:55:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2475453003/60001
4 years, 1 month ago (2016-11-03 20:04:28 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/325072)
4 years, 1 month ago (2016-11-04 00:52:26 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2475453003/60001
4 years, 1 month ago (2016-11-04 14:54:38 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-04 17:20:39 UTC) #24
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/70fe19f8a20761c939444f2d3b8c6d1daf13c975 Cr-Commit-Position: refs/heads/master@{#429928}
4 years, 1 month ago (2016-11-04 17:36:44 UTC) #26
ynovikov
On 2016/11/04 17:36:44, commit-bot: I haz the power wrote: > Patchset 4 (id:??) landed as ...
4 years, 1 month ago (2016-11-04 20:30:43 UTC) #27
Jamie Madill
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2478893002/ by jmadill@chromium.org. ...
4 years, 1 month ago (2016-11-04 20:33:21 UTC) #28
Raymond Toy
4 years, 1 month ago (2016-11-04 20:38:49 UTC) #29
Message was sent while issue was closed.
On 2016/11/04 20:33:21, Jamie Madill wrote:
> A revert of this CL (patchset #4 id:60001) has been created in
> https://codereview.chromium.org/2478893002/ by mailto:jmadill@chromium.org.
> 
> The reason for reverting is: Seems to have broken Windows GPU bots. Examples:
> 
>
https://build.chromium.org/p/chromium.gpu.fyi/builders/Win7%20x64%20Release%2...
>
https://build.chromium.org/p/chromium.gpu.fyi/builders/Win7%20Release%20%28AM...
>
https://build.chromium.org/p/chromium.gpu.fyi/builders/Win8%20Release%20%28NV...
> .

I think this is because of 

  packet_size_bytes_ = params.GetBytesPerBuffer();

GetBytesPerBuffer() doesn't use the new bits_per_sample.

I'll upload a new CL.

Powered by Google App Engine
This is Rietveld 408576698