OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | |
3 * | |
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 | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #import <AVFoundation/AVFoundation.h> | |
12 #import <Foundation/Foundation.h> | |
13 | |
14 NS_ASSUME_NONNULL_BEGIN | |
15 | |
16 extern const int kRTCAudioSessionPreferredNumberOfChannels; | |
17 extern const double kRTCAudioSessionHighPerformanceSampleRate; | |
18 extern const double kRTCAudioSessionLowComplexitySampleRate; | |
19 extern const double kRTCAudioSessionHighPerformanceIOBufferDuration; | |
20 extern const double kRTCAudioSessionLowComplexityIOBufferDuration; | |
21 | |
22 // Struct to hold configuration values. | |
23 @interface RTCAudioSessionConfiguration : NSObject | |
24 | |
25 @property(nonatomic, strong) NSString *category; | |
Chuck
2016/03/10 21:16:37
Do you want to make the NSString * properties copy
tkchin_webrtc
2016/03/10 23:07:09
Strong because we're pointing at system string con
| |
26 @property(nonatomic, assign) AVAudioSessionCategoryOptions categoryOptions; | |
27 @property(nonatomic, strong) NSString *mode; | |
28 @property(nonatomic, assign) double sampleRate; | |
29 @property(nonatomic, assign) NSTimeInterval ioBufferDuration; | |
30 @property(nonatomic, assign) NSInteger inputNumberOfChannels; | |
31 @property(nonatomic, assign) NSInteger outputNumberOfChannels; | |
32 | |
33 /** Initializes configuration to defaults. */ | |
34 - (instancetype)init NS_DESIGNATED_INITIALIZER; | |
35 | |
36 /** Returns the current configuration of the audio session. */ | |
37 + (instancetype)currentConfiguration; | |
38 /** Returns the configuration that WebRTC needs. */ | |
39 + (instancetype)webRTCConfiguration; | |
40 | |
41 @end | |
42 | |
43 NS_ASSUME_NONNULL_END | |
OLD | NEW |