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

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

Issue 9566002: On windows, create PCMWaveInAudioInputStream instance with correct device ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add test. Created 8 years, 9 months 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
« no previous file with comments | « media/audio/win/device_enumeration_win.cc ('k') | media/audio/win/wavein_input_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/wavein_input_win.h
diff --git a/media/audio/win/wavein_input_win.h b/media/audio/win/wavein_input_win.h
index 66465a8d4604e2a4c1326280cebca03616775fec..a9b4b913dfb9cec2cf243ff6b867dd6341140908 100644
--- a/media/audio/win/wavein_input_win.h
+++ b/media/audio/win/wavein_input_win.h
@@ -47,6 +47,9 @@ class PCMWaveInAudioInputStream : public AudioInputStream {
kStateClosed // Device has been released.
};
+ // Allow unit tests to query the device ID.
+ friend class AudioInputDeviceTest;
+
// Windows calls us back with the recorded audio data here. See msdn
// documentation for 'waveInProc' for details about the parameters.
static void CALLBACK WaveCallback(HWAVEIN hwi, UINT msg, DWORD_PTR instance,
« no previous file with comments | « media/audio/win/device_enumeration_win.cc ('k') | media/audio/win/wavein_input_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698