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

Issue 2469023002: Support floating-point audio output for Linux (Closed)

Created:
4 years, 1 month ago by Raymond Toy
Modified:
4 years, 1 month ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support floating-point audio output for Linux Instead of converting the audio to 16-bit PCM, pass the audio data directly to Pulse Audio as floating-point numbers and let Pulse Audio do whatever is necessary. Using the test url, a gain of 0.00002 produces output on my Z620 where it didn't before. There is silence for a gain of 0.00001, but that could be due to many things including pulse audio, the actual audio driver, the audio HW, and my headphones. BUG=659641 TEST=Run test url from bug and set gain to 0.00002 and hear output Committed: https://crrev.com/9017c72f75614b18f1af80e90c77d172413644bc Cr-Commit-Position: refs/heads/master@{#429301}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Implement correctly #

Total comments: 10

Patch Set 3 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M media/audio/pulse/pulse_output.cc View 1 2 3 chunks +11 lines, -5 lines 0 comments Download
M media/audio/pulse/pulse_util.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
DaleCurtis
https://codereview.chromium.org/2469023002/diff/1/content/renderer/renderer_blink_platform_impl.cc File content/renderer/renderer_blink_platform_impl.cc (right): https://codereview.chromium.org/2469023002/diff/1/content/renderer/renderer_blink_platform_impl.cc#newcode751 content/renderer/renderer_blink_platform_impl.cc:751: layout, static_cast<int>(sample_rate), 32, Drop this change. I can't guarantee ...
4 years, 1 month ago (2016-11-01 18:51:37 UTC) #2
Raymond Toy
https://codereview.chromium.org/2469023002/diff/1/media/audio/pulse/pulse_util.cc File media/audio/pulse/pulse_util.cc (right): https://codereview.chromium.org/2469023002/diff/1/media/audio/pulse/pulse_util.cc#newcode182 media/audio/pulse/pulse_util.cc:182: #if 1 On 2016/11/01 18:51:37, DaleCurtis wrote: > #if ...
4 years, 1 month ago (2016-11-01 20:00:50 UTC) #3
Raymond Toy
https://codereview.chromium.org/2469023002/diff/1/content/renderer/renderer_blink_platform_impl.cc File content/renderer/renderer_blink_platform_impl.cc (right): https://codereview.chromium.org/2469023002/diff/1/content/renderer/renderer_blink_platform_impl.cc#newcode751 content/renderer/renderer_blink_platform_impl.cc:751: layout, static_cast<int>(sample_rate), 32, On 2016/11/01 18:51:37, DaleCurtis wrote: > ...
4 years, 1 month ago (2016-11-01 22:01:47 UTC) #4
Raymond Toy
PTAL. I think this implements this correctly. Some simple webaudio tests show that it is ...
4 years, 1 month ago (2016-11-01 22:50:58 UTC) #5
DaleCurtis
https://codereview.chromium.org/2469023002/diff/20001/media/audio/pulse/pulse_output.cc File media/audio/pulse/pulse_output.cc (right): https://codereview.chromium.org/2469023002/diff/20001/media/audio/pulse/pulse_output.cc#newcode52 media/audio/pulse/pulse_output.cc:52: // floats now. s/ now// -- no need to ...
4 years, 1 month ago (2016-11-01 23:07:53 UTC) #6
Raymond Toy
https://codereview.chromium.org/2469023002/diff/20001/media/audio/pulse/pulse_output.cc File media/audio/pulse/pulse_output.cc (right): https://codereview.chromium.org/2469023002/diff/20001/media/audio/pulse/pulse_output.cc#newcode52 media/audio/pulse/pulse_output.cc:52: // floats now. On 2016/11/01 23:07:53, DaleCurtis wrote: > ...
4 years, 1 month ago (2016-11-01 23:18:50 UTC) #7
DaleCurtis
Update description with details of this change and indicate this is only for Linux. Otherwise ...
4 years, 1 month ago (2016-11-01 23:25:24 UTC) #8
Raymond Toy
I was thinking of doing wasapi too in this CL. I'm fine with doing then ...
4 years, 1 month ago (2016-11-01 23:27:44 UTC) #9
DaleCurtis
I'd do it separately. We'll need different reviewers.
4 years, 1 month ago (2016-11-02 00:03:19 UTC) #10
Raymond Toy
On 2016/11/01 23:25:24, DaleCurtis wrote: > Update description with details of this change and indicate ...
4 years, 1 month ago (2016-11-02 15:24:37 UTC) #13
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/2469023002/40001
4 years, 1 month ago (2016-11-02 15:25:05 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-02 16:37:10 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-02 16:51:16 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9017c72f75614b18f1af80e90c77d172413644bc
Cr-Commit-Position: refs/heads/master@{#429301}

Powered by Google App Engine
This is Rietveld 408576698