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

Issue 824943002: Fix AudioPipeReader to use default pipe buffer size. (Closed)

Created:
6 years ago by Sergey Ulanov
Modified:
6 years ago
Reviewers:
Lambros
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix AudioPipeReader to use default pipe buffer size. Pulseaudio uses default pipe buffer size to calculate pipe latency, ignoring the actual buffer size set by the reading side. AudioPipeReader was setting buffer size that's about 2 times bigger than default. As result it reports incorrect latency and some clients did not work properly (particularly AudioContext API implementation in chrome). Now AudioPipeReader will be using default buffer size determined by the OS, which matches pulseaudio's behavior. BUG=442455 R=lambroslambrou@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/cbcd2ec76ca61e9f9e3d529f36011346d4e673da

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -18 lines) Patch
M remoting/host/linux/audio_pipe_reader.h View 1 chunk +6 lines, -0 lines 0 comments Download
M remoting/host/linux/audio_pipe_reader.cc View 1 4 chunks +12 lines, -18 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
Sergey Ulanov
6 years ago (2014-12-23 22:22:22 UTC) #3
Lambros
lgtm https://codereview.chromium.org/824943002/diff/20001/remoting/host/linux/audio_pipe_reader.cc File remoting/host/linux/audio_pipe_reader.cc (right): https://codereview.chromium.org/824943002/diff/20001/remoting/host/linux/audio_pipe_reader.cc#newcode130 remoting/host/linux/audio_pipe_reader.cc:130: pipe_buffer_size_ = fpathconf(pipe_.GetPlatformFile(), _PC_PIPE_BUF); I don't think this ...
6 years ago (2014-12-23 23:07:18 UTC) #4
Sergey Ulanov
https://codereview.chromium.org/824943002/diff/20001/remoting/host/linux/audio_pipe_reader.cc File remoting/host/linux/audio_pipe_reader.cc (right): https://codereview.chromium.org/824943002/diff/20001/remoting/host/linux/audio_pipe_reader.cc#newcode130 remoting/host/linux/audio_pipe_reader.cc:130: pipe_buffer_size_ = fpathconf(pipe_.GetPlatformFile(), _PC_PIPE_BUF); On 2014/12/23 23:07:18, Lambros wrote: ...
6 years ago (2014-12-24 00:01:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/824943002/40001
6 years ago (2014-12-24 00:02:32 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/45456)
6 years ago (2014-12-24 00:11:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/824943002/40001
6 years ago (2014-12-24 00:18:46 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/45462)
6 years ago (2014-12-24 00:27:46 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/cbcd2ec76ca61e9f9e3d529f36011346d4e673da Cr-Commit-Position: refs/heads/master@{#309593}
6 years ago (2014-12-24 00:45:02 UTC) #14
Sergey Ulanov
6 years ago (2014-12-24 00:45:07 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:40001) manually as
cbcd2ec76ca61e9f9e3d529f36011346d4e673da (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698