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

Unified Diff: media/audio/android/opensles_util.h

Issue 1921963004: Add support for multichannel playback to OpenSLES output. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoid multichannel on KitKat. Created 4 years, 8 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/android/opensles_output.cc ('k') | media/audio/android/opensles_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/android/opensles_util.h
diff --git a/media/audio/android/opensles_util.h b/media/audio/android/opensles_util.h
index bc6d0410af9a7ba2b25b655f4d6f169e7274bdbd..2673d14f3b6a2533fbc3b575a238dd630521b359 100644
--- a/media/audio/android/opensles_util.h
+++ b/media/audio/android/opensles_util.h
@@ -8,6 +8,7 @@
#include <SLES/OpenSLES.h>
#include "base/logging.h"
+#include "media/base/media_export.h"
namespace media {
@@ -40,6 +41,11 @@ class ScopedSLObject {
typedef ScopedSLObject<SLObjectItf, const SLObjectItf_*> ScopedSLObjectItf;
+// Guesses the channel mask for a given channel count. Android does not offer a
+// way to configure the layout, so this will be incorrect for less common
+// channel layouts.
+MEDIA_EXPORT SLuint32 ChannelCountToSLESChannelMask(int channel_count);
+
} // namespace media
#endif // MEDIA_AUDIO_ANDROID_OPENSLES_UTIL_H_
« no previous file with comments | « media/audio/android/opensles_output.cc ('k') | media/audio/android/opensles_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698