From 4df5a84569ec384be6e32f142b4af6cab915298c Mon Sep 17 00:00:00 2001 From: Thong Nguyen Date: Sun, 2 Feb 2014 13:14:37 +0000 Subject: [PATCH] Added OSX build targets and ExampleAppMac. Added AudioUnit as a dependent framework in podspec --- .../ExampleAppMac.xcodeproj/project.pbxproj | 529 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/ExampleAppMac.xccheckout | 41 ++ ExampleAppMac/ExampleAppMac/AppDelegate.h | 15 + ExampleAppMac/ExampleAppMac/AppDelegate.m | 21 + .../ExampleAppMac/Base.lproj/MainMenu.xib | 467 ++++++++++++++++ .../ExampleAppMac/ExampleAppMac-Info.plist | 34 ++ .../ExampleAppMac/ExampleAppMac-Prefix.pch | 9 + .../AppIcon.appiconset/Contents.json | 58 ++ .../ExampleAppMac/en.lproj/Credits.rtf | 29 + .../ExampleAppMac/en.lproj/InfoPlist.strings | 2 + ExampleAppMac/ExampleAppMac/main.m | 14 + .../ExampleAppMacTests-Info.plist | 22 + .../ExampleAppMacTests/ExampleAppMacTests.m | 34 ++ .../en.lproj/InfoPlist.strings | 2 + StreamingKit-head.podspec | 2 +- StreamingKit.podspec | 2 +- .../contents.xcworkspacedata | 3 + .../StreamingKit.xcodeproj/project.pbxproj | 56 +- StreamingKit/StreamingKit/STKAudioPlayer.m | 3 +- 20 files changed, 1341 insertions(+), 9 deletions(-) create mode 100644 ExampleAppMac/ExampleAppMac.xcodeproj/project.pbxproj create mode 100644 ExampleAppMac/ExampleAppMac.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 ExampleAppMac/ExampleAppMac.xcodeproj/project.xcworkspace/xcshareddata/ExampleAppMac.xccheckout create mode 100644 ExampleAppMac/ExampleAppMac/AppDelegate.h create mode 100644 ExampleAppMac/ExampleAppMac/AppDelegate.m create mode 100644 ExampleAppMac/ExampleAppMac/Base.lproj/MainMenu.xib create mode 100644 ExampleAppMac/ExampleAppMac/ExampleAppMac-Info.plist create mode 100644 ExampleAppMac/ExampleAppMac/ExampleAppMac-Prefix.pch create mode 100644 ExampleAppMac/ExampleAppMac/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 ExampleAppMac/ExampleAppMac/en.lproj/Credits.rtf create mode 100644 ExampleAppMac/ExampleAppMac/en.lproj/InfoPlist.strings create mode 100644 ExampleAppMac/ExampleAppMac/main.m create mode 100644 ExampleAppMac/ExampleAppMacTests/ExampleAppMacTests-Info.plist create mode 100644 ExampleAppMac/ExampleAppMacTests/ExampleAppMacTests.m create mode 100644 ExampleAppMac/ExampleAppMacTests/en.lproj/InfoPlist.strings diff --git a/ExampleAppMac/ExampleAppMac.xcodeproj/project.pbxproj b/ExampleAppMac/ExampleAppMac.xcodeproj/project.pbxproj new file mode 100644 index 0000000..05afba7 --- /dev/null +++ b/ExampleAppMac/ExampleAppMac.xcodeproj/project.pbxproj @@ -0,0 +1,529 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + A1A499A5189E765800E2A2E2 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1A499A4189E765800E2A2E2 /* Cocoa.framework */; }; + A1A499AF189E765800E2A2E2 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = A1A499AD189E765800E2A2E2 /* InfoPlist.strings */; }; + A1A499B1189E765800E2A2E2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A1A499B0189E765800E2A2E2 /* main.m */; }; + A1A499B5189E765800E2A2E2 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = A1A499B3189E765800E2A2E2 /* Credits.rtf */; }; + A1A499B8189E765800E2A2E2 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A1A499B7189E765800E2A2E2 /* AppDelegate.m */; }; + A1A499BB189E765800E2A2E2 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = A1A499B9189E765800E2A2E2 /* MainMenu.xib */; }; + A1A499BD189E765800E2A2E2 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A1A499BC189E765800E2A2E2 /* Images.xcassets */; }; + A1A499C4189E765800E2A2E2 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1A499C3189E765800E2A2E2 /* XCTest.framework */; }; + A1A499C5189E765800E2A2E2 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1A499A4189E765800E2A2E2 /* Cocoa.framework */; }; + A1A499CD189E765800E2A2E2 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = A1A499CB189E765800E2A2E2 /* InfoPlist.strings */; }; + A1A499CF189E765800E2A2E2 /* ExampleAppMacTests.m in Sources */ = {isa = PBXBuildFile; fileRef = A1A499CE189E765800E2A2E2 /* ExampleAppMacTests.m */; }; + A1A499EC189E793300E2A2E2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1A499A9189E765800E2A2E2 /* Foundation.framework */; }; + A1A499F0189E793D00E2A2E2 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1A499EF189E793D00E2A2E2 /* CoreAudio.framework */; }; + A1A499F2189E799400E2A2E2 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1A499F1189E799400E2A2E2 /* AudioToolbox.framework */; }; + A1A499F3189E799F00E2A2E2 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1A499ED189E793700E2A2E2 /* AudioUnit.framework */; }; + A1A499F5189E79CB00E2A2E2 /* CoreAudioKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1A499F4189E79CB00E2A2E2 /* CoreAudioKit.framework */; }; + A1A499F9189E7A3500E2A2E2 /* libStreamingKitMac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A1A499F8189E7A3500E2A2E2 /* libStreamingKitMac.a */; }; + A1A499FA189E7A5600E2A2E2 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1A499F1189E799400E2A2E2 /* AudioToolbox.framework */; }; + A1A499FC189E7A6D00E2A2E2 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1A499FB189E7A6D00E2A2E2 /* SystemConfiguration.framework */; }; + A1A499FD189E7BFC00E2A2E2 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1A499ED189E793700E2A2E2 /* AudioUnit.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + A1A499C6189E765800E2A2E2 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = A1A49999189E765800E2A2E2 /* Project object */; + proxyType = 1; + remoteGlobalIDString = A1A499A0189E765800E2A2E2; + remoteInfo = ExampleAppMac; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + A1A499A1189E765800E2A2E2 /* ExampleAppMac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ExampleAppMac.app; sourceTree = BUILT_PRODUCTS_DIR; }; + A1A499A4189E765800E2A2E2 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; + A1A499A7189E765800E2A2E2 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; + A1A499A8189E765800E2A2E2 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; + A1A499A9189E765800E2A2E2 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + A1A499AC189E765800E2A2E2 /* ExampleAppMac-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ExampleAppMac-Info.plist"; sourceTree = ""; }; + A1A499AE189E765800E2A2E2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + A1A499B0189E765800E2A2E2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + A1A499B2189E765800E2A2E2 /* ExampleAppMac-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ExampleAppMac-Prefix.pch"; sourceTree = ""; }; + A1A499B4189E765800E2A2E2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = en; path = en.lproj/Credits.rtf; sourceTree = ""; }; + A1A499B6189E765800E2A2E2 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + A1A499B7189E765800E2A2E2 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + A1A499BA189E765800E2A2E2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + A1A499BC189E765800E2A2E2 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + A1A499C2189E765800E2A2E2 /* ExampleAppMacTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExampleAppMacTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + A1A499C3189E765800E2A2E2 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + A1A499CA189E765800E2A2E2 /* ExampleAppMacTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ExampleAppMacTests-Info.plist"; sourceTree = ""; }; + A1A499CC189E765800E2A2E2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + A1A499CE189E765800E2A2E2 /* ExampleAppMacTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ExampleAppMacTests.m; sourceTree = ""; }; + A1A499EA189E76BD00E2A2E2 /* libStreamingKitMac.a */ = {isa = PBXFileReference; lastKnownFileType = file; name = libStreamingKitMac.a; path = ../StreamingKit/build/Debug/libStreamingKitMac.a; sourceTree = ""; }; + A1A499ED189E793700E2A2E2 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioUnit.framework; path = System/Library/Frameworks/AudioUnit.framework; sourceTree = SDKROOT; }; + A1A499EF189E793D00E2A2E2 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = System/Library/Frameworks/CoreAudio.framework; sourceTree = SDKROOT; }; + A1A499F1189E799400E2A2E2 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; + A1A499F4189E79CB00E2A2E2 /* CoreAudioKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudioKit.framework; path = System/Library/Frameworks/CoreAudioKit.framework; sourceTree = SDKROOT; }; + A1A499F8189E7A3500E2A2E2 /* libStreamingKitMac.a */ = {isa = PBXFileReference; lastKnownFileType = file; name = libStreamingKitMac.a; path = ../StreamingKit/build/Debug/libStreamingKitMac.a; sourceTree = ""; }; + A1A499FB189E7A6D00E2A2E2 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + A1A4999E189E765800E2A2E2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A1A499FD189E7BFC00E2A2E2 /* AudioUnit.framework in Frameworks */, + A1A499FC189E7A6D00E2A2E2 /* SystemConfiguration.framework in Frameworks */, + A1A499FA189E7A5600E2A2E2 /* AudioToolbox.framework in Frameworks */, + A1A499F9189E7A3500E2A2E2 /* libStreamingKitMac.a in Frameworks */, + A1A499F0189E793D00E2A2E2 /* CoreAudio.framework in Frameworks */, + A1A499EC189E793300E2A2E2 /* Foundation.framework in Frameworks */, + A1A499A5189E765800E2A2E2 /* Cocoa.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + A1A499BF189E765800E2A2E2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A1A499F5189E79CB00E2A2E2 /* CoreAudioKit.framework in Frameworks */, + A1A499F3189E799F00E2A2E2 /* AudioUnit.framework in Frameworks */, + A1A499F2189E799400E2A2E2 /* AudioToolbox.framework in Frameworks */, + A1A499C5189E765800E2A2E2 /* Cocoa.framework in Frameworks */, + A1A499C4189E765800E2A2E2 /* XCTest.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + A1A49998189E765800E2A2E2 = { + isa = PBXGroup; + children = ( + A1A499AA189E765800E2A2E2 /* ExampleAppMac */, + A1A499C8189E765800E2A2E2 /* ExampleAppMacTests */, + A1A499A3189E765800E2A2E2 /* Frameworks */, + A1A499A2189E765800E2A2E2 /* Products */, + ); + sourceTree = ""; + }; + A1A499A2189E765800E2A2E2 /* Products */ = { + isa = PBXGroup; + children = ( + A1A499A1189E765800E2A2E2 /* ExampleAppMac.app */, + A1A499C2189E765800E2A2E2 /* ExampleAppMacTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + A1A499A3189E765800E2A2E2 /* Frameworks */ = { + isa = PBXGroup; + children = ( + A1A499FB189E7A6D00E2A2E2 /* SystemConfiguration.framework */, + A1A499F8189E7A3500E2A2E2 /* libStreamingKitMac.a */, + A1A499F4189E79CB00E2A2E2 /* CoreAudioKit.framework */, + A1A499F1189E799400E2A2E2 /* AudioToolbox.framework */, + A1A499EF189E793D00E2A2E2 /* CoreAudio.framework */, + A1A499ED189E793700E2A2E2 /* AudioUnit.framework */, + A1A499EA189E76BD00E2A2E2 /* libStreamingKitMac.a */, + A1A499A4189E765800E2A2E2 /* Cocoa.framework */, + A1A499C3189E765800E2A2E2 /* XCTest.framework */, + A1A499A6189E765800E2A2E2 /* Other Frameworks */, + ); + name = Frameworks; + sourceTree = ""; + }; + A1A499A6189E765800E2A2E2 /* Other Frameworks */ = { + isa = PBXGroup; + children = ( + A1A499A7189E765800E2A2E2 /* AppKit.framework */, + A1A499A8189E765800E2A2E2 /* CoreData.framework */, + A1A499A9189E765800E2A2E2 /* Foundation.framework */, + ); + name = "Other Frameworks"; + sourceTree = ""; + }; + A1A499AA189E765800E2A2E2 /* ExampleAppMac */ = { + isa = PBXGroup; + children = ( + A1A499B6189E765800E2A2E2 /* AppDelegate.h */, + A1A499B7189E765800E2A2E2 /* AppDelegate.m */, + A1A499B9189E765800E2A2E2 /* MainMenu.xib */, + A1A499BC189E765800E2A2E2 /* Images.xcassets */, + A1A499AB189E765800E2A2E2 /* Supporting Files */, + ); + path = ExampleAppMac; + sourceTree = ""; + }; + A1A499AB189E765800E2A2E2 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + A1A499AC189E765800E2A2E2 /* ExampleAppMac-Info.plist */, + A1A499AD189E765800E2A2E2 /* InfoPlist.strings */, + A1A499B0189E765800E2A2E2 /* main.m */, + A1A499B2189E765800E2A2E2 /* ExampleAppMac-Prefix.pch */, + A1A499B3189E765800E2A2E2 /* Credits.rtf */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + A1A499C8189E765800E2A2E2 /* ExampleAppMacTests */ = { + isa = PBXGroup; + children = ( + A1A499CE189E765800E2A2E2 /* ExampleAppMacTests.m */, + A1A499C9189E765800E2A2E2 /* Supporting Files */, + ); + path = ExampleAppMacTests; + sourceTree = ""; + }; + A1A499C9189E765800E2A2E2 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + A1A499CA189E765800E2A2E2 /* ExampleAppMacTests-Info.plist */, + A1A499CB189E765800E2A2E2 /* InfoPlist.strings */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + A1A499A0189E765800E2A2E2 /* ExampleAppMac */ = { + isa = PBXNativeTarget; + buildConfigurationList = A1A499D2189E765800E2A2E2 /* Build configuration list for PBXNativeTarget "ExampleAppMac" */; + buildPhases = ( + A1A4999D189E765800E2A2E2 /* Sources */, + A1A4999E189E765800E2A2E2 /* Frameworks */, + A1A4999F189E765800E2A2E2 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ExampleAppMac; + productName = ExampleAppMac; + productReference = A1A499A1189E765800E2A2E2 /* ExampleAppMac.app */; + productType = "com.apple.product-type.application"; + }; + A1A499C1189E765800E2A2E2 /* ExampleAppMacTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = A1A499D5189E765800E2A2E2 /* Build configuration list for PBXNativeTarget "ExampleAppMacTests" */; + buildPhases = ( + A1A499BE189E765800E2A2E2 /* Sources */, + A1A499BF189E765800E2A2E2 /* Frameworks */, + A1A499C0189E765800E2A2E2 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + A1A499C7189E765800E2A2E2 /* PBXTargetDependency */, + ); + name = ExampleAppMacTests; + productName = ExampleAppMacTests; + productReference = A1A499C2189E765800E2A2E2 /* ExampleAppMacTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + A1A49999189E765800E2A2E2 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0500; + ORGANIZATIONNAME = "Thong Nguyen"; + TargetAttributes = { + A1A499C1189E765800E2A2E2 = { + TestTargetID = A1A499A0189E765800E2A2E2; + }; + }; + }; + buildConfigurationList = A1A4999C189E765800E2A2E2 /* Build configuration list for PBXProject "ExampleAppMac" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = A1A49998189E765800E2A2E2; + productRefGroup = A1A499A2189E765800E2A2E2 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + A1A499A0189E765800E2A2E2 /* ExampleAppMac */, + A1A499C1189E765800E2A2E2 /* ExampleAppMacTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + A1A4999F189E765800E2A2E2 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A1A499AF189E765800E2A2E2 /* InfoPlist.strings in Resources */, + A1A499BD189E765800E2A2E2 /* Images.xcassets in Resources */, + A1A499B5189E765800E2A2E2 /* Credits.rtf in Resources */, + A1A499BB189E765800E2A2E2 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + A1A499C0189E765800E2A2E2 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A1A499CD189E765800E2A2E2 /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + A1A4999D189E765800E2A2E2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A1A499B8189E765800E2A2E2 /* AppDelegate.m in Sources */, + A1A499B1189E765800E2A2E2 /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + A1A499BE189E765800E2A2E2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A1A499CF189E765800E2A2E2 /* ExampleAppMacTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + A1A499C7189E765800E2A2E2 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = A1A499A0189E765800E2A2E2 /* ExampleAppMac */; + targetProxy = A1A499C6189E765800E2A2E2 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + A1A499AD189E765800E2A2E2 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + A1A499AE189E765800E2A2E2 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + A1A499B3189E765800E2A2E2 /* Credits.rtf */ = { + isa = PBXVariantGroup; + children = ( + A1A499B4189E765800E2A2E2 /* en */, + ); + name = Credits.rtf; + sourceTree = ""; + }; + A1A499B9189E765800E2A2E2 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + A1A499BA189E765800E2A2E2 /* Base */, + ); + name = MainMenu.xib; + sourceTree = ""; + }; + A1A499CB189E765800E2A2E2 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + A1A499CC189E765800E2A2E2 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + A1A499D0189E765800E2A2E2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.9; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + }; + name = Debug; + }; + A1A499D1189E765800E2A2E2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.9; + SDKROOT = macosx; + }; + name = Release; + }; + A1A499D3189E765800E2A2E2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + COMBINE_HIDPI_IMAGES = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "ExampleAppMac/ExampleAppMac-Prefix.pch"; + HEADER_SEARCH_PATHS = ( + "$(inherited)", + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, + "$(SRCROOT)/../StreamingKit/StreamingKit", + ); + INFOPLIST_FILE = "ExampleAppMac/ExampleAppMac-Info.plist"; + MACOSX_DEPLOYMENT_TARGET = 10.8; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + A1A499D4189E765800E2A2E2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + COMBINE_HIDPI_IMAGES = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "ExampleAppMac/ExampleAppMac-Prefix.pch"; + HEADER_SEARCH_PATHS = ( + "$(inherited)", + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, + "$(SRCROOT)/../StreamingKit/StreamingKit", + ); + INFOPLIST_FILE = "ExampleAppMac/ExampleAppMac-Info.plist"; + MACOSX_DEPLOYMENT_TARGET = 10.8; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + A1A499D6189E765800E2A2E2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/ExampleAppMac.app/Contents/MacOS/ExampleAppMac"; + COMBINE_HIDPI_IMAGES = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(DEVELOPER_FRAMEWORKS_DIR)", + "$(inherited)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "ExampleAppMac/ExampleAppMac-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "ExampleAppMacTests/ExampleAppMacTests-Info.plist"; + MACOSX_DEPLOYMENT_TARGET = 10.8; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Debug; + }; + A1A499D7189E765800E2A2E2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/ExampleAppMac.app/Contents/MacOS/ExampleAppMac"; + COMBINE_HIDPI_IMAGES = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(DEVELOPER_FRAMEWORKS_DIR)", + "$(inherited)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "ExampleAppMac/ExampleAppMac-Prefix.pch"; + INFOPLIST_FILE = "ExampleAppMacTests/ExampleAppMacTests-Info.plist"; + MACOSX_DEPLOYMENT_TARGET = 10.8; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + A1A4999C189E765800E2A2E2 /* Build configuration list for PBXProject "ExampleAppMac" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + A1A499D0189E765800E2A2E2 /* Debug */, + A1A499D1189E765800E2A2E2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + A1A499D2189E765800E2A2E2 /* Build configuration list for PBXNativeTarget "ExampleAppMac" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + A1A499D3189E765800E2A2E2 /* Debug */, + A1A499D4189E765800E2A2E2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + A1A499D5189E765800E2A2E2 /* Build configuration list for PBXNativeTarget "ExampleAppMacTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + A1A499D6189E765800E2A2E2 /* Debug */, + A1A499D7189E765800E2A2E2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = A1A49999189E765800E2A2E2 /* Project object */; +} diff --git a/ExampleAppMac/ExampleAppMac.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ExampleAppMac/ExampleAppMac.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..436fba6 --- /dev/null +++ b/ExampleAppMac/ExampleAppMac.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ExampleAppMac/ExampleAppMac.xcodeproj/project.xcworkspace/xcshareddata/ExampleAppMac.xccheckout b/ExampleAppMac/ExampleAppMac.xcodeproj/project.xcworkspace/xcshareddata/ExampleAppMac.xccheckout new file mode 100644 index 0000000..0eeebd3 --- /dev/null +++ b/ExampleAppMac/ExampleAppMac.xcodeproj/project.xcworkspace/xcshareddata/ExampleAppMac.xccheckout @@ -0,0 +1,41 @@ + + + + + IDESourceControlProjectFavoriteDictionaryKey + + IDESourceControlProjectIdentifier + B1180E29-F9F8-4232-A985-F8E21716EF14 + IDESourceControlProjectName + ExampleAppMac + IDESourceControlProjectOriginsDictionary + + DD310C30-B3D0-4BD7-9565-9F29F09CC4F8 + https://github.com/tumtumtum/StreamingKit.git + + IDESourceControlProjectPath + ExampleAppMac/ExampleAppMac.xcodeproj/project.xcworkspace + IDESourceControlProjectRelativeInstallPathDictionary + + DD310C30-B3D0-4BD7-9565-9F29F09CC4F8 + ../../.. + + IDESourceControlProjectURL + https://github.com/tumtumtum/StreamingKit.git + IDESourceControlProjectVersion + 110 + IDESourceControlProjectWCCIdentifier + DD310C30-B3D0-4BD7-9565-9F29F09CC4F8 + IDESourceControlProjectWCConfigurations + + + IDESourceControlRepositoryExtensionIdentifierKey + public.vcs.git + IDESourceControlWCCIdentifierKey + DD310C30-B3D0-4BD7-9565-9F29F09CC4F8 + IDESourceControlWCCName + StreamingKit + + + + diff --git a/ExampleAppMac/ExampleAppMac/AppDelegate.h b/ExampleAppMac/ExampleAppMac/AppDelegate.h new file mode 100644 index 0000000..32f2314 --- /dev/null +++ b/ExampleAppMac/ExampleAppMac/AppDelegate.h @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// ExampleAppMac +// +// Created by Thong Nguyen on 02/02/2014. +// Copyright (c) 2014 Thong Nguyen. All rights reserved. +// + +#import + +@interface AppDelegate : NSObject + +@property (assign) IBOutlet NSWindow *window; + +@end diff --git a/ExampleAppMac/ExampleAppMac/AppDelegate.m b/ExampleAppMac/ExampleAppMac/AppDelegate.m new file mode 100644 index 0000000..ab2a7c5 --- /dev/null +++ b/ExampleAppMac/ExampleAppMac/AppDelegate.m @@ -0,0 +1,21 @@ +// +// AppDelegate.m +// ExampleAppMac +// +// Created by Thong Nguyen on 02/02/2014. +// Copyright (c) 2014 Thong Nguyen. All rights reserved. +// + +#import "AppDelegate.h" +#import "STKAudioPlayer.h" + +@implementation AppDelegate + +-(void) applicationDidFinishLaunching:(NSNotification *)aNotification +{ + STKAudioPlayer* player = [[STKAudioPlayer alloc] init]; + + [player play:@"http://fs.bloom.fm/oss/audiosamples/sample.mp3"]; +} + +@end diff --git a/ExampleAppMac/ExampleAppMac/Base.lproj/MainMenu.xib b/ExampleAppMac/ExampleAppMac/Base.lproj/MainMenu.xib new file mode 100644 index 0000000..eefd534 --- /dev/null +++ b/ExampleAppMac/ExampleAppMac/Base.lproj/MainMenu.xib @@ -0,0 +1,467 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default + + + + Left to Right + + + + Right to Left + + + + + + + + Default + + + + Left to Right + + + + Right to Left + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExampleAppMac/ExampleAppMac/ExampleAppMac-Info.plist b/ExampleAppMac/ExampleAppMac/ExampleAppMac-Info.plist new file mode 100644 index 0000000..9248f20 --- /dev/null +++ b/ExampleAppMac/ExampleAppMac/ExampleAppMac-Info.plist @@ -0,0 +1,34 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + + CFBundleIdentifier + com.abstractpath.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSMinimumSystemVersion + ${MACOSX_DEPLOYMENT_TARGET} + NSHumanReadableCopyright + Copyright © 2014 Thong Nguyen. All rights reserved. + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/ExampleAppMac/ExampleAppMac/ExampleAppMac-Prefix.pch b/ExampleAppMac/ExampleAppMac/ExampleAppMac-Prefix.pch new file mode 100644 index 0000000..926a42b --- /dev/null +++ b/ExampleAppMac/ExampleAppMac/ExampleAppMac-Prefix.pch @@ -0,0 +1,9 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#ifdef __OBJC__ + #import +#endif diff --git a/ExampleAppMac/ExampleAppMac/Images.xcassets/AppIcon.appiconset/Contents.json b/ExampleAppMac/ExampleAppMac/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..2db2b1c --- /dev/null +++ b/ExampleAppMac/ExampleAppMac/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,58 @@ +{ + "images" : [ + { + "idiom" : "mac", + "size" : "16x16", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "16x16", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "32x32", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "32x32", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "128x128", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "128x128", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ExampleAppMac/ExampleAppMac/en.lproj/Credits.rtf b/ExampleAppMac/ExampleAppMac/en.lproj/Credits.rtf new file mode 100644 index 0000000..46576ef --- /dev/null +++ b/ExampleAppMac/ExampleAppMac/en.lproj/Credits.rtf @@ -0,0 +1,29 @@ +{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;} +{\colortbl;\red255\green255\blue255;} +\paperw9840\paperh8400 +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural + +\f0\b\fs24 \cf0 Engineering: +\b0 \ + Some people\ +\ + +\b Human Interface Design: +\b0 \ + Some other people\ +\ + +\b Testing: +\b0 \ + Hopefully not nobody\ +\ + +\b Documentation: +\b0 \ + Whoever\ +\ + +\b With special thanks to: +\b0 \ + Mom\ +} diff --git a/ExampleAppMac/ExampleAppMac/en.lproj/InfoPlist.strings b/ExampleAppMac/ExampleAppMac/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/ExampleAppMac/ExampleAppMac/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/ExampleAppMac/ExampleAppMac/main.m b/ExampleAppMac/ExampleAppMac/main.m new file mode 100644 index 0000000..9322aa7 --- /dev/null +++ b/ExampleAppMac/ExampleAppMac/main.m @@ -0,0 +1,14 @@ +// +// main.m +// ExampleAppMac +// +// Created by Thong Nguyen on 02/02/2014. +// Copyright (c) 2014 Thong Nguyen. All rights reserved. +// + +#import + +int main(int argc, const char * argv[]) +{ + return NSApplicationMain(argc, argv); +} diff --git a/ExampleAppMac/ExampleAppMacTests/ExampleAppMacTests-Info.plist b/ExampleAppMac/ExampleAppMacTests/ExampleAppMacTests-Info.plist new file mode 100644 index 0000000..552d5b1 --- /dev/null +++ b/ExampleAppMac/ExampleAppMacTests/ExampleAppMacTests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.abstractpath.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/ExampleAppMac/ExampleAppMacTests/ExampleAppMacTests.m b/ExampleAppMac/ExampleAppMacTests/ExampleAppMacTests.m new file mode 100644 index 0000000..3ae839a --- /dev/null +++ b/ExampleAppMac/ExampleAppMacTests/ExampleAppMacTests.m @@ -0,0 +1,34 @@ +// +// ExampleAppMacTests.m +// ExampleAppMacTests +// +// Created by Thong Nguyen on 02/02/2014. +// Copyright (c) 2014 Thong Nguyen. All rights reserved. +// + +#import + +@interface ExampleAppMacTests : XCTestCase + +@end + +@implementation ExampleAppMacTests + +- (void)setUp +{ + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown +{ + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample +{ + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); +} + +@end diff --git a/ExampleAppMac/ExampleAppMacTests/en.lproj/InfoPlist.strings b/ExampleAppMac/ExampleAppMacTests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/ExampleAppMac/ExampleAppMacTests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/StreamingKit-head.podspec b/StreamingKit-head.podspec index c55bdd7..5eae266 100644 --- a/StreamingKit-head.podspec +++ b/StreamingKit-head.podspec @@ -9,5 +9,5 @@ Pod::Spec.new do |s| s.platform = :ios s.requires_arc = true s.source_files = 'StreamingKit/StreamingKit/*.{h,m}' - s.frameworks = 'AVFoundation', 'SystemConfiguration', 'CFNetwork', 'CoreFoundation', 'AudioToolbox' + s.frameworks = 'AVFoundation', 'SystemConfiguration', 'CFNetwork', 'CoreFoundation', 'AudioToolbox', 'AudioUnit' end diff --git a/StreamingKit.podspec b/StreamingKit.podspec index 57a76ab..1a18544 100644 --- a/StreamingKit.podspec +++ b/StreamingKit.podspec @@ -9,5 +9,5 @@ Pod::Spec.new do |s| s.platform = :ios s.requires_arc = true s.source_files = 'StreamingKit/StreamingKit/*.{h,m}' - s.frameworks = 'AVFoundation', 'SystemConfiguration', 'CFNetwork', 'CoreFoundation', 'AudioToolbox' + s.frameworks = 'AVFoundation', 'SystemConfiguration', 'CFNetwork', 'CoreFoundation', 'AudioToolbox', 'AudioUnit' end diff --git a/StreamingKit.xcworkspace/contents.xcworkspacedata b/StreamingKit.xcworkspace/contents.xcworkspacedata index eb695ed..1155645 100644 --- a/StreamingKit.xcworkspace/contents.xcworkspacedata +++ b/StreamingKit.xcworkspace/contents.xcworkspacedata @@ -4,6 +4,9 @@ + + diff --git a/StreamingKit/StreamingKit.xcodeproj/project.pbxproj b/StreamingKit/StreamingKit.xcodeproj/project.pbxproj index 5b1c441..bdb68cc 100644 --- a/StreamingKit/StreamingKit.xcodeproj/project.pbxproj +++ b/StreamingKit/StreamingKit.xcodeproj/project.pbxproj @@ -25,8 +25,6 @@ A1A49997189E747000E2A2E2 /* NSMutableArray+STKAudioPlayer.m in Sources */ = {isa = PBXBuildFile; fileRef = A1BF65D4189A65C6004DD08C /* NSMutableArray+STKAudioPlayer.m */; }; A1BF65D2189A6582004DD08C /* STKQueueEntry.m in Sources */ = {isa = PBXBuildFile; fileRef = A1BF65D1189A6582004DD08C /* STKQueueEntry.m */; }; A1BF65D5189A65C6004DD08C /* NSMutableArray+STKAudioPlayer.m in Sources */ = {isa = PBXBuildFile; fileRef = A1BF65D4189A65C6004DD08C /* NSMutableArray+STKAudioPlayer.m */; }; - A1C9767718981BFE0057F881 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1C9767618981BFE0057F881 /* AudioUnit.framework */; }; - A1E7C4CC188D57F50010896F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1E7C4CB188D57F50010896F /* Foundation.framework */; }; A1E7C4DA188D57F60010896F /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1E7C4D9188D57F60010896F /* XCTest.framework */; }; A1E7C4DB188D57F60010896F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1E7C4CB188D57F50010896F /* Foundation.framework */; }; A1E7C4E0188D57F60010896F /* libStreamingKit.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A1E7C4C8188D57F50010896F /* libStreamingKit.a */; }; @@ -39,7 +37,6 @@ A1E7C503188D5E550010896F /* STKDataSourceWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = A1E7C4FA188D5E550010896F /* STKDataSourceWrapper.m */; }; A1E7C504188D5E550010896F /* STKHTTPDataSource.m in Sources */ = {isa = PBXBuildFile; fileRef = A1E7C4FC188D5E550010896F /* STKHTTPDataSource.m */; }; A1E7C505188D5E550010896F /* STKLocalFileDataSource.m in Sources */ = {isa = PBXBuildFile; fileRef = A1E7C4FE188D5E550010896F /* STKLocalFileDataSource.m */; }; - A1E7C508188D62D20010896F /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1E7C507188D62D20010896F /* UIKit.framework */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -50,6 +47,20 @@ remoteGlobalIDString = A1A49968189E744400E2A2E2; remoteInfo = StreamingKitMac; }; + A1A499E6189E769A00E2A2E2 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = A1A499E1189E769A00E2A2E2 /* ExampleAppMac.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = A1A499A1189E765800E2A2E2; + remoteInfo = ExampleAppMac; + }; + A1A499E8189E769A00E2A2E2 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = A1A499E1189E769A00E2A2E2 /* ExampleAppMac.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = A1A499C2189E765800E2A2E2; + remoteInfo = ExampleAppMacTests; + }; A1E7C4DE188D57F60010896F /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = A1E7C4C0188D57F50010896F /* Project object */; @@ -84,6 +95,8 @@ A1A49982189E744500E2A2E2 /* StreamingKitMacTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "StreamingKitMacTests-Info.plist"; sourceTree = ""; }; A1A49984189E744500E2A2E2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; A1A49986189E744500E2A2E2 /* StreamingKitMacTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StreamingKitMacTests.m; sourceTree = ""; }; + A1A499E1189E769A00E2A2E2 /* ExampleAppMac.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ExampleAppMac.xcodeproj; path = ../ExampleAppMac/ExampleAppMac.xcodeproj; sourceTree = ""; }; + A1A499F6189E79EA00E2A2E2 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; A1BF65D0189A6582004DD08C /* STKQueueEntry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = STKQueueEntry.h; sourceTree = ""; }; A1BF65D1189A6582004DD08C /* STKQueueEntry.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = STKQueueEntry.m; sourceTree = ""; }; A1BF65D3189A65C6004DD08C /* NSMutableArray+STKAudioPlayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSMutableArray+STKAudioPlayer.h"; sourceTree = ""; }; @@ -137,9 +150,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - A1C9767718981BFE0057F881 /* AudioUnit.framework in Frameworks */, - A1E7C508188D62D20010896F /* UIKit.framework in Frameworks */, - A1E7C4CC188D57F50010896F /* Foundation.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -202,6 +212,15 @@ name = "Supporting Files"; sourceTree = ""; }; + A1A499E2189E769A00E2A2E2 /* Products */ = { + isa = PBXGroup; + children = ( + A1A499E7189E769A00E2A2E2 /* ExampleAppMac.app */, + A1A499E9189E769A00E2A2E2 /* ExampleAppMacTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; A1E7C4BF188D57F50010896F = { isa = PBXGroup; children = ( @@ -211,6 +230,7 @@ A1A49980189E744500E2A2E2 /* StreamingKitMacTests */, A1E7C4CA188D57F50010896F /* Frameworks */, A1E7C4C9188D57F50010896F /* Products */, + A1A499E1189E769A00E2A2E2 /* ExampleAppMac.xcodeproj */, ); sourceTree = ""; }; @@ -228,6 +248,7 @@ A1E7C4CA188D57F50010896F /* Frameworks */ = { isa = PBXGroup; children = ( + A1A499F6189E79EA00E2A2E2 /* AudioToolbox.framework */, A1C9767618981BFE0057F881 /* AudioUnit.framework */, A1E7C507188D62D20010896F /* UIKit.framework */, A1E7C4CB188D57F50010896F /* Foundation.framework */, @@ -393,6 +414,12 @@ mainGroup = A1E7C4BF188D57F50010896F; productRefGroup = A1E7C4C9188D57F50010896F /* Products */; projectDirPath = ""; + projectReferences = ( + { + ProductGroup = A1A499E2189E769A00E2A2E2 /* Products */; + ProjectRef = A1A499E1189E769A00E2A2E2 /* ExampleAppMac.xcodeproj */; + }, + ); projectRoot = ""; targets = ( A1E7C4C7188D57F50010896F /* StreamingKit */, @@ -403,6 +430,23 @@ }; /* End PBXProject section */ +/* Begin PBXReferenceProxy section */ + A1A499E7189E769A00E2A2E2 /* ExampleAppMac.app */ = { + isa = PBXReferenceProxy; + fileType = wrapper.application; + path = ExampleAppMac.app; + remoteRef = A1A499E6189E769A00E2A2E2 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + A1A499E9189E769A00E2A2E2 /* ExampleAppMacTests.xctest */ = { + isa = PBXReferenceProxy; + fileType = wrapper.cfbundle; + path = ExampleAppMacTests.xctest; + remoteRef = A1A499E8189E769A00E2A2E2 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; +/* End PBXReferenceProxy section */ + /* Begin PBXResourcesBuildPhase section */ A1A49978189E744500E2A2E2 /* Resources */ = { isa = PBXResourcesBuildPhase; diff --git a/StreamingKit/StreamingKit/STKAudioPlayer.m b/StreamingKit/StreamingKit/STKAudioPlayer.m index e72af96..0cbde99 100644 --- a/StreamingKit/StreamingKit/STKAudioPlayer.m +++ b/StreamingKit/StreamingKit/STKAudioPlayer.m @@ -1697,8 +1697,8 @@ static BOOL GetHardwareCodecClassDesc(UInt32 formatId, AudioClassDescription* cl return; } +#if TARGET_OS_IPHONE UInt32 flag = 1; - status = AudioUnitSetProperty(audioUnit, kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Output, kOutputBus, &flag, sizeof(flag)); if (status) @@ -1707,6 +1707,7 @@ static BOOL GetHardwareCodecClassDesc(UInt32 formatId, AudioClassDescription* cl return; } +#endif status = AudioUnitSetProperty(audioUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, kOutputBus, &canonicalAudioStreamBasicDescription, sizeof(canonicalAudioStreamBasicDescription));