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

Unified Diff: webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java

Issue 2848323003: Remove unnecessary runtime API-level checks. (Closed)
Patch Set: One more in AppRTCMobile. Created 3 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
Index: webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java
diff --git a/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java b/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java
index d94839c8295d686a88700cfa9b36bf172ff2c647..24b8ab834051885c3ed6912f40e700f92e14b412 100644
--- a/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java
+++ b/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java
@@ -229,8 +229,7 @@ public class WebRtcAudioManager {
// Returns true if low-latency audio output is supported.
private boolean isLowLatencyOutputSupported() {
- return isOpenSLESSupported()
- && context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_LOW_LATENCY);
+ return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_LOW_LATENCY);
}
// Returns true if low-latency audio input is supported.
@@ -341,12 +340,6 @@ public class WebRtcAudioManager {
/ bytesPerFrame;
}
- // Returns true if OpenSL ES audio is supported.
- private static boolean isOpenSLESSupported() {
- // Check for API level 9 or higher, to confirm use of OpenSL ES.
- return WebRtcAudioUtils.runningOnGingerBreadOrHigher();
- }
-
// Helper method which throws an exception when an assertion has failed.
private static void assertTrue(boolean condition) {
if (!condition) {

Powered by Google App Engine
This is Rietveld 408576698