Skip to content

Commit e602aae

Browse files
committed
feat: add AgoraALD.driver & remove sand box
1 parent f56756c commit e602aae

7 files changed

Lines changed: 211 additions & 26 deletions

File tree

macOS/APIExample.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
8BE63B4227253CB000597DB1 /* SimpleFilter.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8BE63B4427253CB000597DB1 /* SimpleFilter.storyboard */; };
9393
8BF2243B275F82CF00B65EF8 /* SimpleFilter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 8BD4AE79272518D600E95B87 /* SimpleFilter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
9494
DD8A1F922CA55AA4001CEC51 /* AgoraPCMPlayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD8A1F912CA55AA4001CEC51 /* AgoraPCMPlayer.swift */; };
95+
DD962C642CBA491600B8AAA7 /* AgoraALD.driver in Resources */ = {isa = PBXBuildFile; fileRef = DD962C632CBA491600B8AAA7 /* AgoraALD.driver */; };
9596
E702C1E728B4DB4800D7C7ED /* LiveStreaming.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E702C1E328B4DB4800D7C7ED /* LiveStreaming.storyboard */; };
9697
E702C1E828B4DB4800D7C7ED /* LiveStreaming.swift in Sources */ = {isa = PBXBuildFile; fileRef = E702C1E528B4DB4800D7C7ED /* LiveStreaming.swift */; };
9798
E71E7B0B289B7D7900B846C7 /* SimpleFilter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BD4AE79272518D600E95B87 /* SimpleFilter.framework */; };
@@ -273,6 +274,7 @@
273274
8BD4AE79272518D600E95B87 /* SimpleFilter.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SimpleFilter.framework; sourceTree = BUILT_PRODUCTS_DIR; };
274275
8BE63B4527253CD900597DB1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/SimpleFilter.storyboard; sourceTree = "<group>"; };
275276
DD8A1F912CA55AA4001CEC51 /* AgoraPCMPlayer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AgoraPCMPlayer.swift; sourceTree = "<group>"; };
277+
DD962C632CBA491600B8AAA7 /* AgoraALD.driver */ = {isa = PBXFileReference; lastKnownFileType = folder; name = AgoraALD.driver; path = APIExample/AgoraALD.driver; sourceTree = "<group>"; };
276278
E702C1E528B4DB4800D7C7ED /* LiveStreaming.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LiveStreaming.swift; sourceTree = "<group>"; };
277279
E71E7B0D289B96FA00B846C7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/VideoProcess.storyboard; sourceTree = "<group>"; };
278280
E71E7B12289B971900B846C7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/VideoProcess.strings; sourceTree = "<group>"; };
@@ -573,6 +575,7 @@
573575
03896D2324F8A00F008593CD = {
574576
isa = PBXGroup;
575577
children = (
578+
DD962C632CBA491600B8AAA7 /* AgoraALD.driver */,
576579
03896D2E24F8A00F008593CD /* APIExample */,
577580
8BD4AE7A272518D600E95B87 /* SimpleFilter */,
578581
03896D2D24F8A00F008593CD /* Products */,
@@ -1009,6 +1012,7 @@
10091012
isa = PBXResourcesBuildPhase;
10101013
buildActionMask = 2147483647;
10111014
files = (
1015+
DD962C642CBA491600B8AAA7 /* AgoraALD.driver in Resources */,
10121016
E77D54D828F5702B00D51C1E /* SampleBufferDisplayView.xib in Resources */,
10131017
E7AD0DF929CD84F800C9A4B0 /* sample.mov in Resources */,
10141018
E75279D529F6737100358F18 /* LiveStreaming.storyboard in Resources */,
Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
4-
<dict>
5-
<key>com.apple.security.app-sandbox</key>
6-
<true/>
7-
<key>com.apple.security.assets.pictures.read-write</key>
8-
<true/>
9-
<key>com.apple.security.device.audio-input</key>
10-
<true/>
11-
<key>com.apple.security.device.camera</key>
12-
<true/>
13-
<key>com.apple.security.files.downloads.read-write</key>
14-
<true/>
15-
<key>com.apple.security.files.user-selected.read-write</key>
16-
<true/>
17-
<key>com.apple.security.network.client</key>
18-
<true/>
19-
<key>com.apple.security.network.server</key>
20-
<true/>
21-
<key>com.apple.security.personal-information.addressbook</key>
22-
<true/>
23-
<key>com.apple.security.personal-information.calendars</key>
24-
<true/>
25-
<key>com.apple.security.personal-information.location</key>
26-
<true/>
27-
<key>com.apple.security.print</key>
28-
<true/>
29-
</dict>
4+
<dict/>
305
</plist>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>BuildMachineOSBuild</key>
6+
<string>22G120</string>
7+
<key>CFBundleDevelopmentRegion</key>
8+
<string>English</string>
9+
<key>CFBundleExecutable</key>
10+
<string>AgoraALD</string>
11+
<key>CFBundleIdentifier</key>
12+
<string>io.agora.audioloopback</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>AgoraALD</string>
17+
<key>CFBundlePackageType</key>
18+
<string>BNDL</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>1.0.1</string>
21+
<key>CFBundleSignature</key>
22+
<string>????</string>
23+
<key>CFBundleSupportedPlatforms</key>
24+
<array>
25+
<string>MacOSX</string>
26+
</array>
27+
<key>CFBundleVersion</key>
28+
<string>1</string>
29+
<key>CFPlugInFactories</key>
30+
<dict>
31+
<key>99A15A8B-DA3C-42C3-BD5D-D035A0C2488B</key>
32+
<string>AgoraALD_Create</string>
33+
</dict>
34+
<key>CFPlugInTypes</key>
35+
<dict>
36+
<key>443ABAB8-E7B3-491A-B985-BEB9187030DB</key>
37+
<array>
38+
<string>99A15A8B-DA3C-42C3-BD5D-D035A0C2488B</string>
39+
</array>
40+
</dict>
41+
<key>DTCompiler</key>
42+
<string>com.apple.compilers.llvm.clang.1_0</string>
43+
<key>DTPlatformBuild</key>
44+
<string></string>
45+
<key>DTPlatformName</key>
46+
<string>macosx</string>
47+
<key>DTPlatformVersion</key>
48+
<string>14.2</string>
49+
<key>DTSDKBuild</key>
50+
<string>23C53</string>
51+
<key>DTSDKName</key>
52+
<string>macosx14.2</string>
53+
<key>DTXcode</key>
54+
<string>1520</string>
55+
<key>DTXcodeBuild</key>
56+
<string>15C500b</string>
57+
<key>LSMinimumSystemVersion</key>
58+
<string>10.10</string>
59+
</dict>
60+
</plist>
309 KB
Binary file not shown.
Binary file not shown.
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>files</key>
6+
<dict>
7+
<key>Resources/en.lproj/Localizable.strings</key>
8+
<dict>
9+
<key>hash</key>
10+
<data>
11+
aI7+tBMa+Z7cUeSmCY117BTN0ss=
12+
</data>
13+
<key>optional</key>
14+
<true/>
15+
</dict>
16+
</dict>
17+
<key>files2</key>
18+
<dict>
19+
<key>Resources/en.lproj/Localizable.strings</key>
20+
<dict>
21+
<key>hash</key>
22+
<data>
23+
aI7+tBMa+Z7cUeSmCY117BTN0ss=
24+
</data>
25+
<key>hash2</key>
26+
<data>
27+
NIkKaq8G8yOoz4aKtnScbCvPzN7ObfJM2z1AEz2UsEY=
28+
</data>
29+
<key>optional</key>
30+
<true/>
31+
</dict>
32+
</dict>
33+
<key>rules</key>
34+
<dict>
35+
<key>^Resources/</key>
36+
<true/>
37+
<key>^Resources/.*\.lproj/</key>
38+
<dict>
39+
<key>optional</key>
40+
<true/>
41+
<key>weight</key>
42+
<real>1000</real>
43+
</dict>
44+
<key>^Resources/.*\.lproj/locversion.plist$</key>
45+
<dict>
46+
<key>omit</key>
47+
<true/>
48+
<key>weight</key>
49+
<real>1100</real>
50+
</dict>
51+
<key>^Resources/Base\.lproj/</key>
52+
<dict>
53+
<key>weight</key>
54+
<real>1010</real>
55+
</dict>
56+
<key>^version.plist$</key>
57+
<true/>
58+
</dict>
59+
<key>rules2</key>
60+
<dict>
61+
<key>.*\.dSYM($|/)</key>
62+
<dict>
63+
<key>weight</key>
64+
<real>11</real>
65+
</dict>
66+
<key>^(.*/)?\.DS_Store$</key>
67+
<dict>
68+
<key>omit</key>
69+
<true/>
70+
<key>weight</key>
71+
<real>2000</real>
72+
</dict>
73+
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
74+
<dict>
75+
<key>nested</key>
76+
<true/>
77+
<key>weight</key>
78+
<real>10</real>
79+
</dict>
80+
<key>^.*</key>
81+
<true/>
82+
<key>^Info\.plist$</key>
83+
<dict>
84+
<key>omit</key>
85+
<true/>
86+
<key>weight</key>
87+
<real>20</real>
88+
</dict>
89+
<key>^PkgInfo$</key>
90+
<dict>
91+
<key>omit</key>
92+
<true/>
93+
<key>weight</key>
94+
<real>20</real>
95+
</dict>
96+
<key>^Resources/</key>
97+
<dict>
98+
<key>weight</key>
99+
<real>20</real>
100+
</dict>
101+
<key>^Resources/.*\.lproj/</key>
102+
<dict>
103+
<key>optional</key>
104+
<true/>
105+
<key>weight</key>
106+
<real>1000</real>
107+
</dict>
108+
<key>^Resources/.*\.lproj/locversion.plist$</key>
109+
<dict>
110+
<key>omit</key>
111+
<true/>
112+
<key>weight</key>
113+
<real>1100</real>
114+
</dict>
115+
<key>^Resources/Base\.lproj/</key>
116+
<dict>
117+
<key>weight</key>
118+
<real>1010</real>
119+
</dict>
120+
<key>^[^/]+$</key>
121+
<dict>
122+
<key>nested</key>
123+
<true/>
124+
<key>weight</key>
125+
<real>10</real>
126+
</dict>
127+
<key>^embedded\.provisionprofile$</key>
128+
<dict>
129+
<key>weight</key>
130+
<real>20</real>
131+
</dict>
132+
<key>^version\.plist$</key>
133+
<dict>
134+
<key>weight</key>
135+
<real>20</real>
136+
</dict>
137+
</dict>
138+
</dict>
139+
</plist>

macOS/APIExample/Examples/Advanced/AudioMixing/AudioMixing.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ class AudioMixing: BaseViewController {
358358

359359
initChannelField()
360360
initJoinChannelButton()
361+
loadALDTest()
361362
}
362363

363364
override func viewWillBeRemovedFromSplitView() {
@@ -523,6 +524,12 @@ class AudioMixing: BaseViewController {
523524
self.agoraKit.enableLoopbackRecording(false, deviceName: micName)
524525
}
525526

527+
private func loadALDTest() {
528+
let ret1 = agoraKit.enableLoopbackRecording(true, deviceName: "AgoraALD")
529+
let ret2 = agoraKit.enableLoopbackRecording(false, deviceName: "AgoraALD")
530+
print("loadALDTest: \(ret1) \(ret2)")
531+
}
532+
526533
func layoutVideos(_ count: Int) {
527534
videos = []
528535
for i in 0...count - 1 {

0 commit comments

Comments
 (0)