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

Issue 3299005: Implement audio recording for Linux via ALSA. (Closed)

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

Description

Implement audio recording for Linux via ALSA. There are no new unit tests because a cross platform unit test added in CL 3357004 covers this code. BUG=53598 TEST=media_unittests --gtest_filter=AudioInputTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=58409

Patch Set 1 #

Total comments: 14

Patch Set 2 : Addressed review comments. #

Total comments: 8

Patch Set 3 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+502 lines, -85 lines) Patch
A media/audio/linux/alsa_input.h View 1 2 1 chunk +68 lines, -0 lines 0 comments Download
A media/audio/linux/alsa_input.cc View 1 2 1 chunk +214 lines, -0 lines 0 comments Download
M media/audio/linux/alsa_output.h View 1 chunk +0 lines, -4 lines 0 comments Download
M media/audio/linux/alsa_output.cc View 8 chunks +23 lines, -73 lines 0 comments Download
M media/audio/linux/alsa_output_unittest.cc View 2 chunks +4 lines, -0 lines 0 comments Download
A media/audio/linux/alsa_util.h View 1 chunk +34 lines, -0 lines 0 comments Download
A media/audio/linux/alsa_util.cc View 1 chunk +101 lines, -0 lines 2 comments Download
M media/audio/linux/alsa_wrapper.h View 2 chunks +4 lines, -0 lines 0 comments Download
M media/audio/linux/alsa_wrapper.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M media/audio/linux/audio_manager_linux.cc View 1 2 4 chunks +34 lines, -6 lines 0 comments Download
M media/base/media_switches.h View 1 chunk +2 lines, -1 line 0 comments Download
M media/base/media_switches.cc View 1 chunk +3 lines, -1 line 0 comments Download
M media/media.gyp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Satish
10 years, 3 months ago (2010-09-02 17:01:20 UTC) #1
Sergey Ulanov
Mostly nits, looks good otherwise. You also need unittests for AlsaPcmInputStream. BTW, I recently changed ...
10 years, 3 months ago (2010-09-02 18:45:00 UTC) #2
scherkus (not reviewing)
nits deferring to seregyu/ajwong -- masters of linux audio! http://codereview.chromium.org/3299005/diff/1/2 File media/audio/linux/alsa_input.cc (right): http://codereview.chromium.org/3299005/diff/1/2#newcode21 media/audio/linux/alsa_input.cc:21: ...
10 years, 3 months ago (2010-09-02 19:08:22 UTC) #3
Satish
Thanks for the comments, I have addressed all comments except the "const char[]" one (will ...
10 years, 3 months ago (2010-09-02 19:35:31 UTC) #4
awong
http://codereview.chromium.org/3299005/diff/8001/9001 File media/audio/linux/alsa_input.cc (right): http://codereview.chromium.org/3299005/diff/8001/9001#newcode27 media/audio/linux/alsa_input.cc:27: } kBitsToFormatMap[] = { This looks a bit awkward. ...
10 years, 3 months ago (2010-09-02 19:53:53 UTC) #5
Satish
Thanks for the comments. As we agreed over chat, I have moved common code into ...
10 years, 3 months ago (2010-09-02 21:12:29 UTC) #6
awong
10 years, 3 months ago (2010-09-02 21:16:07 UTC) #7
LGTM with a couple of style nits.

http://codereview.chromium.org/3299005/diff/13001/14006
File media/audio/linux/alsa_util.cc (right):

http://codereview.chromium.org/3299005/diff/13001/14006#newcode46
media/audio/linux/alsa_util.cc:46: }
// namespace

http://codereview.chromium.org/3299005/diff/13001/14006#newcode100
media/audio/linux/alsa_util.cc:100: }
// namespace alsa_util

remove extra newline.

Powered by Google App Engine
This is Rietveld 408576698