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

Unified Diff: media/audio/win/audio_low_latency_input_win.h

Issue 8770005: Adds input device selection on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/audio/win/audio_low_latency_input_win.h
===================================================================
--- media/audio/win/audio_low_latency_input_win.h (revision 112154)
+++ media/audio/win/audio_low_latency_input_win.h (working copy)
@@ -78,7 +78,7 @@
// the audio manager who is creating this object.
WASAPIAudioInputStream(AudioManagerWin* manager,
const AudioParameters& params,
- ERole device_role);
+ const std::string& device_id);
// The dtor is typically called by the AudioManager only and it is usually
// triggered by calling AudioInputStream::Close().
virtual ~WASAPIAudioInputStream();
@@ -103,7 +103,7 @@
void HandleError(HRESULT err);
// The Open() method is divided into these sub methods.
- HRESULT SetCaptureDevice(ERole device_role);
+ HRESULT SetCaptureDevice(const std::string& device_id);
tommi (sloooow) - chröme 2011/12/01 14:11:03 if the device_id has already been handed to the cl
henrika (OOO until Aug 14) 2011/12/01 16:02:38 Done.
HRESULT ActivateCaptureDevice();
HRESULT GetAudioEngineStreamFormat();
bool DesiredFormatIsSupported();
@@ -145,8 +145,10 @@
// Length of the audio endpoint buffer.
size_t endpoint_buffer_size_frames_;
- // Defines the role that the system has assigned to an audio endpoint device.
- ERole device_role_;
+ // Contains the unique name of the selected endpoint device.
+ // Note that AudioManagerBase::kDefaultDeviceId represents the default
+ // device role and is not a valid ID as such.
+ std::string device_id_;
// Conversion factor used in delay-estimation calculations.
// Converts a raw performance counter value to 100-nanosecond unit.
« no previous file with comments | « no previous file | media/audio/win/audio_low_latency_input_win.cc » ('j') | media/audio/win/audio_low_latency_input_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698