summaryrefslogtreecommitdiffstats
path: root/content/test/webrtc_audio_device_test.h
diff options
context:
space:
mode:
authorhenrika@chromium.org <henrika@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-06 21:07:52 +0000
committerhenrika@chromium.org <henrika@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-06 21:07:52 +0000
commit627e7bc136622483f09138505a2c695194ffea0a (patch)
treea25b314f6c04ce3f2bb1a694f5e74e750150fa1c /content/test/webrtc_audio_device_test.h
parent16969f048808af3157a8d75bee3cd285a5527f7e (diff)
downloadchromium_src-627e7bc136622483f09138505a2c695194ffea0a.zip
chromium_src-627e7bc136622483f09138505a2c695194ffea0a.tar.gz
chromium_src-627e7bc136622483f09138505a2c695194ffea0a.tar.bz2
Adds input volume control support for Windows platforms.
This CL also adds a device_id input parameter to media::GetAudioInputHardwareSampleRate() and media::GetAudioInputHardwareChannelCount(). We need this new flexibility to be able to perform unit tests where the volume is modified for all supported devices. Without it, we will not be able to open the audio-input stream using the correct sample rate and channels count for all devices since all we can get information about is the default device. BUG=115013 TEST=media_unittests Review URL: http://codereview.chromium.org/9585010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125222 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/webrtc_audio_device_test.h')
-rw-r--r--content/test/webrtc_audio_device_test.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/content/test/webrtc_audio_device_test.h b/content/test/webrtc_audio_device_test.h
index 2b07ad9..8b93e83 100644
--- a/content/test/webrtc_audio_device_test.h
+++ b/content/test/webrtc_audio_device_test.h
@@ -109,8 +109,10 @@ class AudioUtilInterface {
public:
virtual ~AudioUtilInterface() {}
virtual double GetAudioHardwareSampleRate() = 0;
- virtual double GetAudioInputHardwareSampleRate() = 0;
- virtual uint32 GetAudioInputHardwareChannelCount() = 0;
+ virtual double GetAudioInputHardwareSampleRate(
+ const std::string& device_id) = 0;
+ virtual uint32 GetAudioInputHardwareChannelCount(
+ const std::string& device_id) = 0;
};
// Implemented and defined in the cc file.