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

Unified Diff: webrtc/modules/audio_device/android/audio_manager.h

Issue 2015483002: Adds support for detection of pro-audio support on Android (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: nits Created 4 years, 7 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 | « no previous file | webrtc/modules/audio_device/android/audio_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_device/android/audio_manager.h
diff --git a/webrtc/modules/audio_device/android/audio_manager.h b/webrtc/modules/audio_device/android/audio_manager.h
index b4264a6f8cd9ec6a815a9483c9cefc1f6ef5463d..aa51d092d0ffb323a261b7f4b280e159bd51d33c 100644
--- a/webrtc/modules/audio_device/android/audio_manager.h
+++ b/webrtc/modules/audio_device/android/audio_manager.h
@@ -88,6 +88,10 @@ class AudioManager {
// combination with OpenSL ES.
bool IsLowLatencyPlayoutSupported() const;
+ // Returns true if the device supports pro-audio features in combination with
+ // OpenSL ES.
+ bool IsProAudioSupported() const;
+
// Returns the estimated total delay of this device. Unit is in milliseconds.
// The vaule is set once at construction and never changes after that.
// Possible values are webrtc::kLowLatencyModeDelayEstimateInMilliseconds and
@@ -106,6 +110,7 @@ class AudioManager {
jboolean hardware_agc,
jboolean hardware_ns,
jboolean low_latency_output,
+ jboolean pro_audio,
jint output_buffer_size,
jint input_buffer_size,
jlong native_audio_manager);
@@ -116,6 +121,7 @@ class AudioManager {
jboolean hardware_agc,
jboolean hardware_ns,
jboolean low_latency_output,
+ jboolean pro_audio,
jint output_buffer_size,
jint input_buffer_size);
@@ -152,6 +158,9 @@ class AudioManager {
// True if device supports the low-latency OpenSL ES audio path.
bool low_latency_playout_;
+ // True if device supports the low-latency OpenSL ES pro-audio path.
+ bool pro_audio_;
+
// The delay estimate can take one of two fixed values depending on if the
// device supports low-latency output or not.
int delay_estimate_in_milliseconds_;
« no previous file with comments | « no previous file | webrtc/modules/audio_device/android/audio_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698