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

Side by Side Diff: webrtc/modules/audio_device/ios/objc/RTCAudioSessionConfiguration.h

Issue 2484933003: Add iOS static library GN build script. NOTRY=True (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #import <AVFoundation/AVFoundation.h> 11 #import <AVFoundation/AVFoundation.h>
12 #import <Foundation/Foundation.h> 12 #import <Foundation/Foundation.h>
13 13
14 #import "WebRTC/RTCMacros.h"
15
14 NS_ASSUME_NONNULL_BEGIN 16 NS_ASSUME_NONNULL_BEGIN
15 17
16 extern const int kRTCAudioSessionPreferredNumberOfChannels; 18 extern const int kRTCAudioSessionPreferredNumberOfChannels;
17 extern const double kRTCAudioSessionHighPerformanceSampleRate; 19 extern const double kRTCAudioSessionHighPerformanceSampleRate;
18 extern const double kRTCAudioSessionLowComplexitySampleRate; 20 extern const double kRTCAudioSessionLowComplexitySampleRate;
19 extern const double kRTCAudioSessionHighPerformanceIOBufferDuration; 21 extern const double kRTCAudioSessionHighPerformanceIOBufferDuration;
20 extern const double kRTCAudioSessionLowComplexityIOBufferDuration; 22 extern const double kRTCAudioSessionLowComplexityIOBufferDuration;
21 23
22 // Struct to hold configuration values. 24 // Struct to hold configuration values.
25 RTC_EXPORT
23 @interface RTCAudioSessionConfiguration : NSObject 26 @interface RTCAudioSessionConfiguration : NSObject
24 27
25 @property(nonatomic, strong) NSString *category; 28 @property(nonatomic, strong) NSString *category;
26 @property(nonatomic, assign) AVAudioSessionCategoryOptions categoryOptions; 29 @property(nonatomic, assign) AVAudioSessionCategoryOptions categoryOptions;
27 @property(nonatomic, strong) NSString *mode; 30 @property(nonatomic, strong) NSString *mode;
28 @property(nonatomic, assign) double sampleRate; 31 @property(nonatomic, assign) double sampleRate;
29 @property(nonatomic, assign) NSTimeInterval ioBufferDuration; 32 @property(nonatomic, assign) NSTimeInterval ioBufferDuration;
30 @property(nonatomic, assign) NSInteger inputNumberOfChannels; 33 @property(nonatomic, assign) NSInteger inputNumberOfChannels;
31 @property(nonatomic, assign) NSInteger outputNumberOfChannels; 34 @property(nonatomic, assign) NSInteger outputNumberOfChannels;
32 35
33 /** Initializes configuration to defaults. */ 36 /** Initializes configuration to defaults. */
34 - (instancetype)init NS_DESIGNATED_INITIALIZER; 37 - (instancetype)init NS_DESIGNATED_INITIALIZER;
35 38
36 /** Returns the current configuration of the audio session. */ 39 /** Returns the current configuration of the audio session. */
37 + (instancetype)currentConfiguration; 40 + (instancetype)currentConfiguration;
38 /** Returns the configuration that WebRTC needs. */ 41 /** Returns the configuration that WebRTC needs. */
39 + (instancetype)webRTCConfiguration; 42 + (instancetype)webRTCConfiguration;
40 /** Provide a way to override the default configuration. */ 43 /** Provide a way to override the default configuration. */
41 + (void)setWebRTCConfiguration:(RTCAudioSessionConfiguration *)configuration; 44 + (void)setWebRTCConfiguration:(RTCAudioSessionConfiguration *)configuration;
42 45
43 @end 46 @end
44 47
45 NS_ASSUME_NONNULL_END 48 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/ios/objc/RTCAudioSession.h ('k') | webrtc/sdk/objc/Framework/Classes/RTCVideoTrack.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698