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

Unified Diff: webrtc/modules/audio_device/ios/objc/RTCAudioSessionConfiguration.m

Issue 2193573002: Increase audio buffer duration for iPhone 4s. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_device/ios/objc/RTCAudioSessionConfiguration.m
diff --git a/webrtc/modules/audio_device/ios/objc/RTCAudioSessionConfiguration.m b/webrtc/modules/audio_device/ios/objc/RTCAudioSessionConfiguration.m
index d2d04835499fe9ee990f546ddda01cc787d5cf39..9bbd4b701208bedf1e55a3ca18befc79a35cc23b 100644
--- a/webrtc/modules/audio_device/ios/objc/RTCAudioSessionConfiguration.m
+++ b/webrtc/modules/audio_device/ios/objc/RTCAudioSessionConfiguration.m
@@ -11,6 +11,7 @@
#import "webrtc/modules/audio_device/ios/objc/RTCAudioSessionConfiguration.h"
#import "WebRTC/RTCDispatcher.h"
+#import "WebRTC/UIDevice+RTCDevice.h"
#import "webrtc/modules/audio_device/ios/objc/RTCAudioSession.h"
@@ -82,7 +83,7 @@ static RTCAudioSessionConfiguration *gWebRTCConfiguration = nil;
NSUInteger processorCount = [NSProcessInfo processInfo].processorCount;
// Use best sample rate and buffer duration if the CPU has more than one
// core.
- if (processorCount > 1) {
+ if (processorCount > 1 && [UIDevice deviceType] != RTCDeviceTypeIPhone4S) {
_sampleRate = kRTCAudioSessionHighPerformanceSampleRate;
_ioBufferDuration = kRTCAudioSessionHighPerformanceIOBufferDuration;
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698