diff options
author | enal@chromium.org <enal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-03 04:14:45 +0000 |
---|---|---|
committer | enal@chromium.org <enal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-03 04:14:45 +0000 |
commit | 0474f0f587ab6208e1c8aaa13a0210759d943a75 (patch) | |
tree | 06f387c44bd5860f6601ba7a13da5e40d72783d3 /media/audio/audio_util.h | |
parent | a3a4a580df1f6b45d722612da5c993087019bb2d (diff) | |
download | chromium_src-0474f0f587ab6208e1c8aaa13a0210759d943a75.zip chromium_src-0474f0f587ab6208e1c8aaa13a0210759d943a75.tar.gz chromium_src-0474f0f587ab6208e1c8aaa13a0210759d943a75.tar.bz2 |
Move decision if we need to use WASAPI or wave out into separate function.
Minor Windows-only code cleanup. That also fixes broken sound on Windows Server 2003.
BUG=none
Review URL: http://codereview.chromium.org/8777003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112860 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/audio_util.h')
-rw-r--r-- | media/audio/audio_util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/media/audio/audio_util.h b/media/audio/audio_util.h index 05896af..22aa19b 100644 --- a/media/audio/audio_util.h +++ b/media/audio/audio_util.h @@ -105,6 +105,14 @@ MEDIA_EXPORT void SetUnknownDataSize(base::SharedMemory* shared_memory, MEDIA_EXPORT bool IsUnknownDataSize(base::SharedMemory* shared_memory, uint32 shared_memory_size); +#if defined(OS_WIN) + +// Does Windows support WASAPI? We are checking in lot of places, and +// sometimes check was written incorrectly, so move into separate function. +MEDIA_EXPORT bool IsWASAPISupported(); + +#endif // defined(OS_WIN) + } // namespace media #endif // MEDIA_AUDIO_AUDIO_UTIL_H_ |