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

Issue 12328084: Fix the choppiness for the pulse impl when using a smaller buffer size like 512 samples (Closed)

Created:
7 years, 10 months ago by no longer working on chromium
Modified:
7 years, 9 months ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Fix the choppiness for the pulse impl when using a smaller buffer size like 512 samples. The audio using pulse can be choppy when the buffer size is small. It is simply because we do not feed the data quick enough. The patch check if the available space in the driver, if it is more than a packet, it will call FulfillWriteRequest immediately to fill the buffer. TEST=enable pulse, using https://webrtc-demos.appspot.com/html/pc1.html to make a call, make sure the audio is smooth.

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M media/audio/pulse/pulse.sigs View 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/pulse/pulse_output.cc View 1 chunk +8 lines, -0 lines 4 comments Download

Messages

Total messages: 6 (0 generated)
no longer working on chromium
Dale, could you please take a look at the quick fix? Thanks SX
7 years, 10 months ago (2013-02-25 14:33:50 UTC) #1
DaleCurtis
https://codereview.chromium.org/12328084/diff/1/media/audio/pulse/pulse_output.cc File media/audio/pulse/pulse_output.cc (right): https://codereview.chromium.org/12328084/diff/1/media/audio/pulse/pulse_output.cc#newcode292 media/audio/pulse/pulse_output.cc:292: size_t avialable_space = pa_stream_writable_size(pa_stream_); s/avialable_space/available_space/ https://codereview.chromium.org/12328084/diff/1/media/audio/pulse/pulse_output.cc#newcode297 media/audio/pulse/pulse_output.cc:297: FulfillWriteRequest(params_.GetBytesPerBuffer()); Hmm, ...
7 years, 10 months ago (2013-02-25 19:01:29 UTC) #2
no longer working on chromium
https://codereview.chromium.org/12328084/diff/1/media/audio/pulse/pulse_output.cc File media/audio/pulse/pulse_output.cc (right): https://codereview.chromium.org/12328084/diff/1/media/audio/pulse/pulse_output.cc#newcode292 media/audio/pulse/pulse_output.cc:292: size_t avialable_space = pa_stream_writable_size(pa_stream_); On 2013/02/25 19:01:29, DaleCurtis wrote: ...
7 years, 10 months ago (2013-02-25 20:03:19 UTC) #3
DaleCurtis
In local testing this still caused glitching for me. I was able to fix it ...
7 years, 10 months ago (2013-02-26 00:53:00 UTC) #4
no longer working on chromium
On 2013/02/26 00:53:00, DaleCurtis wrote: > In local testing this still caused glitching for me. ...
7 years, 10 months ago (2013-02-26 13:31:20 UTC) #5
no longer working on chromium
7 years, 10 months ago (2013-02-26 18:33:31 UTC) #6
Dale, I uploaded a CL to make the pulse to use native sample rate there,
https://codereview.chromium.org/12316131/, if we are able to land that CL and
your CL, we should be able to enable Pulse as the default IO.

Since this CL does not fix the audio problem, I am going to close it.

Powered by Google App Engine
This is Rietveld 408576698