OLD | NEW |
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 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 _inputNumberOfChannels = kRTCAudioSessionPreferredNumberOfChannels; | 93 _inputNumberOfChannels = kRTCAudioSessionPreferredNumberOfChannels; |
94 _outputNumberOfChannels = kRTCAudioSessionPreferredNumberOfChannels; | 94 _outputNumberOfChannels = kRTCAudioSessionPreferredNumberOfChannels; |
95 } | 95 } |
96 return self; | 96 return self; |
97 } | 97 } |
98 | 98 |
99 + (instancetype)currentConfiguration { | 99 + (instancetype)currentConfiguration { |
100 RTCAudioSession *session = [RTCAudioSession sharedInstance]; | 100 RTCAudioSession *session = [RTCAudioSession sharedInstance]; |
101 RTCAudioSessionConfiguration *config = | 101 RTCAudioSessionConfiguration *config = |
102 [[RTCAudioSessionConfiguration alloc] init]; | 102 [[RTCAudioSessionConfiguration alloc] init]; |
| 103 config.category = session.category; |
| 104 config.categoryOptions = session.categoryOptions; |
103 config.mode = session.mode; | 105 config.mode = session.mode; |
104 config.sampleRate = session.sampleRate; | 106 config.sampleRate = session.sampleRate; |
105 config.ioBufferDuration = session.IOBufferDuration; | 107 config.ioBufferDuration = session.IOBufferDuration; |
106 config.inputNumberOfChannels = session.inputNumberOfChannels; | 108 config.inputNumberOfChannels = session.inputNumberOfChannels; |
107 config.outputNumberOfChannels = session.outputNumberOfChannels; | 109 config.outputNumberOfChannels = session.outputNumberOfChannels; |
108 return config; | 110 return config; |
109 } | 111 } |
110 | 112 |
111 + (instancetype)webRTCConfiguration { | 113 + (instancetype)webRTCConfiguration { |
112 return [[self alloc] init]; | 114 return [[self alloc] init]; |
113 } | 115 } |
114 | 116 |
115 @end | 117 @end |
OLD | NEW |