DescriptionAdd 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 #
Messages
Total messages: 6 (0 generated)
|