Update parameters' type from NSString to AVAudioSession*.
Bug: webrtc:15233 Change-Id: I110a3fb1e992ff07aebe21881ee31d55d39db60b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/308520 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Cr-Commit-Position: refs/heads/main@{#40258}
This commit is contained in:
parent
ee58849235
commit
de923386a0
@ -225,14 +225,14 @@ RTC_OBJC_EXPORT
|
||||
// AVAudioSession. `lockForConfiguration` must be called before using them
|
||||
// otherwise they will fail with kRTCAudioSessionErrorLockRequired.
|
||||
|
||||
- (BOOL)setCategory:(NSString *)category
|
||||
mode:(NSString *)mode
|
||||
- (BOOL)setCategory:(AVAudioSessionCategory)category
|
||||
mode:(AVAudioSessionMode)mode
|
||||
options:(AVAudioSessionCategoryOptions)options
|
||||
error:(NSError **)outError;
|
||||
- (BOOL)setCategory:(NSString *)category
|
||||
- (BOOL)setCategory:(AVAudioSessionCategory)category
|
||||
withOptions:(AVAudioSessionCategoryOptions)options
|
||||
error:(NSError **)outError;
|
||||
- (BOOL)setMode:(NSString *)mode error:(NSError **)outError;
|
||||
- (BOOL)setMode:(AVAudioSessionMode)mode error:(NSError **)outError;
|
||||
- (BOOL)setInputGain:(float)gain error:(NSError **)outError;
|
||||
- (BOOL)setPreferredSampleRate:(double)sampleRate error:(NSError **)outError;
|
||||
- (BOOL)setPreferredIOBufferDuration:(NSTimeInterval)duration error:(NSError **)outError;
|
||||
|
||||
@ -407,8 +407,8 @@ ABSL_CONST_INIT thread_local bool mutex_locked = false;
|
||||
return success;
|
||||
}
|
||||
|
||||
- (BOOL)setCategory:(NSString *)category
|
||||
mode:(NSString *)mode
|
||||
- (BOOL)setCategory:(AVAudioSessionCategory)category
|
||||
mode:(AVAudioSessionMode)mode
|
||||
options:(AVAudioSessionCategoryOptions)options
|
||||
error:(NSError **)outError {
|
||||
if (![self checkLock:outError]) {
|
||||
@ -417,7 +417,7 @@ ABSL_CONST_INIT thread_local bool mutex_locked = false;
|
||||
return [self.session setCategory:category mode:mode options:options error:outError];
|
||||
}
|
||||
|
||||
- (BOOL)setCategory:(NSString *)category
|
||||
- (BOOL)setCategory:(AVAudioSessionCategory)category
|
||||
withOptions:(AVAudioSessionCategoryOptions)options
|
||||
error:(NSError **)outError {
|
||||
if (![self checkLock:outError]) {
|
||||
@ -426,7 +426,7 @@ ABSL_CONST_INIT thread_local bool mutex_locked = false;
|
||||
return [self.session setCategory:category withOptions:options error:outError];
|
||||
}
|
||||
|
||||
- (BOOL)setMode:(NSString *)mode error:(NSError **)outError {
|
||||
- (BOOL)setMode:(AVAudioSessionMode)mode error:(NSError **)outError {
|
||||
if (![self checkLock:outError]) {
|
||||
return NO;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user