summaryrefslogtreecommitdiffstats
path: root/media/audio/audio_output.h
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-14 23:06:30 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-14 23:06:30 +0000
commit5c08aa3da8685d351000f8aab52b2ae2b1ab8714 (patch)
tree6f44439f67812111277079eddc105f0b424f1d95 /media/audio/audio_output.h
parent3f5d201c12cc91dbd009388b5f021e149fa1036c (diff)
downloadchromium_src-5c08aa3da8685d351000f8aab52b2ae2b1ab8714.zip
chromium_src-5c08aa3da8685d351000f8aab52b2ae2b1ab8714.tar.gz
chromium_src-5c08aa3da8685d351000f8aab52b2ae2b1ab8714.tar.bz2
Re-enable the audio tests that fail in the bots
- Basically skip some tests if the OS reports there is no audio device. Review URL: http://codereview.chromium.org/16811 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8047 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/audio_output.h')
-rw-r--r--media/audio/audio_output.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/audio/audio_output.h b/media/audio/audio_output.h
index 37235a2..b21d653 100644
--- a/media/audio/audio_output.h
+++ b/media/audio/audio_output.h
@@ -114,6 +114,10 @@ class AudioManager {
// Digital Audio Tape sample rate.
static const int kAudioDATSampleRate = 48000;
+ // Returns true if the OS reports existence of audio devices. This does not
+ // guarantee that the existing devices support all formats and sample rates.
+ virtual bool HasAudioDevices() = 0;
+
// Factory for all the supported stream formats. At this moment |channels|
// can be 1 (mono) or 2 (stereo). The |sample_rate| is in hertz and can be
// any value supported by the underlying platform. For some future formats