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

Issue 7060011: Adding GetAudioInputDeviceNames to AudioManager, this function is supposed to do device enumerati... (Closed)

Created:
9 years, 7 months ago by no longer working on chromium
Modified:
9 years, 6 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, sjl, ddorwin+watch_chromium.org, fischman+watch_chromium.org, Paweł Hajdan Jr., acolwell GONE FROM CHROMIUM, annacc, pam+watch_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), henrika (OOO until Aug 14), mflodman1, niklase
Visibility:
Public.

Description

Adding GetAudioInputDeviceNames to AudioManager, this function is supposed to do device enumeration. And the current version only support "default" device Example on how to use the function is AudioInputDeviceNames device_names; AudioManager::GetAudioManager()->GetAudioInputDeviceNames(&device_names);

Patch Set 1 #

Total comments: 30

Patch Set 2 : '' #

Total comments: 17

Patch Set 3 : '' #

Total comments: 25

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 7

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -5 lines) Patch
A media/audio/audio_device_name.h View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A media/audio/audio_input_device_unittest.cc View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
M media/audio/audio_manager.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M media/audio/audio_manager_base.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M media/audio/audio_manager_base.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M media/audio/audio_output_proxy_unittest.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M media/audio/linux/audio_manager_linux.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M media/audio/linux/audio_manager_linux.cc View 1 2 3 4 5 6 3 chunks +94 lines, -4 lines 0 comments Download
M media/audio/mac/audio_manager_mac.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/mac/audio_manager_mac.cc View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
M media/audio/win/audio_manager_win.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/win/audio_manager_win.cc View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
xians
Hello Albert, This is Shijing at Stockholm. As we talked a little before, I am ...
9 years, 7 months ago (2011-05-23 15:50:25 UTC) #1
awong
here's my first set of comments. My largest concern is that it feels like you're ...
9 years, 7 months ago (2011-05-23 17:36:15 UTC) #2
xians
Thanks Albert for quick response. It is very appreciated. I changed the code based on ...
9 years, 7 months ago (2011-05-23 20:15:59 UTC) #3
awong
I added some more comments. But taking a step back here, I'm actually no longer ...
9 years, 7 months ago (2011-05-23 21:17:57 UTC) #4
xians
Hello Albert, Let me provide more background here. Basically what I want here is to ...
9 years, 7 months ago (2011-05-24 13:50:27 UTC) #5
awong
low-level code looks okay now. Before continuing though, we should discuss through how/why/if we should ...
9 years, 7 months ago (2011-05-24 23:30:31 UTC) #6
scherkus (not reviewing)
http://codereview.chromium.org/7060011/diff/11003/media/audio/audio_device_types.h File media/audio/audio_device_types.h (right): http://codereview.chromium.org/7060011/diff/11003/media/audio/audio_device_types.h#newcode5 media/audio/audio_device_types.h:5: #ifndef MEDIA_AUDIO_AUDIO_DEVICE_TYPES_H_ naming nit... do you intend to add ...
9 years, 7 months ago (2011-05-26 06:13:12 UTC) #7
xians
Change the code according to the review from Albert and Andrew. There are still some ...
9 years, 7 months ago (2011-05-26 13:54:57 UTC) #8
scherkus (not reviewing)
http://codereview.chromium.org/7060011/diff/11003/media/audio/mac/audio_manager_mac.cc File media/audio/mac/audio_manager_mac.cc (right): http://codereview.chromium.org/7060011/diff/11003/media/audio/mac/audio_manager_mac.cc#newcode136 media/audio/mac/audio_manager_mac.cc:136: // We use (device_name)_(index) to make up the unique_ids ...
9 years, 7 months ago (2011-05-27 19:10:36 UTC) #9
xians
Just added reply to some comments. No new upload. Thanks, /SX http://codereview.chromium.org/7060011/diff/22001/media/audio/linux/audio_manager_linux.cc File media/audio/linux/audio_manager_linux.cc (right): ...
9 years, 7 months ago (2011-05-27 23:57:04 UTC) #10
xians
Change the code to name.unique_id = "0" accordingly. http://codereview.chromium.org/7060011/diff/22001/media/audio/mac/audio_manager_mac.cc File media/audio/mac/audio_manager_mac.cc (right): http://codereview.chromium.org/7060011/diff/22001/media/audio/mac/audio_manager_mac.cc#newcode139 media/audio/mac/audio_manager_mac.cc:139: name.unique_id ...
9 years, 6 months ago (2011-05-30 13:11:46 UTC) #11
scherkus (not reviewing)
9 years, 6 months ago (2011-05-31 21:03:41 UTC) #12
LGTM

I'll land it for you

Powered by Google App Engine
This is Rietveld 408576698