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

Issue 23523023: Add GetOutputStreamParameters, GetAssociatedOutputDeviceID to AudioManager. (Closed)

Created:
7 years, 3 months ago by tommi (sloooow) - chröme
Modified:
7 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add GetOutputStreamParameters, GetAssociatedOutputDeviceID to AudioManager. - GetOutputStreamParameters(device_id). Does the same thing as GetDefaultOutputStreamParameters except that it allows the caller to choose the device. - GetAssociatedOutputDeviceID(input_device_id): Does a best effort dig to match an output device to an input device (both devices belong to the same audio card). This is useful for heuristic algorithms to distinguish headphones from webcams (w/mic). GetOutputStreamParameters is fully implemented on Windows but works only for the default device on other platforms (same as GetDefaultOutputStreamParameters). - This is OK for now since we don't rely on GetOutputStreamParameters yet. Added implementation of GetAssociatedOutputDeviceID on Windows. Default implementation of GetAssociatedOutputDeviceID just returns an empty string (i.e. assume the default output device). Did a little bit of a cleanup in the WASAPI/CoreAudio implementation on Windows where we were doing the same operation unnecessarily often. BUG=276894 R=henrika@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221182

Patch Set 1 #

Total comments: 11

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -68 lines) Patch
M media/audio/audio_manager.h View 1 1 chunk +14 lines, -0 lines 0 comments Download
M media/audio/audio_manager_base.h View 1 chunk +6 lines, -0 lines 0 comments Download
M media/audio/audio_manager_base.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M media/audio/mock_audio_manager.h View 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/mock_audio_manager.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M media/audio/win/audio_low_latency_output_win.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M media/audio/win/audio_low_latency_output_win.cc View 1 chunk +15 lines, -4 lines 0 comments Download
M media/audio/win/audio_low_latency_output_win_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/win/audio_manager_win.h View 2 chunks +3 lines, -0 lines 0 comments Download
M media/audio/win/audio_manager_win.cc View 1 4 chunks +50 lines, -34 lines 0 comments Download
M media/audio/win/core_audio_util_win.h View 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/win/core_audio_util_win.cc View 7 chunks +23 lines, -27 lines 0 comments Download
M media/audio/win/core_audio_util_win_unittest.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tommi (sloooow) - chröme
7 years, 3 months ago (2013-09-04 10:36:58 UTC) #1
henrika (OOO until Aug 14)
Great stuff. I am glad that we implemented the core audio util; pretty handy in ...
7 years, 3 months ago (2013-09-04 11:11:40 UTC) #2
tommi (sloooow) - chröme
Address comments
7 years, 3 months ago (2013-09-04 13:06:51 UTC) #3
tommi (sloooow) - chröme
https://codereview.chromium.org/23523023/diff/1/media/audio/audio_manager.h File media/audio/audio_manager.h (right): https://codereview.chromium.org/23523023/diff/1/media/audio/audio_manager.h#newcode148 media/audio/audio_manager.h:148: // Returns the output hardware audio parameters for a ...
7 years, 3 months ago (2013-09-04 13:06:54 UTC) #4
henrika (OOO until Aug 14)
SGTM. On Wed, Sep 4, 2013 at 3:06 PM, <tommi@chromium.org> wrote: > > https://codereview.chromium.**org/23523023/diff/1/media/** > ...
7 years, 3 months ago (2013-09-04 13:20:16 UTC) #5
tommi (sloooow) - chröme
7 years, 3 months ago (2013-09-04 13:25:45 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 manually as r221182 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698