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

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

Issue 12918026: Adds support for CoreAudioUtil::IsChannelLayoutSupported() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 7 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/audio_manager_win.cc ('k') | media/audio/win/core_audio_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/core_audio_util_win.h
diff --git a/media/audio/win/core_audio_util_win.h b/media/audio/win/core_audio_util_win.h
index 5059856af7ad51b222bc681ae1fa4d64921d0509..2dac60a86bd0151e2824e56629f7e810cba3853f 100644
--- a/media/audio/win/core_audio_util_win.h
+++ b/media/audio/win/core_audio_util_win.h
@@ -117,6 +117,14 @@ class MEDIA_EXPORT CoreAudioUtil {
AUDCLNT_SHAREMODE share_mode,
const WAVEFORMATPCMEX* format);
+ // Returns true if the specified |channel_layout| is supported for the
+ // default IMMDevice where flow direction and role is define by |data_flow|
+ // and |role|. If this method returns true for a certain channel layout, it
+ // means that SharedModeInitialize() will succeed using a format based on
+ // the preferred format where the channel layout has been modified.
+ static bool IsChannelLayoutSupported(EDataFlow data_flow, ERole role,
+ ChannelLayout channel_layout);
+
// For a shared-mode stream, the audio engine periodically processes the
// data in the endpoint buffer at the period obtained in |device_period|.
// For an exclusive mode stream, |device_period| corresponds to the minimum
« no previous file with comments | « media/audio/win/audio_manager_win.cc ('k') | media/audio/win/core_audio_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698