Skip to content

Commit

Permalink
Merge branch 'master' into feature/m118.5993
Browse files Browse the repository at this point in the history
  • Loading branch information
torikizi committed Sep 8, 2023
2 parents bad913e + 8693358 commit cd9ae88
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 33 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ Please read https://github.com/shiguredo/oss/blob/master/README.en.md before use
Apache License 2.0

```
Copyright 2019-2022, Wandbox LLC (Original Author)
Copyright 2019-2022, tnoho (Original Author)
Copyright 2019-2022, Shiguredo Inc.
Copyright 2019-2023, Wandbox LLC (Original Author)
Copyright 2019-2023, tnoho (Original Author)
Copyright 2019-2023, Shiguredo Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
29 changes: 15 additions & 14 deletions patches/ios_manual_audio_input.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/sdk/objc/components/audio/RTCAudioSession+Configuration.mm b/sdk/objc/components/audio/RTCAudioSession+Configuration.mm
index c81ce1b916..42641d53d7 100644
index 4bf0a542e1..8431458a80 100644
--- a/sdk/objc/components/audio/RTCAudioSession+Configuration.mm
+++ b/sdk/objc/components/audio/RTCAudioSession+Configuration.mm
@@ -172,7 +177,8 @@ - (BOOL)setConfiguration:(RTCAudioSessionConfiguration *)configuration
@@ -144,7 +144,8 @@
*outError = error;
}

Expand All @@ -25,8 +25,8 @@ index 8ad0c21105..4f73c434b0 100644

#include <vector>

@@ -90,6 +92,12 @@ NS_ASSUME_NONNULL_BEGIN
- (void)notifyDidStopPlayOrRecord;
@@ -76,6 +78,12 @@ NS_ASSUME_NONNULL_BEGIN
/** Notifies the receiver that a playout glitch was detected. */
- (void)notifyDidDetectPlayoutGlitch:(int64_t)totalNumberOfGlitches;

+@property(nonatomic, readonly) webrtc::ios_adm::VoiceProcessingAudioUnit *vpAudioUnit;
Expand All @@ -35,11 +35,11 @@ index 8ad0c21105..4f73c434b0 100644
+- (void)stopVoiceProcessingAudioUnit;
+- (void)finishInitializeInput;
+
@end

NS_ASSUME_NONNULL_END
/** Notifies the receiver that there was an error when starting an audio unit. */
- (void)notifyAudioUnitStartFailedWithError:(OSStatus)error;

diff --git a/sdk/objc/components/audio/RTCAudioSession.h b/sdk/objc/components/audio/RTCAudioSession.h
index 2730664858..d8136dcc52 100644
index 2730664858..a22f6523ce 100644
--- a/sdk/objc/components/audio/RTCAudioSession.h
+++ b/sdk/objc/components/audio/RTCAudioSession.h
@@ -20,6 +20,7 @@ extern NSString *const kRTCAudioSessionErrorDomain;
Expand All @@ -59,12 +59,13 @@ index 2730664858..d8136dcc52 100644
- (BOOL)setCategory:(AVAudioSessionCategory)category
mode:(AVAudioSessionMode)mode
options:(AVAudioSessionCategoryOptions)options
@@ -244,6 +247,9 @@ RTC_OBJC_EXPORT
@@ -244,6 +247,10 @@ RTC_OBJC_EXPORT
error:(NSError **)outError;
- (BOOL)setOutputDataSource:(AVAudioSessionDataSourceDescription *)dataSource
error:(NSError **)outError;
+
+- (void)initializeInput:(nullable void (^)(NSError *_Nullable error))completionHandler;
+
+
@end

Expand All @@ -81,7 +82,7 @@ index f6b91d5409..a6d358cd7d 100644
NSString * const kRTCAudioSessionOutputVolumeSelector = @"outputVolume";

namespace {
@@ -55,6 +56,11 @@ @implementation RTC_OBJC_TYPE (RTCAudioSession) {
@@ -55,6 +56,11 @@ ABSL_CONST_INIT thread_local bool mutex_locked = false;
BOOL _isAudioEnabled;
BOOL _canPlayOrRecord;
BOOL _isInterrupted;
Expand All @@ -93,7 +94,7 @@ index f6b91d5409..a6d358cd7d 100644
}

@synthesize session = _session;
@@ -417,6 +423,11 @@ - (BOOL)setCategory:(AVAudioSessionCategory)category
@@ -417,6 +423,11 @@ ABSL_CONST_INIT thread_local bool mutex_locked = false;
return [self.session setCategory:category mode:mode options:options error:outError];
}

Expand All @@ -105,7 +106,7 @@ index f6b91d5409..a6d358cd7d 100644
- (BOOL)setCategory:(AVAudioSessionCategory)category
withOptions:(AVAudioSessionCategoryOptions)options
error:(NSError **)outError {
@@ -1007,4 +1018,126 @@ - (void)notifyFailedToSetActive:(BOOL)active error:(NSError *)error {
@@ -1007,4 +1018,126 @@ ABSL_CONST_INIT thread_local bool mutex_locked = false;
}
}

Expand Down Expand Up @@ -233,10 +234,10 @@ index f6b91d5409..a6d358cd7d 100644
+
@end
diff --git a/sdk/objc/components/audio/RTCAudioSessionConfiguration.m b/sdk/objc/components/audio/RTCAudioSessionConfiguration.m
index 2247e65ab5..3deacc3a92 100644
index 71b0c0cb3a..483da97873 100644
--- a/sdk/objc/components/audio/RTCAudioSessionConfiguration.m
+++ b/sdk/objc/components/audio/RTCAudioSessionConfiguration.m
@@ -69,7 +69,7 @@ - (instancetype)init {
@@ -58,7 +58,7 @@ static RTC_OBJC_TYPE(RTCAudioSessionConfiguration) *gWebRTCConfiguration = nil;
// By default, using this category implies that our app’s audio is
// nonmixable, hence activating the session will interrupt any other
// audio sessions which are also nonmixable.
Expand Down
15 changes: 0 additions & 15 deletions patches/nacl_armv6_2.patch
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
diff --git a/third_party/boringssl/BUILD.gn b/third_party/boringssl/BUILD.gn
index fab890501a2..ce3b31de9d1 100644
--- a/third_party/boringssl/BUILD.gn
+++ b/third_party/boringssl/BUILD.gn
@@ -86,7 +86,9 @@ if (is_win && !is_msan && current_cpu != "arm64") {
public_configs = [ ":no_asm_config" ]
}
} else if (current_cpu == "arm") {
- if (is_linux || is_chromeos || is_android) {
+ if (arm_version <= 6) {
+ public_configs = [ ":no_asm_config" ]
+ } else if (is_linux || is_chromeos || is_android) {
sources += crypto_sources_linux_arm
} else if (is_ios) {
sources += crypto_sources_ios_arm
diff --git a/third_party/opus/BUILD.gn b/third_party/opus/BUILD.gn
index c9e74464131..ea2b5686a57 100644
--- a/third_party/opus/BUILD.gn
Expand Down
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def build_webrtc_ios(
with cd(os.path.join(webrtc_src_dir, 'tools_webrtc', 'ios')):
ios_deployment_target = cmdcap(
['python3', '-c',
f'from build_ios_libs import IOS_DEPLOYMENT_TARGET; print(IOS_DEPLOYMENT_TARGET["{device}"])'])
f'from build_ios_libs import IOS_MINIMUM_DEPLOYMENT_TARGET; print(IOS_MINIMUM_DEPLOYMENT_TARGET["{device}"])'])

if not os.path.exists(os.path.join(work_dir, 'args.gn')) or gen or overlap_build_dir:
gn_args = [
Expand Down

0 comments on commit cd9ae88

Please sign in to comment.