summaryrefslogtreecommitdiffstats
path: root/media/audio/audio_util.h
diff options
context:
space:
mode:
authorhenrika@chromium.org <henrika@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-24 09:41:12 +0000
committerhenrika@chromium.org <henrika@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-24 09:41:12 +0000
commitf5968e6ada72f515d7d183e67e35f90d7704daee (patch)
tree28f4fcbe9850f52dc7196c5a1db394b0aa2d577a /media/audio/audio_util.h
parenta80a258880e3ababe9f806dd9bb4d60ad90473ae (diff)
downloadchromium_src-f5968e6ada72f515d7d183e67e35f90d7704daee.zip
chromium_src-f5968e6ada72f515d7d183e67e35f90d7704daee.tar.gz
chromium_src-f5968e6ada72f515d7d183e67e35f90d7704daee.tar.bz2
Low-latency AudioInputStream implementation based on WASAPI for Windows.
Requires Windows Vista or higher. BUG=none TEST=Attached unit test (requires undefined CHROME_HEADLESS) Review URL: http://codereview.chromium.org/8283032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106899 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/audio_util.h')
-rw-r--r--media/audio/audio_util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/media/audio/audio_util.h b/media/audio/audio_util.h
index 6ea697b..05896af 100644
--- a/media/audio/audio_util.h
+++ b/media/audio/audio_util.h
@@ -79,9 +79,12 @@ MEDIA_EXPORT void InterleaveFloatToInt16(const std::vector<float*>& source,
int16* destination,
size_t number_of_frames);
-// Returns the default audio hardware sample-rate.
+// Returns the default audio output hardware sample-rate.
MEDIA_EXPORT double GetAudioHardwareSampleRate();
+// Returns the default audio input hardware sample-rate.
+MEDIA_EXPORT double GetAudioInputHardwareSampleRate();
+
// Returns the optimal low-latency buffer size for the audio hardware.
// This is the smallest buffer size the system can comfortably render
// at without glitches. The buffer size is in sample-frames.