├── AudioToolboxEncoder.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcuserdata │ ├── apple.xcuserdatad │ ├── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ │ ├── AudioToolboxEncoder.xcscheme │ │ └── xcschememanagement.plist │ └── xiaokai.zhan.xcuserdatad │ └── xcschemes │ ├── AudioToolboxEncoder.xcscheme │ └── xcschememanagement.plist ├── AudioToolboxEncoder ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── AudioToolboxEncoder.h ├── AudioToolboxEncoder.m ├── Base.lproj │ └── LaunchScreen.storyboard ├── Info.plist ├── ViewController.h ├── ViewController.m ├── ViewController.xib ├── main.m ├── resource │ ├── problem.pcm │ └── vocal.pcm └── utils │ ├── CommonUtil.h │ └── CommonUtil.m ├── AudioToolboxEncoderTests ├── AudioToolboxEncoderTests.m └── Info.plist └── AudioToolboxEncoderUITests ├── AudioToolboxEncoderUITests.m └── Info.plist /AudioToolboxEncoder.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 184B98351EC5B0E80071F0D5 /* problem.pcm in Resources */ = {isa = PBXBuildFile; fileRef = 184B98341EC5B0E80071F0D5 /* problem.pcm */; }; 11 | 18C3FDEE1E55AD09004AB860 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 18C3FDED1E55AD09004AB860 /* main.m */; }; 12 | 18C3FDF11E55AD09004AB860 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 18C3FDF01E55AD09004AB860 /* AppDelegate.m */; }; 13 | 18C3FDF41E55AD09004AB860 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 18C3FDF31E55AD09004AB860 /* ViewController.m */; }; 14 | 18C3FDF91E55AD0A004AB860 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 18C3FDF81E55AD0A004AB860 /* Assets.xcassets */; }; 15 | 18C3FDFC1E55AD0A004AB860 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 18C3FDFA1E55AD0A004AB860 /* LaunchScreen.storyboard */; }; 16 | 18C3FE071E55AD0A004AB860 /* AudioToolboxEncoderTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 18C3FE061E55AD0A004AB860 /* AudioToolboxEncoderTests.m */; }; 17 | 18C3FE121E55AD0A004AB860 /* AudioToolboxEncoderUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 18C3FE111E55AD0A004AB860 /* AudioToolboxEncoderUITests.m */; }; 18 | 18C3FE201E55AD6B004AB860 /* ViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 18C3FE1F1E55AD6B004AB860 /* ViewController.xib */; }; 19 | 18C3FEC41E55B885004AB860 /* vocal.pcm in Resources */ = {isa = PBXBuildFile; fileRef = 18C3FEC01E55B885004AB860 /* vocal.pcm */; }; 20 | 18C3FEC51E55B885004AB860 /* CommonUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = 18C3FEC31E55B885004AB860 /* CommonUtil.m */; }; 21 | 18C3FECE1E55BCF5004AB860 /* AudioToolboxEncoder.m in Sources */ = {isa = PBXBuildFile; fileRef = 18C3FECD1E55BCF5004AB860 /* AudioToolboxEncoder.m */; }; 22 | 18C3FED11E55BD07004AB860 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 18C3FED01E55BD07004AB860 /* AudioToolbox.framework */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 18C3FE031E55AD0A004AB860 /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = 18C3FDE11E55AD08004AB860 /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = 18C3FDE81E55AD08004AB860; 31 | remoteInfo = AudioToolboxEncoder; 32 | }; 33 | 18C3FE0E1E55AD0A004AB860 /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = 18C3FDE11E55AD08004AB860 /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 18C3FDE81E55AD08004AB860; 38 | remoteInfo = AudioToolboxEncoder; 39 | }; 40 | /* End PBXContainerItemProxy section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 184B98341EC5B0E80071F0D5 /* problem.pcm */ = {isa = PBXFileReference; lastKnownFileType = file; path = problem.pcm; sourceTree = ""; }; 44 | 18C3FDE91E55AD09004AB860 /* AudioToolboxEncoder.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AudioToolboxEncoder.app; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 18C3FDED1E55AD09004AB860 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 46 | 18C3FDEF1E55AD09004AB860 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 47 | 18C3FDF01E55AD09004AB860 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 48 | 18C3FDF21E55AD09004AB860 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 49 | 18C3FDF31E55AD09004AB860 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 50 | 18C3FDF81E55AD0A004AB860 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 51 | 18C3FDFB1E55AD0A004AB860 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 52 | 18C3FDFD1E55AD0A004AB860 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 53 | 18C3FE021E55AD0A004AB860 /* AudioToolboxEncoderTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AudioToolboxEncoderTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 18C3FE061E55AD0A004AB860 /* AudioToolboxEncoderTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AudioToolboxEncoderTests.m; sourceTree = ""; }; 55 | 18C3FE081E55AD0A004AB860 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | 18C3FE0D1E55AD0A004AB860 /* AudioToolboxEncoderUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AudioToolboxEncoderUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 57 | 18C3FE111E55AD0A004AB860 /* AudioToolboxEncoderUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AudioToolboxEncoderUITests.m; sourceTree = ""; }; 58 | 18C3FE131E55AD0A004AB860 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 59 | 18C3FE1F1E55AD6B004AB860 /* ViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ViewController.xib; sourceTree = ""; }; 60 | 18C3FEC01E55B885004AB860 /* vocal.pcm */ = {isa = PBXFileReference; lastKnownFileType = file; path = vocal.pcm; sourceTree = ""; }; 61 | 18C3FEC21E55B885004AB860 /* CommonUtil.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CommonUtil.h; sourceTree = ""; }; 62 | 18C3FEC31E55B885004AB860 /* CommonUtil.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CommonUtil.m; sourceTree = ""; }; 63 | 18C3FECC1E55BCF5004AB860 /* AudioToolboxEncoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioToolboxEncoder.h; sourceTree = ""; }; 64 | 18C3FECD1E55BCF5004AB860 /* AudioToolboxEncoder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AudioToolboxEncoder.m; sourceTree = ""; }; 65 | 18C3FED01E55BD07004AB860 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; 66 | /* End PBXFileReference section */ 67 | 68 | /* Begin PBXFrameworksBuildPhase section */ 69 | 18C3FDE61E55AD08004AB860 /* Frameworks */ = { 70 | isa = PBXFrameworksBuildPhase; 71 | buildActionMask = 2147483647; 72 | files = ( 73 | 18C3FED11E55BD07004AB860 /* AudioToolbox.framework in Frameworks */, 74 | ); 75 | runOnlyForDeploymentPostprocessing = 0; 76 | }; 77 | 18C3FDFF1E55AD0A004AB860 /* Frameworks */ = { 78 | isa = PBXFrameworksBuildPhase; 79 | buildActionMask = 2147483647; 80 | files = ( 81 | ); 82 | runOnlyForDeploymentPostprocessing = 0; 83 | }; 84 | 18C3FE0A1E55AD0A004AB860 /* Frameworks */ = { 85 | isa = PBXFrameworksBuildPhase; 86 | buildActionMask = 2147483647; 87 | files = ( 88 | ); 89 | runOnlyForDeploymentPostprocessing = 0; 90 | }; 91 | /* End PBXFrameworksBuildPhase section */ 92 | 93 | /* Begin PBXGroup section */ 94 | 18C3FDE01E55AD08004AB860 = { 95 | isa = PBXGroup; 96 | children = ( 97 | 18C3FDEB1E55AD09004AB860 /* AudioToolboxEncoder */, 98 | 18C3FE051E55AD0A004AB860 /* AudioToolboxEncoderTests */, 99 | 18C3FE101E55AD0A004AB860 /* AudioToolboxEncoderUITests */, 100 | 18C3FDEA1E55AD09004AB860 /* Products */, 101 | 18C3FECF1E55BD06004AB860 /* Frameworks */, 102 | ); 103 | sourceTree = ""; 104 | }; 105 | 18C3FDEA1E55AD09004AB860 /* Products */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 18C3FDE91E55AD09004AB860 /* AudioToolboxEncoder.app */, 109 | 18C3FE021E55AD0A004AB860 /* AudioToolboxEncoderTests.xctest */, 110 | 18C3FE0D1E55AD0A004AB860 /* AudioToolboxEncoderUITests.xctest */, 111 | ); 112 | name = Products; 113 | sourceTree = ""; 114 | }; 115 | 18C3FDEB1E55AD09004AB860 /* AudioToolboxEncoder */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 18C3FECC1E55BCF5004AB860 /* AudioToolboxEncoder.h */, 119 | 18C3FECD1E55BCF5004AB860 /* AudioToolboxEncoder.m */, 120 | 18C3FEBF1E55B885004AB860 /* resource */, 121 | 18C3FEC11E55B885004AB860 /* utils */, 122 | 18C3FDEF1E55AD09004AB860 /* AppDelegate.h */, 123 | 18C3FDF01E55AD09004AB860 /* AppDelegate.m */, 124 | 18C3FDF21E55AD09004AB860 /* ViewController.h */, 125 | 18C3FDF31E55AD09004AB860 /* ViewController.m */, 126 | 18C3FDF81E55AD0A004AB860 /* Assets.xcassets */, 127 | 18C3FDFA1E55AD0A004AB860 /* LaunchScreen.storyboard */, 128 | 18C3FDFD1E55AD0A004AB860 /* Info.plist */, 129 | 18C3FDEC1E55AD09004AB860 /* Supporting Files */, 130 | 18C3FE1F1E55AD6B004AB860 /* ViewController.xib */, 131 | ); 132 | path = AudioToolboxEncoder; 133 | sourceTree = ""; 134 | }; 135 | 18C3FDEC1E55AD09004AB860 /* Supporting Files */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 18C3FDED1E55AD09004AB860 /* main.m */, 139 | ); 140 | name = "Supporting Files"; 141 | sourceTree = ""; 142 | }; 143 | 18C3FE051E55AD0A004AB860 /* AudioToolboxEncoderTests */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | 18C3FE061E55AD0A004AB860 /* AudioToolboxEncoderTests.m */, 147 | 18C3FE081E55AD0A004AB860 /* Info.plist */, 148 | ); 149 | path = AudioToolboxEncoderTests; 150 | sourceTree = ""; 151 | }; 152 | 18C3FE101E55AD0A004AB860 /* AudioToolboxEncoderUITests */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 18C3FE111E55AD0A004AB860 /* AudioToolboxEncoderUITests.m */, 156 | 18C3FE131E55AD0A004AB860 /* Info.plist */, 157 | ); 158 | path = AudioToolboxEncoderUITests; 159 | sourceTree = ""; 160 | }; 161 | 18C3FEBF1E55B885004AB860 /* resource */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | 184B98341EC5B0E80071F0D5 /* problem.pcm */, 165 | 18C3FEC01E55B885004AB860 /* vocal.pcm */, 166 | ); 167 | path = resource; 168 | sourceTree = ""; 169 | }; 170 | 18C3FEC11E55B885004AB860 /* utils */ = { 171 | isa = PBXGroup; 172 | children = ( 173 | 18C3FEC21E55B885004AB860 /* CommonUtil.h */, 174 | 18C3FEC31E55B885004AB860 /* CommonUtil.m */, 175 | ); 176 | path = utils; 177 | sourceTree = ""; 178 | }; 179 | 18C3FECF1E55BD06004AB860 /* Frameworks */ = { 180 | isa = PBXGroup; 181 | children = ( 182 | 18C3FED01E55BD07004AB860 /* AudioToolbox.framework */, 183 | ); 184 | name = Frameworks; 185 | sourceTree = ""; 186 | }; 187 | /* End PBXGroup section */ 188 | 189 | /* Begin PBXNativeTarget section */ 190 | 18C3FDE81E55AD08004AB860 /* AudioToolboxEncoder */ = { 191 | isa = PBXNativeTarget; 192 | buildConfigurationList = 18C3FE161E55AD0A004AB860 /* Build configuration list for PBXNativeTarget "AudioToolboxEncoder" */; 193 | buildPhases = ( 194 | 18C3FDE51E55AD08004AB860 /* Sources */, 195 | 18C3FDE61E55AD08004AB860 /* Frameworks */, 196 | 18C3FDE71E55AD08004AB860 /* Resources */, 197 | ); 198 | buildRules = ( 199 | ); 200 | dependencies = ( 201 | ); 202 | name = AudioToolboxEncoder; 203 | productName = AudioToolboxEncoder; 204 | productReference = 18C3FDE91E55AD09004AB860 /* AudioToolboxEncoder.app */; 205 | productType = "com.apple.product-type.application"; 206 | }; 207 | 18C3FE011E55AD0A004AB860 /* AudioToolboxEncoderTests */ = { 208 | isa = PBXNativeTarget; 209 | buildConfigurationList = 18C3FE191E55AD0A004AB860 /* Build configuration list for PBXNativeTarget "AudioToolboxEncoderTests" */; 210 | buildPhases = ( 211 | 18C3FDFE1E55AD0A004AB860 /* Sources */, 212 | 18C3FDFF1E55AD0A004AB860 /* Frameworks */, 213 | 18C3FE001E55AD0A004AB860 /* Resources */, 214 | ); 215 | buildRules = ( 216 | ); 217 | dependencies = ( 218 | 18C3FE041E55AD0A004AB860 /* PBXTargetDependency */, 219 | ); 220 | name = AudioToolboxEncoderTests; 221 | productName = AudioToolboxEncoderTests; 222 | productReference = 18C3FE021E55AD0A004AB860 /* AudioToolboxEncoderTests.xctest */; 223 | productType = "com.apple.product-type.bundle.unit-test"; 224 | }; 225 | 18C3FE0C1E55AD0A004AB860 /* AudioToolboxEncoderUITests */ = { 226 | isa = PBXNativeTarget; 227 | buildConfigurationList = 18C3FE1C1E55AD0A004AB860 /* Build configuration list for PBXNativeTarget "AudioToolboxEncoderUITests" */; 228 | buildPhases = ( 229 | 18C3FE091E55AD0A004AB860 /* Sources */, 230 | 18C3FE0A1E55AD0A004AB860 /* Frameworks */, 231 | 18C3FE0B1E55AD0A004AB860 /* Resources */, 232 | ); 233 | buildRules = ( 234 | ); 235 | dependencies = ( 236 | 18C3FE0F1E55AD0A004AB860 /* PBXTargetDependency */, 237 | ); 238 | name = AudioToolboxEncoderUITests; 239 | productName = AudioToolboxEncoderUITests; 240 | productReference = 18C3FE0D1E55AD0A004AB860 /* AudioToolboxEncoderUITests.xctest */; 241 | productType = "com.apple.product-type.bundle.ui-testing"; 242 | }; 243 | /* End PBXNativeTarget section */ 244 | 245 | /* Begin PBXProject section */ 246 | 18C3FDE11E55AD08004AB860 /* Project object */ = { 247 | isa = PBXProject; 248 | attributes = { 249 | LastUpgradeCheck = 0820; 250 | ORGANIZATIONNAME = xiaokai.zhan; 251 | TargetAttributes = { 252 | 18C3FDE81E55AD08004AB860 = { 253 | CreatedOnToolsVersion = 8.2.1; 254 | DevelopmentTeam = U4BCBA6SZN; 255 | ProvisioningStyle = Automatic; 256 | }; 257 | 18C3FE011E55AD0A004AB860 = { 258 | CreatedOnToolsVersion = 8.2.1; 259 | DevelopmentTeam = MY5GTD35UJ; 260 | ProvisioningStyle = Automatic; 261 | TestTargetID = 18C3FDE81E55AD08004AB860; 262 | }; 263 | 18C3FE0C1E55AD0A004AB860 = { 264 | CreatedOnToolsVersion = 8.2.1; 265 | DevelopmentTeam = MY5GTD35UJ; 266 | ProvisioningStyle = Automatic; 267 | TestTargetID = 18C3FDE81E55AD08004AB860; 268 | }; 269 | }; 270 | }; 271 | buildConfigurationList = 18C3FDE41E55AD08004AB860 /* Build configuration list for PBXProject "AudioToolboxEncoder" */; 272 | compatibilityVersion = "Xcode 3.2"; 273 | developmentRegion = English; 274 | hasScannedForEncodings = 0; 275 | knownRegions = ( 276 | en, 277 | Base, 278 | ); 279 | mainGroup = 18C3FDE01E55AD08004AB860; 280 | productRefGroup = 18C3FDEA1E55AD09004AB860 /* Products */; 281 | projectDirPath = ""; 282 | projectRoot = ""; 283 | targets = ( 284 | 18C3FDE81E55AD08004AB860 /* AudioToolboxEncoder */, 285 | 18C3FE011E55AD0A004AB860 /* AudioToolboxEncoderTests */, 286 | 18C3FE0C1E55AD0A004AB860 /* AudioToolboxEncoderUITests */, 287 | ); 288 | }; 289 | /* End PBXProject section */ 290 | 291 | /* Begin PBXResourcesBuildPhase section */ 292 | 18C3FDE71E55AD08004AB860 /* Resources */ = { 293 | isa = PBXResourcesBuildPhase; 294 | buildActionMask = 2147483647; 295 | files = ( 296 | 18C3FEC41E55B885004AB860 /* vocal.pcm in Resources */, 297 | 18C3FDFC1E55AD0A004AB860 /* LaunchScreen.storyboard in Resources */, 298 | 18C3FE201E55AD6B004AB860 /* ViewController.xib in Resources */, 299 | 18C3FDF91E55AD0A004AB860 /* Assets.xcassets in Resources */, 300 | 184B98351EC5B0E80071F0D5 /* problem.pcm in Resources */, 301 | ); 302 | runOnlyForDeploymentPostprocessing = 0; 303 | }; 304 | 18C3FE001E55AD0A004AB860 /* Resources */ = { 305 | isa = PBXResourcesBuildPhase; 306 | buildActionMask = 2147483647; 307 | files = ( 308 | ); 309 | runOnlyForDeploymentPostprocessing = 0; 310 | }; 311 | 18C3FE0B1E55AD0A004AB860 /* Resources */ = { 312 | isa = PBXResourcesBuildPhase; 313 | buildActionMask = 2147483647; 314 | files = ( 315 | ); 316 | runOnlyForDeploymentPostprocessing = 0; 317 | }; 318 | /* End PBXResourcesBuildPhase section */ 319 | 320 | /* Begin PBXSourcesBuildPhase section */ 321 | 18C3FDE51E55AD08004AB860 /* Sources */ = { 322 | isa = PBXSourcesBuildPhase; 323 | buildActionMask = 2147483647; 324 | files = ( 325 | 18C3FDF41E55AD09004AB860 /* ViewController.m in Sources */, 326 | 18C3FDF11E55AD09004AB860 /* AppDelegate.m in Sources */, 327 | 18C3FEC51E55B885004AB860 /* CommonUtil.m in Sources */, 328 | 18C3FDEE1E55AD09004AB860 /* main.m in Sources */, 329 | 18C3FECE1E55BCF5004AB860 /* AudioToolboxEncoder.m in Sources */, 330 | ); 331 | runOnlyForDeploymentPostprocessing = 0; 332 | }; 333 | 18C3FDFE1E55AD0A004AB860 /* Sources */ = { 334 | isa = PBXSourcesBuildPhase; 335 | buildActionMask = 2147483647; 336 | files = ( 337 | 18C3FE071E55AD0A004AB860 /* AudioToolboxEncoderTests.m in Sources */, 338 | ); 339 | runOnlyForDeploymentPostprocessing = 0; 340 | }; 341 | 18C3FE091E55AD0A004AB860 /* Sources */ = { 342 | isa = PBXSourcesBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | 18C3FE121E55AD0A004AB860 /* AudioToolboxEncoderUITests.m in Sources */, 346 | ); 347 | runOnlyForDeploymentPostprocessing = 0; 348 | }; 349 | /* End PBXSourcesBuildPhase section */ 350 | 351 | /* Begin PBXTargetDependency section */ 352 | 18C3FE041E55AD0A004AB860 /* PBXTargetDependency */ = { 353 | isa = PBXTargetDependency; 354 | target = 18C3FDE81E55AD08004AB860 /* AudioToolboxEncoder */; 355 | targetProxy = 18C3FE031E55AD0A004AB860 /* PBXContainerItemProxy */; 356 | }; 357 | 18C3FE0F1E55AD0A004AB860 /* PBXTargetDependency */ = { 358 | isa = PBXTargetDependency; 359 | target = 18C3FDE81E55AD08004AB860 /* AudioToolboxEncoder */; 360 | targetProxy = 18C3FE0E1E55AD0A004AB860 /* PBXContainerItemProxy */; 361 | }; 362 | /* End PBXTargetDependency section */ 363 | 364 | /* Begin PBXVariantGroup section */ 365 | 18C3FDFA1E55AD0A004AB860 /* LaunchScreen.storyboard */ = { 366 | isa = PBXVariantGroup; 367 | children = ( 368 | 18C3FDFB1E55AD0A004AB860 /* Base */, 369 | ); 370 | name = LaunchScreen.storyboard; 371 | sourceTree = ""; 372 | }; 373 | /* End PBXVariantGroup section */ 374 | 375 | /* Begin XCBuildConfiguration section */ 376 | 18C3FE141E55AD0A004AB860 /* Debug */ = { 377 | isa = XCBuildConfiguration; 378 | buildSettings = { 379 | ALWAYS_SEARCH_USER_PATHS = NO; 380 | CLANG_ANALYZER_NONNULL = YES; 381 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 382 | CLANG_CXX_LIBRARY = "libc++"; 383 | CLANG_ENABLE_MODULES = YES; 384 | CLANG_ENABLE_OBJC_ARC = YES; 385 | CLANG_WARN_BOOL_CONVERSION = YES; 386 | CLANG_WARN_CONSTANT_CONVERSION = YES; 387 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 388 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 389 | CLANG_WARN_EMPTY_BODY = YES; 390 | CLANG_WARN_ENUM_CONVERSION = YES; 391 | CLANG_WARN_INFINITE_RECURSION = YES; 392 | CLANG_WARN_INT_CONVERSION = YES; 393 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 394 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 395 | CLANG_WARN_UNREACHABLE_CODE = YES; 396 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 397 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 398 | COPY_PHASE_STRIP = NO; 399 | DEBUG_INFORMATION_FORMAT = dwarf; 400 | ENABLE_STRICT_OBJC_MSGSEND = YES; 401 | ENABLE_TESTABILITY = YES; 402 | GCC_C_LANGUAGE_STANDARD = gnu99; 403 | GCC_DYNAMIC_NO_PIC = NO; 404 | GCC_NO_COMMON_BLOCKS = YES; 405 | GCC_OPTIMIZATION_LEVEL = 0; 406 | GCC_PREPROCESSOR_DEFINITIONS = ( 407 | "DEBUG=1", 408 | "$(inherited)", 409 | ); 410 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 411 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 412 | GCC_WARN_UNDECLARED_SELECTOR = YES; 413 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 414 | GCC_WARN_UNUSED_FUNCTION = YES; 415 | GCC_WARN_UNUSED_VARIABLE = YES; 416 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 417 | MTL_ENABLE_DEBUG_INFO = YES; 418 | ONLY_ACTIVE_ARCH = YES; 419 | SDKROOT = iphoneos; 420 | }; 421 | name = Debug; 422 | }; 423 | 18C3FE151E55AD0A004AB860 /* Release */ = { 424 | isa = XCBuildConfiguration; 425 | buildSettings = { 426 | ALWAYS_SEARCH_USER_PATHS = NO; 427 | CLANG_ANALYZER_NONNULL = YES; 428 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 429 | CLANG_CXX_LIBRARY = "libc++"; 430 | CLANG_ENABLE_MODULES = YES; 431 | CLANG_ENABLE_OBJC_ARC = YES; 432 | CLANG_WARN_BOOL_CONVERSION = YES; 433 | CLANG_WARN_CONSTANT_CONVERSION = YES; 434 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 435 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 436 | CLANG_WARN_EMPTY_BODY = YES; 437 | CLANG_WARN_ENUM_CONVERSION = YES; 438 | CLANG_WARN_INFINITE_RECURSION = YES; 439 | CLANG_WARN_INT_CONVERSION = YES; 440 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 441 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 442 | CLANG_WARN_UNREACHABLE_CODE = YES; 443 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 444 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 445 | COPY_PHASE_STRIP = NO; 446 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 447 | ENABLE_NS_ASSERTIONS = NO; 448 | ENABLE_STRICT_OBJC_MSGSEND = YES; 449 | GCC_C_LANGUAGE_STANDARD = gnu99; 450 | GCC_NO_COMMON_BLOCKS = YES; 451 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 452 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 453 | GCC_WARN_UNDECLARED_SELECTOR = YES; 454 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 455 | GCC_WARN_UNUSED_FUNCTION = YES; 456 | GCC_WARN_UNUSED_VARIABLE = YES; 457 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 458 | MTL_ENABLE_DEBUG_INFO = NO; 459 | SDKROOT = iphoneos; 460 | VALIDATE_PRODUCT = YES; 461 | }; 462 | name = Release; 463 | }; 464 | 18C3FE171E55AD0A004AB860 /* Debug */ = { 465 | isa = XCBuildConfiguration; 466 | buildSettings = { 467 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 468 | DEVELOPMENT_TEAM = U4BCBA6SZN; 469 | INFOPLIST_FILE = AudioToolboxEncoder/Info.plist; 470 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 471 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 472 | PRODUCT_BUNDLE_IDENTIFIER = "com.phuket.tour.audiotoolbox.encoder.AudioToolboxEncoder-xiaokai"; 473 | PRODUCT_NAME = "$(TARGET_NAME)"; 474 | }; 475 | name = Debug; 476 | }; 477 | 18C3FE181E55AD0A004AB860 /* Release */ = { 478 | isa = XCBuildConfiguration; 479 | buildSettings = { 480 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 481 | DEVELOPMENT_TEAM = U4BCBA6SZN; 482 | INFOPLIST_FILE = AudioToolboxEncoder/Info.plist; 483 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 484 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 485 | PRODUCT_BUNDLE_IDENTIFIER = "com.phuket.tour.audiotoolbox.encoder.AudioToolboxEncoder-xiaokai"; 486 | PRODUCT_NAME = "$(TARGET_NAME)"; 487 | }; 488 | name = Release; 489 | }; 490 | 18C3FE1A1E55AD0A004AB860 /* Debug */ = { 491 | isa = XCBuildConfiguration; 492 | buildSettings = { 493 | BUNDLE_LOADER = "$(TEST_HOST)"; 494 | DEVELOPMENT_TEAM = MY5GTD35UJ; 495 | INFOPLIST_FILE = AudioToolboxEncoderTests/Info.plist; 496 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 497 | PRODUCT_BUNDLE_IDENTIFIER = com.phuket.tour.audiotoolbox.encoder.AudioToolboxEncoderTests; 498 | PRODUCT_NAME = "$(TARGET_NAME)"; 499 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AudioToolboxEncoder.app/AudioToolboxEncoder"; 500 | }; 501 | name = Debug; 502 | }; 503 | 18C3FE1B1E55AD0A004AB860 /* Release */ = { 504 | isa = XCBuildConfiguration; 505 | buildSettings = { 506 | BUNDLE_LOADER = "$(TEST_HOST)"; 507 | DEVELOPMENT_TEAM = MY5GTD35UJ; 508 | INFOPLIST_FILE = AudioToolboxEncoderTests/Info.plist; 509 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 510 | PRODUCT_BUNDLE_IDENTIFIER = com.phuket.tour.audiotoolbox.encoder.AudioToolboxEncoderTests; 511 | PRODUCT_NAME = "$(TARGET_NAME)"; 512 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AudioToolboxEncoder.app/AudioToolboxEncoder"; 513 | }; 514 | name = Release; 515 | }; 516 | 18C3FE1D1E55AD0A004AB860 /* Debug */ = { 517 | isa = XCBuildConfiguration; 518 | buildSettings = { 519 | DEVELOPMENT_TEAM = MY5GTD35UJ; 520 | INFOPLIST_FILE = AudioToolboxEncoderUITests/Info.plist; 521 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 522 | PRODUCT_BUNDLE_IDENTIFIER = com.phuket.tour.audiotoolbox.encoder.AudioToolboxEncoderUITests; 523 | PRODUCT_NAME = "$(TARGET_NAME)"; 524 | TEST_TARGET_NAME = AudioToolboxEncoder; 525 | }; 526 | name = Debug; 527 | }; 528 | 18C3FE1E1E55AD0A004AB860 /* Release */ = { 529 | isa = XCBuildConfiguration; 530 | buildSettings = { 531 | DEVELOPMENT_TEAM = MY5GTD35UJ; 532 | INFOPLIST_FILE = AudioToolboxEncoderUITests/Info.plist; 533 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 534 | PRODUCT_BUNDLE_IDENTIFIER = com.phuket.tour.audiotoolbox.encoder.AudioToolboxEncoderUITests; 535 | PRODUCT_NAME = "$(TARGET_NAME)"; 536 | TEST_TARGET_NAME = AudioToolboxEncoder; 537 | }; 538 | name = Release; 539 | }; 540 | /* End XCBuildConfiguration section */ 541 | 542 | /* Begin XCConfigurationList section */ 543 | 18C3FDE41E55AD08004AB860 /* Build configuration list for PBXProject "AudioToolboxEncoder" */ = { 544 | isa = XCConfigurationList; 545 | buildConfigurations = ( 546 | 18C3FE141E55AD0A004AB860 /* Debug */, 547 | 18C3FE151E55AD0A004AB860 /* Release */, 548 | ); 549 | defaultConfigurationIsVisible = 0; 550 | defaultConfigurationName = Release; 551 | }; 552 | 18C3FE161E55AD0A004AB860 /* Build configuration list for PBXNativeTarget "AudioToolboxEncoder" */ = { 553 | isa = XCConfigurationList; 554 | buildConfigurations = ( 555 | 18C3FE171E55AD0A004AB860 /* Debug */, 556 | 18C3FE181E55AD0A004AB860 /* Release */, 557 | ); 558 | defaultConfigurationIsVisible = 0; 559 | defaultConfigurationName = Release; 560 | }; 561 | 18C3FE191E55AD0A004AB860 /* Build configuration list for PBXNativeTarget "AudioToolboxEncoderTests" */ = { 562 | isa = XCConfigurationList; 563 | buildConfigurations = ( 564 | 18C3FE1A1E55AD0A004AB860 /* Debug */, 565 | 18C3FE1B1E55AD0A004AB860 /* Release */, 566 | ); 567 | defaultConfigurationIsVisible = 0; 568 | defaultConfigurationName = Release; 569 | }; 570 | 18C3FE1C1E55AD0A004AB860 /* Build configuration list for PBXNativeTarget "AudioToolboxEncoderUITests" */ = { 571 | isa = XCConfigurationList; 572 | buildConfigurations = ( 573 | 18C3FE1D1E55AD0A004AB860 /* Debug */, 574 | 18C3FE1E1E55AD0A004AB860 /* Release */, 575 | ); 576 | defaultConfigurationIsVisible = 0; 577 | defaultConfigurationName = Release; 578 | }; 579 | /* End XCConfigurationList section */ 580 | }; 581 | rootObject = 18C3FDE11E55AD08004AB860 /* Project object */; 582 | } 583 | -------------------------------------------------------------------------------- /AudioToolboxEncoder.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AudioToolboxEncoder.xcodeproj/xcuserdata/apple.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /AudioToolboxEncoder.xcodeproj/xcuserdata/apple.xcuserdatad/xcschemes/AudioToolboxEncoder.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /AudioToolboxEncoder.xcodeproj/xcuserdata/apple.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | AudioToolboxEncoder.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 18C3FDE81E55AD08004AB860 16 | 17 | primary 18 | 19 | 20 | 18C3FE011E55AD0A004AB860 21 | 22 | primary 23 | 24 | 25 | 18C3FE0C1E55AD0A004AB860 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /AudioToolboxEncoder.xcodeproj/xcuserdata/xiaokai.zhan.xcuserdatad/xcschemes/AudioToolboxEncoder.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /AudioToolboxEncoder.xcodeproj/xcuserdata/xiaokai.zhan.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | AudioToolboxEncoder.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 18C3FDE81E55AD08004AB860 16 | 17 | primary 18 | 19 | 20 | 18C3FE011E55AD0A004AB860 21 | 22 | primary 23 | 24 | 25 | 18C3FE0C1E55AD0A004AB860 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /AudioToolboxEncoder/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // AudioToolboxEncoder 4 | // 5 | // Created by apple on 2017/2/16. 6 | // Copyright © 2017年 xiaokai.zhan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /AudioToolboxEncoder/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // AudioToolboxEncoder 4 | // 5 | // Created by apple on 2017/2/16. 6 | // Copyright © 2017年 xiaokai.zhan. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | #import "ViewController.h" 11 | 12 | @interface AppDelegate () 13 | 14 | @end 15 | 16 | @implementation AppDelegate 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 20 | UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]]; 21 | self.window.rootViewController = navigationController; 22 | [self.window makeKeyAndVisible]; 23 | return YES; 24 | } 25 | 26 | 27 | - (void)applicationWillResignActive:(UIApplication *)application { 28 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 29 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 30 | } 31 | 32 | 33 | - (void)applicationDidEnterBackground:(UIApplication *)application { 34 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 35 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 36 | } 37 | 38 | 39 | - (void)applicationWillEnterForeground:(UIApplication *)application { 40 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 41 | } 42 | 43 | 44 | - (void)applicationDidBecomeActive:(UIApplication *)application { 45 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 46 | } 47 | 48 | 49 | - (void)applicationWillTerminate:(UIApplication *)application { 50 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 51 | } 52 | 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /AudioToolboxEncoder/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /AudioToolboxEncoder/AudioToolboxEncoder.h: -------------------------------------------------------------------------------- 1 | // 2 | // AudioToolboxEncoder.h 3 | // AudioTooboxEncoder 4 | // 5 | // Created by apple on 16/11/3. 6 | // Copyright © 2016年 xiaokai.zhan. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | @protocol FillDataDelegate 14 | 15 | - (UInt32) fillAudioData:(uint8_t*) sampleBuffer bufferSize:(UInt32) bufferSize; 16 | 17 | - (void) outputAACPakcet:(NSData*) data presentationTimeMills:(int64_t)presentationTimeMills error:(NSError*) error; 18 | 19 | - (void) onCompletion; 20 | 21 | @end 22 | 23 | @interface AudioToolboxEncoder : NSObject 24 | 25 | - (id) initWithSampleRate:(NSInteger) inputSampleRate channels:(int) channels bitRate:(int) bitRate withADTSHeader:(BOOL) withADTSHeader filleDataDelegate:(id) fillAudioDataDelegate; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /AudioToolboxEncoder/AudioToolboxEncoder.m: -------------------------------------------------------------------------------- 1 | // 2 | // AudioToolboxEncoder.m 3 | // AudioTooboxEncoder 4 | // 5 | // Created by apple on 16/11/3. 6 | // Copyright © 2016年 xiaokai.zhan. All rights reserved. 7 | // 8 | 9 | #import "AudioToolboxEncoder.h" 10 | @interface AudioToolboxEncoder() 11 | 12 | @property(nonatomic) AudioConverterRef audioConverter; 13 | @property(nonatomic) uint8_t* aacBuffer; 14 | @property(nonatomic) UInt32 aacBufferSize; 15 | @property(nonatomic) uint8_t* pcmBuffer; 16 | @property(nonatomic) size_t pcmBufferSize; 17 | 18 | @property(nonatomic) UInt32 channels; 19 | @property(nonatomic) NSInteger inputSampleRate; 20 | 21 | @property(nonatomic) BOOL isCompletion; 22 | @property(nonatomic) BOOL withADTSHeader; 23 | 24 | @property(nonatomic) int64_t presentationTimeMills; 25 | 26 | @property (readwrite, copy) id fillAudioDataDelegate; 27 | @end 28 | 29 | @implementation AudioToolboxEncoder 30 | 31 | - (id) initWithSampleRate:(NSInteger) inputSampleRate channels:(int) channels bitRate:(int) bitRate withADTSHeader:(BOOL) withADTSHeader filleDataDelegate:(id) fillAudioDataDelegate { 32 | if(self = [super init]) { 33 | _audioConverter = NULL; 34 | _inputSampleRate = inputSampleRate; 35 | _pcmBuffer = NULL; 36 | _pcmBufferSize = 0; 37 | _presentationTimeMills = 0; 38 | _isCompletion = NO; 39 | _aacBuffer = NULL; 40 | _channels = channels; 41 | _withADTSHeader = withADTSHeader; 42 | _fillAudioDataDelegate = fillAudioDataDelegate; 43 | [self setupEncoderWithSampleRate:inputSampleRate channels:channels bitRate:bitRate]; 44 | dispatch_queue_t encoderQueue = dispatch_queue_create("AAC Encoder Queue", DISPATCH_QUEUE_SERIAL); 45 | dispatch_async(encoderQueue, ^{ 46 | [self encoder]; 47 | }); 48 | } 49 | return self; 50 | } 51 | 52 | - (void) setupEncoderWithSampleRate:(NSInteger) inputSampleRate channels:(int) channels bitRate:(UInt32) bitRate { 53 | //构建InputABSD 54 | AudioStreamBasicDescription inAudioStreamBasicDescription = {0}; 55 | UInt32 bytesPerSample = sizeof (SInt16); 56 | inAudioStreamBasicDescription.mFormatID = kAudioFormatLinearPCM; 57 | inAudioStreamBasicDescription.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked; 58 | inAudioStreamBasicDescription.mBytesPerPacket = bytesPerSample * channels; 59 | inAudioStreamBasicDescription.mBytesPerFrame = bytesPerSample * channels; 60 | inAudioStreamBasicDescription.mChannelsPerFrame = channels; 61 | inAudioStreamBasicDescription.mFramesPerPacket = 1; 62 | inAudioStreamBasicDescription.mBitsPerChannel = 8 * channels; 63 | inAudioStreamBasicDescription.mSampleRate = inputSampleRate; 64 | inAudioStreamBasicDescription.mReserved = 0; 65 | //构造OutputABSD 66 | AudioStreamBasicDescription outAudioStreamBasicDescription = {0}; 67 | outAudioStreamBasicDescription.mSampleRate = inAudioStreamBasicDescription.mSampleRate; 68 | outAudioStreamBasicDescription.mFormatID = kAudioFormatMPEG4AAC; // 设置编码格式 69 | outAudioStreamBasicDescription.mFormatFlags = kMPEG4Object_AAC_LC; // 无损编码 ,0表示没有 70 | outAudioStreamBasicDescription.mBytesPerPacket = 0; 71 | outAudioStreamBasicDescription.mFramesPerPacket = 1024; 72 | outAudioStreamBasicDescription.mBytesPerFrame = 0; 73 | outAudioStreamBasicDescription.mChannelsPerFrame = inAudioStreamBasicDescription.mChannelsPerFrame; 74 | outAudioStreamBasicDescription.mBitsPerChannel = 0; 75 | outAudioStreamBasicDescription.mReserved = 0; 76 | //构造编码器类的描述 77 | AudioClassDescription *description = [self 78 | getAudioClassDescriptionWithType:kAudioFormatMPEG4AAC 79 | fromManufacturer:kAppleSoftwareAudioCodecManufacturer]; //软编 80 | //构建AudioConverter 81 | OSStatus status = AudioConverterNewSpecific(&inAudioStreamBasicDescription, &outAudioStreamBasicDescription, 1, description, &_audioConverter); 82 | if (status != 0) { 83 | NSLog(@"setup converter: %d", (int)status); 84 | } 85 | UInt32 ulSize = sizeof(bitRate); 86 | status = AudioConverterSetProperty(_audioConverter, kAudioConverterEncodeBitRate, ulSize, &bitRate); 87 | UInt32 size = sizeof(_aacBufferSize); 88 | AudioConverterGetProperty(_audioConverter, kAudioConverterPropertyMaximumOutputPacketSize, &size, &_aacBufferSize); 89 | NSLog(@"Expected BitRate is %@, Output PacketSize is %d", @(bitRate), _aacBufferSize); 90 | // _aacBufferSize = 1024; 91 | _aacBuffer = malloc(_aacBufferSize * sizeof(uint8_t)); 92 | memset(_aacBuffer, 0, _aacBufferSize); 93 | } 94 | 95 | - (AudioClassDescription *)getAudioClassDescriptionWithType:(UInt32)type 96 | fromManufacturer:(UInt32)manufacturer 97 | { 98 | static AudioClassDescription desc; 99 | 100 | UInt32 encoderSpecifier = type; 101 | OSStatus st; 102 | 103 | UInt32 size; 104 | st = AudioFormatGetPropertyInfo(kAudioFormatProperty_Encoders, 105 | sizeof(encoderSpecifier), 106 | &encoderSpecifier, 107 | &size); 108 | if (st) { 109 | NSLog(@"error getting audio format propery info: %d", (int)(st)); 110 | return nil; 111 | } 112 | 113 | unsigned int count = size / sizeof(AudioClassDescription); 114 | AudioClassDescription descriptions[count]; 115 | st = AudioFormatGetProperty(kAudioFormatProperty_Encoders, 116 | sizeof(encoderSpecifier), 117 | &encoderSpecifier, 118 | &size, 119 | descriptions); 120 | if (st) { 121 | NSLog(@"error getting audio format propery: %d", (int)(st)); 122 | return nil; 123 | } 124 | 125 | for (unsigned int i = 0; i < count; i++) { 126 | if ((type == descriptions[i].mSubType) && 127 | (manufacturer == descriptions[i].mManufacturer)) { 128 | memcpy(&desc, &(descriptions[i]), sizeof(desc)); 129 | return &desc; 130 | } 131 | } 132 | 133 | return nil; 134 | } 135 | 136 | - (void) encoder { 137 | while (!_isCompletion) { 138 | NSData* outputData = nil; 139 | if (_audioConverter) { 140 | NSError *error = nil; 141 | AudioBufferList outAudioBufferList = {0}; 142 | outAudioBufferList.mNumberBuffers = 1; 143 | outAudioBufferList.mBuffers[0].mNumberChannels = _channels; 144 | outAudioBufferList.mBuffers[0].mDataByteSize = (int)_aacBufferSize; 145 | outAudioBufferList.mBuffers[0].mData = _aacBuffer; 146 | AudioStreamPacketDescription *outPacketDescription = NULL; 147 | UInt32 ioOutputDataPacketSize = 1; 148 | // Converts data supplied by an input callback function, supporting non-interleaved and packetized formats. 149 | // Produces a buffer list of output data from an AudioConverter. The supplied input callback function is called whenever necessary. 150 | OSStatus status = AudioConverterFillComplexBuffer(_audioConverter, inInputDataProc, (__bridge void *)(self), &ioOutputDataPacketSize, &outAudioBufferList, outPacketDescription); 151 | if (status == 0) { 152 | NSData *rawAAC = [NSData dataWithBytes:outAudioBufferList.mBuffers[0].mData length:outAudioBufferList.mBuffers[0].mDataByteSize]; 153 | if(_withADTSHeader) { 154 | NSData *adtsHeader = [self adtsDataForPacketLength:rawAAC.length]; 155 | NSMutableData *fullData = [NSMutableData dataWithData:adtsHeader]; 156 | [fullData appendData:rawAAC]; 157 | outputData = fullData; 158 | } else { 159 | outputData = rawAAC; 160 | } 161 | } else { 162 | error = [NSError errorWithDomain:NSOSStatusErrorDomain code:status userInfo:nil]; 163 | } 164 | if (_fillAudioDataDelegate && [_fillAudioDataDelegate respondsToSelector:@selector(outputAACPakcet:presentationTimeMills:error:)]) { 165 | [_fillAudioDataDelegate outputAACPakcet:outputData presentationTimeMills:_presentationTimeMills error:error]; 166 | } 167 | } else { 168 | NSLog(@"Audio Converter Init Failed..."); 169 | break; 170 | } 171 | } 172 | if(_fillAudioDataDelegate && [_fillAudioDataDelegate respondsToSelector:@selector(onCompletion)]) { 173 | [_fillAudioDataDelegate onCompletion]; 174 | } 175 | } 176 | 177 | /** 178 | * A callback function that supplies audio data to convert. This callback is invoked repeatedly as the converter is ready for new input data. 179 | 180 | */ 181 | OSStatus inInputDataProc(AudioConverterRef inAudioConverter, UInt32 *ioNumberDataPackets, AudioBufferList *ioData, AudioStreamPacketDescription **outDataPacketDescription, void *inUserData) 182 | { 183 | AudioToolboxEncoder *encoder = (__bridge AudioToolboxEncoder *)(inUserData); 184 | return [encoder fillAudioRawData:ioData ioNumberDataPackets:ioNumberDataPackets]; 185 | } 186 | 187 | - (OSStatus) fillAudioRawData:(AudioBufferList *) ioData ioNumberDataPackets:(UInt32 *) ioNumberDataPackets { 188 | UInt32 requestedPackets = *ioNumberDataPackets; 189 | uint32_t bufferLength = requestedPackets * _channels * 2; 190 | uint32_t bufferRead = 0; 191 | if(NULL == _pcmBuffer) { 192 | _pcmBuffer = malloc(bufferLength); 193 | } 194 | if(_fillAudioDataDelegate && [_fillAudioDataDelegate respondsToSelector:@selector(fillAudioData:bufferSize:)]) { 195 | bufferRead = [_fillAudioDataDelegate fillAudioData:_pcmBuffer bufferSize:bufferLength]; 196 | } 197 | if (bufferRead <= 0) { 198 | *ioNumberDataPackets = 0; 199 | _isCompletion = YES; 200 | return -1; 201 | } 202 | _presentationTimeMills += (float)requestedPackets * 1000 / (float)_inputSampleRate; 203 | ioData->mBuffers[0].mData = _pcmBuffer; 204 | ioData->mBuffers[0].mDataByteSize = bufferRead; 205 | ioData->mNumberBuffers = 1; 206 | ioData->mBuffers[0].mNumberChannels = _channels; 207 | *ioNumberDataPackets = 1 ; 208 | return noErr; 209 | } 210 | 211 | /** 212 | * Add ADTS header at the beginning of each and every AAC packet. 213 | * This is needed as MediaCodec encoder generates a packet of raw 214 | * AAC data. 215 | * 216 | * Note the packetLen must count in the ADTS header itself. 217 | * See: http://wiki.multimedia.cx/index.php?title=ADTS 218 | * Also: http://wiki.multimedia.cx/index.php?title=MPEG-4_Audio#Channel_Configurations 219 | **/ 220 | - (NSData*) adtsDataForPacketLength:(NSUInteger)packetLength { 221 | int adtsLength = 7; 222 | char *packet = malloc(sizeof(char) * adtsLength); 223 | // Variables Recycled by addADTStoPacket 224 | int profile = 2; //AAC LC 225 | //39=MediaCodecInfo.CodecProfileLevel.AACObjectELD; 226 | int freqIdx = 4; //44.1KHz 227 | int chanCfg = _channels; //MPEG-4 Audio Channel Configuration. 1 Channel front-center 228 | NSUInteger fullLength = adtsLength + packetLength; 229 | // fill in ADTS data 230 | packet[0] = (char)0xFF; // 11111111 = syncword 231 | packet[1] = (char)0xF9; // 1111 1 00 1 = syncword MPEG-2 Layer CRC 232 | packet[2] = (char)(((profile-1)<<6) + (freqIdx<<2) +(chanCfg>>2)); 233 | packet[3] = (char)(((chanCfg&3)<<6) + (fullLength>>11)); 234 | packet[4] = (char)((fullLength&0x7FF) >> 3); 235 | packet[5] = (char)(((fullLength&7)<<5) + 0x1F); 236 | packet[6] = (char)0xFC; 237 | NSData *data = [NSData dataWithBytesNoCopy:packet length:adtsLength freeWhenDone:YES]; 238 | return data; 239 | } 240 | 241 | - (void) dealloc 242 | { 243 | if(_pcmBuffer) { 244 | free(_pcmBuffer); 245 | _pcmBuffer = NULL; 246 | } 247 | if(_aacBuffer) { 248 | free(_aacBuffer); 249 | _aacBuffer = NULL; 250 | } 251 | AudioConverterDispose(_audioConverter); 252 | } 253 | @end 254 | -------------------------------------------------------------------------------- /AudioToolboxEncoder/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /AudioToolboxEncoder/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIRequiredDeviceCapabilities 26 | 27 | armv7 28 | 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /AudioToolboxEncoder/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // AudioToolboxEncoder 4 | // 5 | // Created by apple on 2017/2/16. 6 | // Copyright © 2017年 xiaokai.zhan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /AudioToolboxEncoder/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // AudioToolboxEncoder 4 | // 5 | // Created by apple on 2017/2/16. 6 | // Copyright © 2017年 xiaokai.zhan. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "CommonUtil.h" 11 | #import "AudioToolboxEncoder.h" 12 | 13 | 14 | @interface ViewController () 15 | { 16 | AudioToolboxEncoder* _encoder; 17 | NSString* _pcmFilePath; 18 | NSString* _aacFilePath; 19 | NSFileHandle* _aacFileHandle; 20 | NSFileHandle* _pcmFileHandle; 21 | double _startEncodeTimeMills; 22 | } 23 | @end 24 | 25 | @implementation ViewController 26 | 27 | - (void)viewDidLoad { 28 | [super viewDidLoad]; 29 | // Do any additional setup after loading the view, typically from a nib. 30 | } 31 | - (IBAction)encode:(id)sender { 32 | NSLog(@"AudioToolbox Encoder Test..."); 33 | // _pcmFilePath = [CommonUtil bundlePath:@"vocal.pcm"]; 34 | _pcmFilePath = [CommonUtil bundlePath:@"problem.pcm"]; 35 | _pcmFileHandle = [NSFileHandle fileHandleForReadingAtPath:_pcmFilePath]; 36 | _aacFilePath = [CommonUtil documentsPath:@"vocal.aac"]; 37 | [[NSFileManager defaultManager] removeItemAtPath:_aacFilePath error:nil]; 38 | [[NSFileManager defaultManager] createFileAtPath:_aacFilePath contents:nil attributes:nil]; 39 | _aacFileHandle = [NSFileHandle fileHandleForWritingAtPath:_aacFilePath]; 40 | NSInteger sampleRate = 44100; 41 | int channels = 2; 42 | int bitRate = 128 * 1024; 43 | _startEncodeTimeMills = CFAbsoluteTimeGetCurrent() * 1000; 44 | _encoder = [[AudioToolboxEncoder alloc] initWithSampleRate:sampleRate channels:channels bitRate:bitRate withADTSHeader:YES filleDataDelegate:self]; 45 | 46 | } 47 | 48 | - (UInt32) fillAudioData:(uint8_t*) sampleBuffer bufferSize:(UInt32) bufferSize; 49 | { 50 | UInt32 ret = 0; 51 | NSData* data = [_pcmFileHandle readDataOfLength:bufferSize]; 52 | if(data && data.length > 0) { 53 | memcpy(sampleBuffer, data.bytes, data.length); 54 | ret = (UInt32)data.length; 55 | } 56 | return ret; 57 | } 58 | 59 | - (void) outputAACPakcet:(NSData*) data presentationTimeMills:(int64_t)presentationTimeMills error:(NSError*) error; 60 | { 61 | if(nil == error) { 62 | [_aacFileHandle writeData:data]; 63 | } else { 64 | NSLog(@"Output AAC Packet return Error:%@", error); 65 | } 66 | } 67 | 68 | - (void) onCompletion { 69 | int wasteTimeMills = CFAbsoluteTimeGetCurrent() * 1000 - _startEncodeTimeMills; 70 | NSLog(@"Encode AAC Waste TimeMills is %d", wasteTimeMills); 71 | [_aacFileHandle closeFile]; 72 | _aacFileHandle = NULL; 73 | } 74 | 75 | 76 | - (void)didReceiveMemoryWarning { 77 | [super didReceiveMemoryWarning]; 78 | // Dispose of any resources that can be recreated. 79 | } 80 | 81 | 82 | @end 83 | -------------------------------------------------------------------------------- /AudioToolboxEncoder/ViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 29 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /AudioToolboxEncoder/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // AudioToolboxEncoder 4 | // 5 | // Created by apple on 2017/2/16. 6 | // Copyright © 2017年 xiaokai.zhan. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /AudioToolboxEncoder/resource/problem.pcm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhanxiaokai/iOS-AudioToolboxEncoder/e1a95af6e04839dbfc89f5565e5043800e3de077/AudioToolboxEncoder/resource/problem.pcm -------------------------------------------------------------------------------- /AudioToolboxEncoder/resource/vocal.pcm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhanxiaokai/iOS-AudioToolboxEncoder/e1a95af6e04839dbfc89f5565e5043800e3de077/AudioToolboxEncoder/resource/vocal.pcm -------------------------------------------------------------------------------- /AudioToolboxEncoder/utils/CommonUtil.h: -------------------------------------------------------------------------------- 1 | // 2 | // CommonUtil.h 3 | // video_player 4 | // 5 | // Created by apple on 16/8/25. 6 | // Copyright © 2016年 xiaokai.zhan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CommonUtil : NSObject 12 | 13 | +(NSString *)bundlePath:(NSString *)fileName; 14 | 15 | +(NSString *)documentsPath:(NSString *)fileName; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /AudioToolboxEncoder/utils/CommonUtil.m: -------------------------------------------------------------------------------- 1 | // 2 | // CommonUtil.m 3 | // video_player 4 | // 5 | // Created by apple on 16/8/25. 6 | // Copyright © 2016年 xiaokai.zhan. All rights reserved. 7 | // 8 | 9 | #import "CommonUtil.h" 10 | 11 | @implementation CommonUtil 12 | 13 | +(NSString *)bundlePath:(NSString *)fileName { 14 | return [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:fileName]; 15 | } 16 | 17 | +(NSString *)documentsPath:(NSString *)fileName { 18 | NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); 19 | NSString *documentsDirectory = [paths objectAtIndex:0]; 20 | return [documentsDirectory stringByAppendingPathComponent:fileName]; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /AudioToolboxEncoderTests/AudioToolboxEncoderTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // AudioToolboxEncoderTests.m 3 | // AudioToolboxEncoderTests 4 | // 5 | // Created by apple on 2017/2/16. 6 | // Copyright © 2017年 xiaokai.zhan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AudioToolboxEncoderTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation AudioToolboxEncoderTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /AudioToolboxEncoderTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /AudioToolboxEncoderUITests/AudioToolboxEncoderUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // AudioToolboxEncoderUITests.m 3 | // AudioToolboxEncoderUITests 4 | // 5 | // Created by apple on 2017/2/16. 6 | // Copyright © 2017年 xiaokai.zhan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AudioToolboxEncoderUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation AudioToolboxEncoderUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /AudioToolboxEncoderUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | --------------------------------------------------------------------------------