From 086644237c0ed96383be68d4772623332d860473 Mon Sep 17 00:00:00 2001 From: Mick Grierson Date: Mon, 31 Oct 2011 17:10:28 +0000 Subject: ofxMaxim Examples updated. Tested on XCode 4 with ofxiPhone 007 and iOS 5 - everything works. --- ofxMaxim/ofxMaximiPhone007Example/Project.xcconfig | 14 + .../ofxMaximiPhone007Example/bin/data/.gitignore | 3 + .../emptyExample.xcodeproj/project.pbxproj | 485 +++++++++++++++++++++ .../project.xcworkspace/contents.xcworkspacedata | 7 + .../UserInterfaceState.xcuserstate | Bin 0 -> 44431 bytes .../xcschemes/emptyExample.xcscheme | 84 ++++ .../xcschemes/xcschememanagement.plist | 22 + .../ofxMaximiPhone007Example/iPhone_Prefix.pch | 8 + .../ofxMaximiPhone007Example/ofxiphone-Info.plist | 36 ++ ofxMaxim/ofxMaximiPhone007Example/src/main.mm | 8 + ofxMaxim/ofxMaximiPhone007Example/src/testApp.h | 43 ++ ofxMaxim/ofxMaximiPhone007Example/src/testApp.mm | 121 +++++ 12 files changed, 831 insertions(+) create mode 100644 ofxMaxim/ofxMaximiPhone007Example/Project.xcconfig create mode 100644 ofxMaxim/ofxMaximiPhone007Example/bin/data/.gitignore create mode 100644 ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/project.pbxproj create mode 100644 ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/project.xcworkspace/xcuserdata/mick.xcuserdatad/UserInterfaceState.xcuserstate create mode 100644 ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/xcuserdata/mick.xcuserdatad/xcschemes/emptyExample.xcscheme create mode 100644 ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/xcuserdata/mick.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 ofxMaxim/ofxMaximiPhone007Example/iPhone_Prefix.pch create mode 100644 ofxMaxim/ofxMaximiPhone007Example/ofxiphone-Info.plist create mode 100644 ofxMaxim/ofxMaximiPhone007Example/src/main.mm create mode 100755 ofxMaxim/ofxMaximiPhone007Example/src/testApp.h create mode 100755 ofxMaxim/ofxMaximiPhone007Example/src/testApp.mm (limited to 'ofxMaxim/ofxMaximiPhone007Example') diff --git a/ofxMaxim/ofxMaximiPhone007Example/Project.xcconfig b/ofxMaxim/ofxMaximiPhone007Example/Project.xcconfig new file mode 100644 index 0000000..1a590ae --- /dev/null +++ b/ofxMaxim/ofxMaximiPhone007Example/Project.xcconfig @@ -0,0 +1,14 @@ +//THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT. +//THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED +OF_PATH = ../../.. + +//THIS HAS ALL THE HEADER AND LIBS FOR OF CORE +#include "../../../libs/openFrameworksCompiled/project/iphone/CoreOF.xcconfig" + +OTHER_LDFLAGS = $(OF_CORE_LIBS) +HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) + +COMPRESS_PNG_FILES = NO +GCC_THUMB_SUPPORT = NO +IPHONEOS_DEPLOYMENT_TARGET = 3.1 +TARGETED_DEVICE_FAMILY = 1 diff --git a/ofxMaxim/ofxMaximiPhone007Example/bin/data/.gitignore b/ofxMaxim/ofxMaximiPhone007Example/bin/data/.gitignore new file mode 100644 index 0000000..0a9e2b1 --- /dev/null +++ b/ofxMaxim/ofxMaximiPhone007Example/bin/data/.gitignore @@ -0,0 +1,3 @@ +# Ignore everything in here apart from the .gitignore file +* +!.gitignore \ No newline at end of file diff --git a/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/project.pbxproj b/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/project.pbxproj new file mode 100644 index 0000000..768ee46 --- /dev/null +++ b/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/project.pbxproj @@ -0,0 +1,485 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 45; + objects = { + +/* Begin PBXBuildFile section */ + 00ABBDC7145F0B3900ED7823 /* install.xml in Resources */ = {isa = PBXBuildFile; fileRef = 00ABBDB9145F0B3900ED7823 /* install.xml */; }; + 00ABBDC8145F0B3900ED7823 /* fft.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00ABBDBB145F0B3900ED7823 /* fft.cpp */; }; + 00ABBDC9145F0B3900ED7823 /* maxiFFT.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00ABBDBD145F0B3900ED7823 /* maxiFFT.cpp */; }; + 00ABBDCA145F0B3900ED7823 /* maxiGrains.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00ABBDBF145F0B3900ED7823 /* maxiGrains.cpp */; }; + 00ABBDCB145F0B3900ED7823 /* maxiMFCC.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00ABBDC1145F0B3900ED7823 /* maxiMFCC.cpp */; }; + 00ABBDCC145F0B3900ED7823 /* maximilian.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00ABBDC3145F0B3900ED7823 /* maximilian.cpp */; }; + 00ABBE0D145F0C7100ED7823 /* Accelerate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00ABBE0C145F0C7100ED7823 /* Accelerate.framework */; }; + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; + 288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765FC0DF74451002DB57D /* CoreGraphics.framework */; }; + 5326AEA810A23A0500278DE6 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5326AEA710A23A0500278DE6 /* CoreLocation.framework */; }; + 53F323EB10A20EDB00E0DAE4 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53F323EA10A20EDB00E0DAE4 /* OpenAL.framework */; }; + BB16EBD20F2B2A9500518274 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BB16EBD10F2B2A9500518274 /* OpenGLES.framework */; }; + BB16EBD90F2B2AB500518274 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BB16EBD80F2B2AB500518274 /* QuartzCore.framework */; }; + BB24DD8F10DA77E000E9C588 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = BB24DD8C10DA77E000E9C588 /* Default.png */; }; + BB24DD9010DA77E000E9C588 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = BB24DD8D10DA77E000E9C588 /* Icon.png */; }; + BB24DDCA10DA781C00E9C588 /* ofxiphone-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB24DDC910DA781C00E9C588 /* ofxiphone-Info.plist */; }; + BBE5EAB80F49AD8400F28951 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBE5EAB70F49AD8400F28951 /* AudioToolbox.framework */; }; + E41D3ED713B38FB500A75A5D /* Project.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = E41D3ED613B38FB500A75A5D /* Project.xcconfig */; }; + E41D3EE613B3906D00A75A5D /* CoreOF.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = E41D3EE513B3906D00A75A5D /* CoreOF.xcconfig */; }; + E41D400B13B39D2100A75A5D /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E41D400613B39D2100A75A5D /* AVFoundation.framework */; }; + E41D400C13B39D2100A75A5D /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E41D400713B39D2100A75A5D /* CoreMedia.framework */; }; + E41D400D13B39D2100A75A5D /* CoreVideo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E41D400813B39D2100A75A5D /* CoreVideo.framework */; }; + E41D400E13B39D2100A75A5D /* MapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E41D400913B39D2100A75A5D /* MapKit.framework */; }; + E41D421413B3A95300A75A5D /* libofxiPhone_iphoneos_Debug.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E41D410213B3A0D800A75A5D /* libofxiPhone_iphoneos_Debug.a */; }; + E4A823A412561BE3002F86A2 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4A823A312561BE3002F86A2 /* CoreGraphics.framework */; }; + E4D8936E11527B74007E1F53 /* main.mm in Sources */ = {isa = PBXBuildFile; fileRef = E4D8936B11527B74007E1F53 /* main.mm */; }; + E4D8936F11527B74007E1F53 /* testApp.mm in Sources */ = {isa = PBXBuildFile; fileRef = E4D8936D11527B74007E1F53 /* testApp.mm */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + E41D410113B3A0D800A75A5D /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = E41D40FD13B3A0D800A75A5D /* iPhone+OF Lib.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = BB24DED610DA7A3F00E9C588; + remoteInfo = "iPhone+OF Static Library"; + }; + E41D410313B3A11300A75A5D /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = E41D40FD13B3A0D800A75A5D /* iPhone+OF Lib.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = BB24DE5C10DA7A3F00E9C588; + remoteInfo = "iPhone+OF Static Library"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 00ABBDB9145F0B3900ED7823 /* install.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = install.xml; sourceTree = ""; }; + 00ABBDBB145F0B3900ED7823 /* fft.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = fft.cpp; sourceTree = ""; }; + 00ABBDBC145F0B3900ED7823 /* fft.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fft.h; sourceTree = ""; }; + 00ABBDBD145F0B3900ED7823 /* maxiFFT.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = maxiFFT.cpp; sourceTree = ""; }; + 00ABBDBE145F0B3900ED7823 /* maxiFFT.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = maxiFFT.h; sourceTree = ""; }; + 00ABBDBF145F0B3900ED7823 /* maxiGrains.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = maxiGrains.cpp; sourceTree = ""; }; + 00ABBDC0145F0B3900ED7823 /* maxiGrains.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = maxiGrains.h; sourceTree = ""; }; + 00ABBDC1145F0B3900ED7823 /* maxiMFCC.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = maxiMFCC.cpp; sourceTree = ""; }; + 00ABBDC2145F0B3900ED7823 /* maxiMFCC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = maxiMFCC.h; sourceTree = ""; }; + 00ABBDC3145F0B3900ED7823 /* maximilian.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = maximilian.cpp; sourceTree = ""; }; + 00ABBDC4145F0B3900ED7823 /* maximilian.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = maximilian.h; sourceTree = ""; }; + 00ABBDC6145F0B3900ED7823 /* ofxMaxim.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ofxMaxim.h; sourceTree = ""; }; + 00ABBE0C145F0C7100ED7823 /* Accelerate.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Accelerate.framework; path = System/Library/Frameworks/Accelerate.framework; sourceTree = SDKROOT; }; + 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 1D6058910D05DD3D006BFB54 /* emptyExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = emptyExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 288765FC0DF74451002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 32CA4F630368D1EE00C91783 /* iPhone_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iPhone_Prefix.pch; sourceTree = ""; }; + 5326AEA710A23A0500278DE6 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; }; + 53F323EA10A20EDB00E0DAE4 /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = System/Library/Frameworks/OpenAL.framework; sourceTree = SDKROOT; }; + BB16EBD10F2B2A9500518274 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; }; + BB16EBD80F2B2AB500518274 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; + BB24DD8C10DA77E000E9C588 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; + BB24DD8D10DA77E000E9C588 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = ""; }; + BB24DDC910DA781C00E9C588 /* ofxiphone-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "ofxiphone-Info.plist"; sourceTree = ""; }; + BBE5EAB70F49AD8400F28951 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; + E41D3ED613B38FB500A75A5D /* Project.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Project.xcconfig; sourceTree = ""; }; + E41D3EE513B3906D00A75A5D /* CoreOF.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = CoreOF.xcconfig; path = ../../../libs/openFrameworksCompiled/project/iphone/CoreOF.xcconfig; sourceTree = SOURCE_ROOT; }; + E41D400613B39D2100A75A5D /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; + E41D400713B39D2100A75A5D /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; }; + E41D400813B39D2100A75A5D /* CoreVideo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreVideo.framework; path = System/Library/Frameworks/CoreVideo.framework; sourceTree = SDKROOT; }; + E41D400913B39D2100A75A5D /* MapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MapKit.framework; path = System/Library/Frameworks/MapKit.framework; sourceTree = SDKROOT; }; + E41D40FD13B3A0D800A75A5D /* iPhone+OF Lib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "iPhone+OF Lib.xcodeproj"; path = "../../../libs/openFrameworksCompiled/project/iphone/iPhone+OF Lib.xcodeproj"; sourceTree = SOURCE_ROOT; }; + E4A823A312561BE3002F86A2 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + E4D8936B11527B74007E1F53 /* main.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = main.mm; path = src/main.mm; sourceTree = SOURCE_ROOT; }; + E4D8936C11527B74007E1F53 /* testApp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = testApp.h; path = src/testApp.h; sourceTree = SOURCE_ROOT; }; + E4D8936D11527B74007E1F53 /* testApp.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = testApp.mm; path = src/testApp.mm; sourceTree = SOURCE_ROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 1D60588F0D05DD3D006BFB54 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + E41D421413B3A95300A75A5D /* libofxiPhone_iphoneos_Debug.a in Frameworks */, + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */, + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */, + 288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */, + BB16EBD20F2B2A9500518274 /* OpenGLES.framework in Frameworks */, + BB16EBD90F2B2AB500518274 /* QuartzCore.framework in Frameworks */, + BBE5EAB80F49AD8400F28951 /* AudioToolbox.framework in Frameworks */, + 53F323EB10A20EDB00E0DAE4 /* OpenAL.framework in Frameworks */, + 5326AEA810A23A0500278DE6 /* CoreLocation.framework in Frameworks */, + E4A823A412561BE3002F86A2 /* CoreGraphics.framework in Frameworks */, + E41D400B13B39D2100A75A5D /* AVFoundation.framework in Frameworks */, + E41D400C13B39D2100A75A5D /* CoreMedia.framework in Frameworks */, + E41D400D13B39D2100A75A5D /* CoreVideo.framework in Frameworks */, + E41D400E13B39D2100A75A5D /* MapKit.framework in Frameworks */, + 00ABBE0D145F0C7100ED7823 /* Accelerate.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 00ABBDB8145F0B3900ED7823 /* ofxMaxim */ = { + isa = PBXGroup; + children = ( + 00ABBDB9145F0B3900ED7823 /* install.xml */, + 00ABBDBA145F0B3900ED7823 /* libs */, + 00ABBDC5145F0B3900ED7823 /* src */, + ); + name = ofxMaxim; + path = ../../../addons/ofxMaxim; + sourceTree = SOURCE_ROOT; + }; + 00ABBDBA145F0B3900ED7823 /* libs */ = { + isa = PBXGroup; + children = ( + 00ABBDBB145F0B3900ED7823 /* fft.cpp */, + 00ABBDBC145F0B3900ED7823 /* fft.h */, + 00ABBDBD145F0B3900ED7823 /* maxiFFT.cpp */, + 00ABBDBE145F0B3900ED7823 /* maxiFFT.h */, + 00ABBDBF145F0B3900ED7823 /* maxiGrains.cpp */, + 00ABBDC0145F0B3900ED7823 /* maxiGrains.h */, + 00ABBDC1145F0B3900ED7823 /* maxiMFCC.cpp */, + 00ABBDC2145F0B3900ED7823 /* maxiMFCC.h */, + 00ABBDC3145F0B3900ED7823 /* maximilian.cpp */, + 00ABBDC4145F0B3900ED7823 /* maximilian.h */, + ); + path = libs; + sourceTree = ""; + }; + 00ABBDC5145F0B3900ED7823 /* src */ = { + isa = PBXGroup; + children = ( + 00ABBDC6145F0B3900ED7823 /* ofxMaxim.h */, + ); + path = src; + sourceTree = ""; + }; + 19C28FACFE9D520D11CA2CBB /* Products */ = { + isa = PBXGroup; + children = ( + 1D6058910D05DD3D006BFB54 /* emptyExample.app */, + ); + name = Products; + sourceTree = ""; + }; + 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { + isa = PBXGroup; + children = ( + E4D8936A11527B74007E1F53 /* src */, + BB24DD8B10DA77E000E9C588 /* data */, + BB24E1F710DAA51900E9C588 /* openFrameworks */, + BB16F26B0F2B646B00518274 /* addons */, + BB16E9930F2B1E5900518274 /* libs */, + 19C28FACFE9D520D11CA2CBB /* Products */, + ); + name = CustomTemplate; + sourceTree = ""; + }; + 29B97323FDCFA39411CA2CEA /* core frameworks */ = { + isa = PBXGroup; + children = ( + E41D400613B39D2100A75A5D /* AVFoundation.framework */, + E41D400713B39D2100A75A5D /* CoreMedia.framework */, + E41D400813B39D2100A75A5D /* CoreVideo.framework */, + E41D400913B39D2100A75A5D /* MapKit.framework */, + 53F323EA10A20EDB00E0DAE4 /* OpenAL.framework */, + E4A823A312561BE3002F86A2 /* CoreGraphics.framework */, + BBE5EAB70F49AD8400F28951 /* AudioToolbox.framework */, + BB16EBD80F2B2AB500518274 /* QuartzCore.framework */, + BB16EBD10F2B2A9500518274 /* OpenGLES.framework */, + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */, + 1D30AB110D05D00D00671497 /* Foundation.framework */, + 288765FC0DF74451002DB57D /* CoreGraphics.framework */, + 5326AEA710A23A0500278DE6 /* CoreLocation.framework */, + ); + name = "core frameworks"; + sourceTree = ""; + }; + BB16E9930F2B1E5900518274 /* libs */ = { + isa = PBXGroup; + children = ( + BBE5E94E0F497BD800F28951 /* core */, + 00ABBE0C145F0C7100ED7823 /* Accelerate.framework */, + ); + name = libs; + sourceTree = ""; + }; + BB16F26B0F2B646B00518274 /* addons */ = { + isa = PBXGroup; + children = ( + 00ABBDB8145F0B3900ED7823 /* ofxMaxim */, + ); + name = addons; + sourceTree = ""; + }; + BB24DD8B10DA77E000E9C588 /* data */ = { + isa = PBXGroup; + children = ( + BB24DD8C10DA77E000E9C588 /* Default.png */, + BB24DD8D10DA77E000E9C588 /* Icon.png */, + ); + name = data; + path = bin/data; + sourceTree = ""; + }; + BB24E1F710DAA51900E9C588 /* openFrameworks */ = { + isa = PBXGroup; + children = ( + E41D40FD13B3A0D800A75A5D /* iPhone+OF Lib.xcodeproj */, + 32CA4F630368D1EE00C91783 /* iPhone_Prefix.pch */, + BB24DDC910DA781C00E9C588 /* ofxiphone-Info.plist */, + E41D3EE513B3906D00A75A5D /* CoreOF.xcconfig */, + E41D3ED613B38FB500A75A5D /* Project.xcconfig */, + ); + name = openFrameworks; + sourceTree = ""; + }; + BBE5E94E0F497BD800F28951 /* core */ = { + isa = PBXGroup; + children = ( + 29B97323FDCFA39411CA2CEA /* core frameworks */, + ); + name = core; + sourceTree = ""; + }; + E41D40FE13B3A0D800A75A5D /* Products */ = { + isa = PBXGroup; + children = ( + E41D410213B3A0D800A75A5D /* libofxiPhone_iphoneos_Debug.a */, + ); + name = Products; + sourceTree = ""; + }; + E4D8936A11527B74007E1F53 /* src */ = { + isa = PBXGroup; + children = ( + E4D8936B11527B74007E1F53 /* main.mm */, + E4D8936D11527B74007E1F53 /* testApp.mm */, + E4D8936C11527B74007E1F53 /* testApp.h */, + ); + path = src; + sourceTree = SOURCE_ROOT; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 1D6058900D05DD3D006BFB54 /* emptyExample */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "emptyExample" */; + buildPhases = ( + 1D60588D0D05DD3D006BFB54 /* Resources */, + 1D60588E0D05DD3D006BFB54 /* Sources */, + 1D60588F0D05DD3D006BFB54 /* Frameworks */, + 9255DD331112741900D6945E /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + E41D410413B3A11300A75A5D /* PBXTargetDependency */, + ); + name = emptyExample; + productName = iPhone; + productReference = 1D6058910D05DD3D006BFB54 /* emptyExample.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 29B97313FDCFA39411CA2CEA /* Project object */ = { + isa = PBXProject; + buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "emptyExample" */; + compatibilityVersion = "Xcode 3.1"; + developmentRegion = English; + hasScannedForEncodings = 1; + knownRegions = ( + English, + Japanese, + French, + German, + ); + mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */; + projectDirPath = ""; + projectReferences = ( + { + ProductGroup = E41D40FE13B3A0D800A75A5D /* Products */; + ProjectRef = E41D40FD13B3A0D800A75A5D /* iPhone+OF Lib.xcodeproj */; + }, + ); + projectRoot = ""; + targets = ( + 1D6058900D05DD3D006BFB54 /* emptyExample */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXReferenceProxy section */ + E41D410213B3A0D800A75A5D /* libofxiPhone_iphoneos_Debug.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libofxiPhone_iphoneos_Debug.a; + remoteRef = E41D410113B3A0D800A75A5D /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; +/* End PBXReferenceProxy section */ + +/* Begin PBXResourcesBuildPhase section */ + 1D60588D0D05DD3D006BFB54 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BB24DD8F10DA77E000E9C588 /* Default.png in Resources */, + BB24DD9010DA77E000E9C588 /* Icon.png in Resources */, + BB24DDCA10DA781C00E9C588 /* ofxiphone-Info.plist in Resources */, + E41D3ED713B38FB500A75A5D /* Project.xcconfig in Resources */, + E41D3EE613B3906D00A75A5D /* CoreOF.xcconfig in Resources */, + 00ABBDC7145F0B3900ED7823 /* install.xml in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 9255DD331112741900D6945E /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "cp -rf bin/data/ \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app\""; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 1D60588E0D05DD3D006BFB54 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + E4D8936E11527B74007E1F53 /* main.mm in Sources */, + E4D8936F11527B74007E1F53 /* testApp.mm in Sources */, + 00ABBDC8145F0B3900ED7823 /* fft.cpp in Sources */, + 00ABBDC9145F0B3900ED7823 /* maxiFFT.cpp in Sources */, + 00ABBDCA145F0B3900ED7823 /* maxiGrains.cpp in Sources */, + 00ABBDCB145F0B3900ED7823 /* maxiMFCC.cpp in Sources */, + 00ABBDCC145F0B3900ED7823 /* maximilian.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + E41D410413B3A11300A75A5D /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "iPhone+OF Static Library"; + targetProxy = E41D410313B3A11300A75A5D /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 1D6058940D05DD3E006BFB54 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = iPhone_Prefix.pch; + INFOPLIST_FILE = "ofxiphone-Info.plist"; + PRODUCT_NAME = "${TARGET_NAME}"; + }; + name = Debug; + }; + 1D6058950D05DD3E006BFB54 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = iPhone_Prefix.pch; + INFOPLIST_FILE = "ofxiphone-Info.plist"; + PRODUCT_NAME = "${TARGET_NAME}"; + }; + name = Release; + }; + C01FCF4F08A954540054247B /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = E41D3ED613B38FB500A75A5D /* Project.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = YES; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COMPRESS_PNG_FILES = NO; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO; + GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = NO; + GCC_WARN_ABOUT_POINTER_SIGNEDNESS = NO; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = NO; + GCC_WARN_PROTOTYPE_CONVERSION = NO; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 3.1; + ONLY_ACTIVE_ARCH = NO; + PREBINDING = NO; + "PROVISIONING_PROFILE[sdk=iphoneos*]" = ""; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = 1; + WARNING_LDFLAGS = "-no_arch_warnings"; + }; + name = Debug; + }; + C01FCF5008A954540054247B /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = E41D3ED613B38FB500A75A5D /* Project.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = YES; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COMPRESS_PNG_FILES = NO; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_DYNAMIC_NO_PIC = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_OPTIMIZATION_LEVEL = 3; + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_THUMB_SUPPORT = NO; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 3.1; + ONLY_ACTIVE_ARCH = NO; + PREBINDING = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = 1; + WARNING_LDFLAGS = "-no_arch_warnings"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "emptyExample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D6058940D05DD3E006BFB54 /* Debug */, + 1D6058950D05DD3E006BFB54 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C01FCF4E08A954540054247B /* Build configuration list for PBXProject "emptyExample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C01FCF4F08A954540054247B /* Debug */, + C01FCF5008A954540054247B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; +} diff --git a/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..da00dc2 --- /dev/null +++ b/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/project.xcworkspace/xcuserdata/mick.xcuserdatad/UserInterfaceState.xcuserstate b/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/project.xcworkspace/xcuserdata/mick.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..3ba6442 Binary files /dev/null and b/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/project.xcworkspace/xcuserdata/mick.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/xcuserdata/mick.xcuserdatad/xcschemes/emptyExample.xcscheme b/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/xcuserdata/mick.xcuserdatad/xcschemes/emptyExample.xcscheme new file mode 100644 index 0000000..43b68b3 --- /dev/null +++ b/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/xcuserdata/mick.xcuserdatad/xcschemes/emptyExample.xcscheme @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/xcuserdata/mick.xcuserdatad/xcschemes/xcschememanagement.plist b/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/xcuserdata/mick.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..0ba941f --- /dev/null +++ b/ofxMaxim/ofxMaximiPhone007Example/emptyExample.xcodeproj/xcuserdata/mick.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,22 @@ + + + + + SchemeUserState + + emptyExample.xcscheme + + orderHint + 1 + + + SuppressBuildableAutocreation + + 1D6058900D05DD3D006BFB54 + + primary + + + + + diff --git a/ofxMaxim/ofxMaximiPhone007Example/iPhone_Prefix.pch b/ofxMaxim/ofxMaximiPhone007Example/iPhone_Prefix.pch new file mode 100644 index 0000000..fd3401c --- /dev/null +++ b/ofxMaxim/ofxMaximiPhone007Example/iPhone_Prefix.pch @@ -0,0 +1,8 @@ +// +// Prefix header for all source files of the 'iPhone' target in the 'iPhone' project +// + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/ofxMaxim/ofxMaximiPhone007Example/ofxiphone-Info.plist b/ofxMaxim/ofxMaximiPhone007Example/ofxiphone-Info.plist new file mode 100644 index 0000000..43db2fa --- /dev/null +++ b/ofxMaxim/ofxMaximiPhone007Example/ofxiphone-Info.plist @@ -0,0 +1,36 @@ + + + + + CFBundleVersion + 1.0 + CFBundleShortVersionString + 1.0 + CFBundleIdentifier + ${PRODUCT_NAME:identifier} + UIStatusBarHidden + + CFBundleDevelopmentRegion + English + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleSignature + ???? + LSRequiresIPhoneOS + + UIApplicationExitsOnSuspend + + UIInterfaceOrientation + UIInterfaceOrientationPortrait + + diff --git a/ofxMaxim/ofxMaximiPhone007Example/src/main.mm b/ofxMaxim/ofxMaximiPhone007Example/src/main.mm new file mode 100644 index 0000000..a0b6b4c --- /dev/null +++ b/ofxMaxim/ofxMaximiPhone007Example/src/main.mm @@ -0,0 +1,8 @@ +#include "ofMain.h" +#include "testApp.h" + +int main(){ + ofSetupOpenGL(1024,768, OF_FULLSCREEN); // <-------- setup the GL context + + ofRunApp(new testApp); +} diff --git a/ofxMaxim/ofxMaximiPhone007Example/src/testApp.h b/ofxMaxim/ofxMaximiPhone007Example/src/testApp.h new file mode 100755 index 0000000..0bf924f --- /dev/null +++ b/ofxMaxim/ofxMaximiPhone007Example/src/testApp.h @@ -0,0 +1,43 @@ +#pragma once + +#include "ofMain.h" +#include "ofxiPhone.h" +#include "ofxiPhoneExtras.h" +#include "ofxMaxim.h" + + +class testApp : public ofxiPhoneApp { + +public: + ~testApp(); + void setup(); + void update(); + void draw(); + void exit(); + + void touchDown(ofTouchEventArgs &touch); + void touchMoved(ofTouchEventArgs &touch); + void touchUp(ofTouchEventArgs &touch); + void touchDoubleTap(ofTouchEventArgs &touch); + void touchCancelled(ofTouchEventArgs &touch); + + void lostFocus(); + void gotFocus(); + void gotMemoryWarning(); + void deviceOrientationChanged(int newOrientation); + + void audioReceived( float * input, int bufferSize, int nChannels ); + void audioRequested( float * output, int bufferSize, int nChannels ); + + int initialBufferSize; + int sampleRate; + + + ofxMaxiOsc myOsc1; + ofxMaxiSample sample1; + double patch1,sample,outputs1[2]; + ofxMaxiMix channel1; + +}; + + diff --git a/ofxMaxim/ofxMaximiPhone007Example/src/testApp.mm b/ofxMaxim/ofxMaximiPhone007Example/src/testApp.mm new file mode 100755 index 0000000..ad2a865 --- /dev/null +++ b/ofxMaxim/ofxMaximiPhone007Example/src/testApp.mm @@ -0,0 +1,121 @@ +#include "testApp.h" +#include "ofxMaxim.h" + +testApp::~testApp() { + + delete sample1.myData; + +} + + +//-------------------------------------------------------------- +void testApp::setup(){ + ofEnableAlphaBlending(); + // register touch events + ofRegisterTouchEvents(this); + + // initialize the accelerometer + ofxAccelerometer.setup(); + + //iPhoneAlerts will be sent to this. + ofxiPhoneAlerts.addListener(this); + + sampleRate = 44100; + initialBufferSize = 512; + + sample1.load(ofToDataPath("beat2.wav")); + + ofSoundStreamSetup(2,0,this, sampleRate, initialBufferSize, 4); + + //If you want a landscape oreintation + //iPhoneSetOrientation(OFXIPHONE_ORIENTATION_LANDSCAPE_RIGHT); + + ofBackground(255,255,255); +} + +//-------------------------------------------------------------- +void testApp::update(){ + +} + +//-------------------------------------------------------------- +void testApp::draw(){ + +} + +//-------------------------------------------------------------- +void testApp::exit(){ + +} + + +//-------------------------------------------------------------- +void testApp::audioRequested(float * output, int bufferSize, int nChannels){ + + if( initialBufferSize != bufferSize ){ + ofLog(OF_LOG_ERROR, "your buffer size was set to %i - but the stream needs a buffer size of %i", initialBufferSize, bufferSize); + return; + } + + for (int i = 0; i < bufferSize; i++){ + + sample=sample1.play(1.); + channel1.stereo(sample,outputs1,0.5); + + output[i*nChannels ] = outputs1[0]; + output[i*nChannels + 1] = outputs1[1]; + + } + +} + +//-------------------------------------------------------------- +void testApp::audioReceived(float * input, int bufferSize, int nChannels){ + +} + +//-------------------------------------------------------------- +void testApp::touchDown(ofTouchEventArgs &touch){ + +} + +//-------------------------------------------------------------- +void testApp::touchMoved(ofTouchEventArgs &touch){ + +} + +//-------------------------------------------------------------- +void testApp::touchUp(ofTouchEventArgs &touch){ + +} + +//-------------------------------------------------------------- +void testApp::touchDoubleTap(ofTouchEventArgs &touch){ + +} + +//-------------------------------------------------------------- +void testApp::lostFocus(){ + +} + +//-------------------------------------------------------------- +void testApp::gotFocus(){ + +} + +//-------------------------------------------------------------- +void testApp::gotMemoryWarning(){ + +} + +//-------------------------------------------------------------- +void testApp::deviceOrientationChanged(int newOrientation){ + +} + +//-------------------------------------------------------------- +void testApp::touchCancelled(ofTouchEventArgs& args){ + +} + -- cgit v1.3