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

Issue 2008010: Fixes in AlsaPcmOutputStream. (Closed)

Created:
10 years, 7 months ago by Sergey Ulanov
Modified:
9 years, 7 months ago
CC:
chromium-reviews, scherkus (not reviewing), awong, Alpha Left Google, Paweł Hajdan Jr., fbarchard
Visibility:
Public.

Description

Removed AlsaPcmOutputStrem::Packet. Fixed bug in AlsaPcmOutputStream::ScheduleNextWrite which would cause high CPU consumption. BUG=28654 TEST=Audio still works on Linux Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=47333

Patch Set 1 : - #

Total comments: 4

Patch Set 2 : - #

Total comments: 9

Patch Set 3 : - #

Patch Set 4 : - #

Total comments: 2

Patch Set 5 : - #

Total comments: 2

Patch Set 6 : - #

Total comments: 2

Patch Set 7 : - #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -187 lines) Patch
M media/audio/linux/alsa_output.h View 1 2 7 chunks +12 lines, -22 lines 0 comments Download
M media/audio/linux/alsa_output.cc View 1 2 3 4 5 6 11 chunks +102 lines, -92 lines 0 comments Download
M media/audio/linux/alsa_output_unittest.cc View 2 3 4 5 6 20 chunks +95 lines, -73 lines 1 comment Download
M media/audio/linux/alsa_wrapper.h View 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M media/audio/linux/alsa_wrapper.cc View 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M media/base/seekable_buffer.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M media/base/seekable_buffer.cc View 1 chunk +16 lines, -0 lines 0 comments Download
media/base/seekable_buffer_unittest.cc View 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Sergey Ulanov
This is one more fix for the buffers bug. Also fixed CPU hogging with ALSA: ...
10 years, 7 months ago (2010-05-11 01:57:12 UTC) #1
Sergey Ulanov
ping.
10 years, 7 months ago (2010-05-12 22:38:32 UTC) #2
awong
http://codereview.chromium.org/2008010/diff/5001/6001 File media/audio/linux/alsa_output.cc (right): http://codereview.chromium.org/2008010/diff/5001/6001#newcode403 media/audio/linux/alsa_output.cc:403: bytes_per_output_frame_ = should_downmix_ ? 2 * bytes_per_sample_ : I ...
10 years, 7 months ago (2010-05-12 23:45:57 UTC) #3
Sergey Ulanov
http://codereview.chromium.org/2008010/diff/5001/6001 File media/audio/linux/alsa_output.cc (right): http://codereview.chromium.org/2008010/diff/5001/6001#newcode403 media/audio/linux/alsa_output.cc:403: bytes_per_output_frame_ = should_downmix_ ? 2 * bytes_per_sample_ : On ...
10 years, 7 months ago (2010-05-13 07:30:03 UTC) #4
awong
http://codereview.chromium.org/2008010/diff/10002/12002 File media/audio/linux/alsa_output.cc (right): http://codereview.chromium.org/2008010/diff/10002/12002#newcode625 media/audio/linux/alsa_output.cc:625: sample_rate_); On 2010/05/13 07:30:03, sergeyu wrote: > On 2010/05/12 ...
10 years, 7 months ago (2010-05-13 11:14:06 UTC) #5
fbarchard
just minor stuff http://codereview.chromium.org/2008010/diff/10002/12002 File media/audio/linux/alsa_output.cc (right): http://codereview.chromium.org/2008010/diff/10002/12002#newcode443 media/audio/linux/alsa_output.cc:443: BufferPacket(); sanity check - should we ...
10 years, 7 months ago (2010-05-13 17:01:22 UTC) #6
Sergey Ulanov
http://codereview.chromium.org/2008010/diff/10002/12002 File media/audio/linux/alsa_output.cc (right): http://codereview.chromium.org/2008010/diff/10002/12002#newcode443 media/audio/linux/alsa_output.cc:443: BufferPacket(); On 2010/05/13 17:01:22, fbarchard wrote: > sanity check ...
10 years, 7 months ago (2010-05-14 19:25:54 UTC) #7
scherkus (not reviewing)
nits but overall change is LGTM http://codereview.chromium.org/2008010/diff/25001/26001 File media/audio/linux/alsa_output.cc (right): http://codereview.chromium.org/2008010/diff/25001/26001#newcode651 media/audio/linux/alsa_output.cc:651: LOG(WARNING)<<next_fill_time_ms; debugging code? ...
10 years, 7 months ago (2010-05-14 19:37:51 UTC) #8
awong
LGTM with Andrew's comments. On Fri, May 14, 2010 at 12:37 PM, <scherkus@chromium.org> wrote: > ...
10 years, 7 months ago (2010-05-14 20:46:22 UTC) #9
Sergey Ulanov
http://codereview.chromium.org/2008010/diff/25001/26001 File media/audio/linux/alsa_output.cc (right): http://codereview.chromium.org/2008010/diff/25001/26001#newcode651 media/audio/linux/alsa_output.cc:651: LOG(WARNING)<<next_fill_time_ms; On 2010/05/14 19:37:52, scherkus wrote: > debugging code? ...
10 years, 7 months ago (2010-05-14 21:25:47 UTC) #10
scherkus (not reviewing)
10 years, 7 months ago (2010-05-14 21:28:50 UTC) #11
LGTM w/ one nit

http://codereview.chromium.org/2008010/diff/43001/44003
File media/audio/linux/alsa_output_unittest.cc (right):

http://codereview.chromium.org/2008010/diff/43001/44003#newcode51
media/audio/linux/alsa_output_unittest.cc:51: MOCK_METHOD3(PcmGetParams,
int(snd_pcm_t* handle, snd_pcm_uframes_t* buffer_size,
>80 chars

Powered by Google App Engine
This is Rietveld 408576698