From d779fa97591b095674edc5f7576aeec7cf6b3f17 Mon Sep 17 00:00:00 2001 From: Julian Storer Date: Fri, 13 Nov 2009 16:17:22 +0000 Subject: [PATCH] The first working check-in of an iPhone build! Added an iPhone project for the normal juce demo, which runs.. although it isn't exactly designed for a hand-held form factor! Also in this check-in is support for creation of custom Mac MIDI input and output devices, and an option to load URLs with the QuickTimeComponent --- build/macosx/Juce.xcodeproj/project.pbxproj | 16 +- .../build/iphone/JuceDemo-Info.plist | 28 + .../iphone/JuceDemo.xcodeproj/project.pbxproj | 388 +++ .../src/demos/AudioDemoRecordPage.cpp | 12 +- .../juce demo/src/demos/AudioDemoRecordPage.h | 8 +- juce_amalgamated.cpp | 2169 +++++++++++++---- juce_amalgamated.h | 202 +- src/audio/devices/juce_AudioDeviceManager.cpp | 5 + src/audio/devices/juce_MidiInput.h | 4 +- src/audio/devices/juce_MidiOutput.h | 4 +- .../formats/juce_AudioUnitPluginFormat.mm | 4 - src/core/juce_Atomic.h | 8 - src/core/juce_MathsFunctions.h | 13 +- src/core/juce_StandardHeader.h | 6 +- src/core/juce_TargetPlatform.h | 11 +- src/gui/components/controls/juce_ListBox.cpp | 2 +- .../components/controls/juce_TextEditor.cpp | 2 +- src/gui/components/juce_Component.cpp | 18 +- .../lookandfeel/juce_LookAndFeel.cpp | 13 +- src/gui/components/menus/juce_PopupMenu.cpp | 4 +- .../mouse/juce_DragAndDropContainer.cpp | 2 +- .../components/special/juce_DropShadower.cpp | 2 +- .../special/juce_QuickTimeMovieComponent.h | 29 +- src/gui/graphics/colour/juce_Colour.cpp | 10 + src/gui/graphics/colour/juce_Colour.h | 7 + .../graphics/colour/juce_ColourGradient.cpp | 11 +- src/gui/graphics/contexts/juce_EdgeTable.cpp | 304 ++- src/gui/graphics/contexts/juce_EdgeTable.h | 86 +- .../juce_LowLevelGraphicsSoftwareRenderer.cpp | 39 +- .../juce_LowLevelGraphicsSoftwareRenderer.h | 3 + .../geometry/juce_AffineTransform.cpp | 12 +- .../graphics/geometry/juce_AffineTransform.h | 3 + src/gui/graphics/geometry/juce_Path.cpp | 8 +- src/gui/graphics/geometry/juce_Rectangle.cpp | 10 + src/gui/graphics/geometry/juce_Rectangle.h | 6 + .../image_file_formats/juce_GIFLoader.cpp | 4 +- .../image_file_formats/juce_JPEGLoader.cpp | 2 +- .../image_file_formats/juce_PNGLoader.cpp | 4 +- src/gui/graphics/imaging/juce_Image.cpp | 4 +- src/gui/graphics/imaging/juce_Image.h | 13 + src/native/juce_mac_NativeCode.mm | 1 + src/native/linux/juce_linux_Windowing.cpp | 5 + src/native/mac/juce_iphone_Audio.cpp | 6 +- src/native/mac/juce_iphone_MessageManager.mm | 6 +- src/native/mac/juce_iphone_MiscUtilities.mm | 16 - .../mac/juce_iphone_UIViewComponentPeer.mm | 236 +- src/native/mac/juce_mac_CoreAudio.cpp | 10 +- .../mac/juce_mac_CoreGraphicsContext.mm | 131 +- src/native/mac/juce_mac_CoreMidi.cpp | 192 +- src/native/mac/juce_mac_Fonts.mm | 84 +- src/native/mac/juce_mac_MiscUtilities.mm | 10 +- .../mac/juce_mac_QuickTimeMovieComponent.mm | 44 +- src/native/mac/juce_mac_SystemStats.mm | 2 +- .../juce_win32_QuickTimeMovieComponent.cpp | 6 + src/native/windows/juce_win32_Windowing.cpp | 6 + src/text/juce_CharacterFunctions.cpp | 9 +- 56 files changed, 3074 insertions(+), 1166 deletions(-) create mode 100644 extras/juce demo/build/iphone/JuceDemo-Info.plist create mode 100644 extras/juce demo/build/iphone/JuceDemo.xcodeproj/project.pbxproj diff --git a/build/macosx/Juce.xcodeproj/project.pbxproj b/build/macosx/Juce.xcodeproj/project.pbxproj index 7458987b73..5a637c23e5 100644 --- a/build/macosx/Juce.xcodeproj/project.pbxproj +++ b/build/macosx/Juce.xcodeproj/project.pbxproj @@ -7,6 +7,13 @@ objects = { /* Begin PBXBuildFile section */ + 840F1DA110AD674C002A03A6 /* juce_CodeDocument.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84AB91F510A078190048FC39 /* juce_CodeDocument.cpp */; }; + 840F1DA210AD674D002A03A6 /* juce_CodeDocument.h in Headers */ = {isa = PBXBuildFile; fileRef = 84AB91F610A078190048FC39 /* juce_CodeDocument.h */; }; + 840F1DA310AD674D002A03A6 /* juce_CodeEditorComponent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84AB91F710A078190048FC39 /* juce_CodeEditorComponent.cpp */; }; + 840F1DA410AD674E002A03A6 /* juce_CodeEditorComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 84AB91F810A078190048FC39 /* juce_CodeEditorComponent.h */; }; + 840F1DA510AD674F002A03A6 /* juce_CodeTokeniser.h in Headers */ = {isa = PBXBuildFile; fileRef = 84AB927110A082E30048FC39 /* juce_CodeTokeniser.h */; }; + 840F1DA610AD674F002A03A6 /* juce_CPlusPlusCodeTokeniser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84AB91F910A078190048FC39 /* juce_CPlusPlusCodeTokeniser.cpp */; }; + 840F1DA710AD6750002A03A6 /* juce_CPlusPlusCodeTokeniser.h in Headers */ = {isa = PBXBuildFile; fileRef = 84AB91FA10A078190048FC39 /* juce_CPlusPlusCodeTokeniser.h */; }; 840F80BC092B399D005E7B4E /* juce.h in Headers */ = {isa = PBXBuildFile; fileRef = 840F80BB092B399D005E7B4E /* juce.h */; }; 84816E5710809D07008FEC33 /* juce_iphone_Audio.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84816E5110809D07008FEC33 /* juce_iphone_Audio.cpp */; }; 84816E5910809D07008FEC33 /* juce_iphone_MessageManager.mm in Sources */ = {isa = PBXBuildFile; fileRef = 84816E5310809D07008FEC33 /* juce_iphone_MessageManager.mm */; }; @@ -3217,6 +3224,10 @@ 84816F9510809DCB008FEC33 /* juce_XmlDocument.h in Headers */, 84816F9610809DCB008FEC33 /* juce_XmlElement.h in Headers */, 84816F9710809DCB008FEC33 /* juce_ZipFile.h in Headers */, + 840F1DA210AD674D002A03A6 /* juce_CodeDocument.h in Headers */, + 840F1DA410AD674E002A03A6 /* juce_CodeEditorComponent.h in Headers */, + 840F1DA510AD674F002A03A6 /* juce_CodeTokeniser.h in Headers */, + 840F1DA710AD6750002A03A6 /* juce_CPlusPlusCodeTokeniser.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -3888,6 +3899,9 @@ 848170B010809E00008FEC33 /* juce_XmlDocument.cpp in Sources */, 848170B110809E00008FEC33 /* juce_XmlElement.cpp in Sources */, 848170B210809E00008FEC33 /* juce_ZipFile.cpp in Sources */, + 840F1DA110AD674C002A03A6 /* juce_CodeDocument.cpp in Sources */, + 840F1DA310AD674D002A03A6 /* juce_CodeEditorComponent.cpp in Sources */, + 840F1DA610AD674F002A03A6 /* juce_CPlusPlusCodeTokeniser.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -4219,7 +4233,7 @@ GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES; GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; MACOSX_DEPLOYMENT_TARGET = 10.4; - MACOSX_DEPLOYMENT_TARGET_ppc = 10.3; + MACOSX_DEPLOYMENT_TARGET_ppc = 10.4; }; name = Debug; }; diff --git a/extras/juce demo/build/iphone/JuceDemo-Info.plist b/extras/juce demo/build/iphone/JuceDemo-Info.plist new file mode 100644 index 0000000000..c6390a2a1b --- /dev/null +++ b/extras/juce demo/build/iphone/JuceDemo-Info.plist @@ -0,0 +1,28 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + + CFBundleIdentifier + com.synchromation.rawmaterial + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + + diff --git a/extras/juce demo/build/iphone/JuceDemo.xcodeproj/project.pbxproj b/extras/juce demo/build/iphone/JuceDemo.xcodeproj/project.pbxproj new file mode 100644 index 0000000000..4a50b0a51a --- /dev/null +++ b/extras/juce demo/build/iphone/JuceDemo.xcodeproj/project.pbxproj @@ -0,0 +1,388 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 45; + objects = { + +/* Begin PBXBuildFile section */ + 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 */; }; + 840F1D8510AD66DE002A03A6 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 840F1D8410AD66DE002A03A6 /* AudioToolbox.framework */; }; + 840F1D9C10AD6701002A03A6 /* CodeEditorDemo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 840F1D9B10AD6701002A03A6 /* CodeEditorDemo.cpp */; }; + 848167F9107E4E5D008FEC33 /* ApplicationStartup.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 848167F8107E4E5D008FEC33 /* ApplicationStartup.cpp */; }; + 848168AB107E7DA6008FEC33 /* BinaryData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8481688D107E7DA6008FEC33 /* BinaryData.cpp */; }; + 848168AC107E7DA6008FEC33 /* CameraDemo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84816890107E7DA6008FEC33 /* CameraDemo.cpp */; }; + 848168AD107E7DA6008FEC33 /* DragAndDropDemo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84816891107E7DA6008FEC33 /* DragAndDropDemo.cpp */; }; + 848168AE107E7DA6008FEC33 /* InterprocessCommsDemo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84816892107E7DA6008FEC33 /* InterprocessCommsDemo.cpp */; }; + 848168AF107E7DA6008FEC33 /* OpenGLDemo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84816893107E7DA6008FEC33 /* OpenGLDemo.cpp */; }; + 848168B0107E7DA6008FEC33 /* PathsAndTransformsDemo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84816894107E7DA6008FEC33 /* PathsAndTransformsDemo.cpp */; }; + 848168B1107E7DA6008FEC33 /* QuickTimeDemo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84816895107E7DA6008FEC33 /* QuickTimeDemo.cpp */; }; + 848168B2107E7DA6008FEC33 /* TableDemo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84816896107E7DA6008FEC33 /* TableDemo.cpp */; }; + 848168B3107E7DA6008FEC33 /* ThreadingDemo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84816897107E7DA6008FEC33 /* ThreadingDemo.cpp */; }; + 848168B4107E7DA6008FEC33 /* AudioDemoTabComponent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84816898107E7DA6008FEC33 /* AudioDemoTabComponent.cpp */; }; + 848168B5107E7DA6008FEC33 /* WebBrowserDemo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 84816899107E7DA6008FEC33 /* WebBrowserDemo.cpp */; }; + 848168B6107E7DA6008FEC33 /* WidgetsDemo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8481689A107E7DA6008FEC33 /* WidgetsDemo.cpp */; }; + 848168B7107E7DA6008FEC33 /* AudioDemoSetupPage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8481689F107E7DA6008FEC33 /* AudioDemoSetupPage.cpp */; }; + 848168B8107E7DA6008FEC33 /* AudioDemoPlaybackPage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 848168A0107E7DA6008FEC33 /* AudioDemoPlaybackPage.cpp */; }; + 848168B9107E7DA6008FEC33 /* AudioDemoSynthPage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 848168A3107E7DA6008FEC33 /* AudioDemoSynthPage.cpp */; }; + 848168BA107E7DA6008FEC33 /* AudioDemoRecordPage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 848168A4107E7DA6008FEC33 /* AudioDemoRecordPage.cpp */; }; + 848168BB107E7DA6008FEC33 /* TreeViewDemo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 848168A5107E7DA6008FEC33 /* TreeViewDemo.cpp */; }; + 848168BC107E7DA6008FEC33 /* FontsAndTextDemo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 848168A6107E7DA6008FEC33 /* FontsAndTextDemo.cpp */; }; + 848168BD107E7DA6008FEC33 /* AudioDemoLatencyPage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 848168A7107E7DA6008FEC33 /* AudioDemoLatencyPage.cpp */; }; + 848168BE107E7DA6008FEC33 /* MainDemoWindow.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 848168A9107E7DA6008FEC33 /* MainDemoWindow.cpp */; }; + 8481714D1080CCA5008FEC33 /* libjucedebug.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 848171011080CB2A008FEC33 /* libjucedebug.a */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 848171001080CB2A008FEC33 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 848170FB1080CB2A008FEC33 /* Juce.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = D2AAC046055464E500DB518D; + remoteInfo = Juce; + }; + 848171021080CB2A008FEC33 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 848170FB1080CB2A008FEC33 /* Juce.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 84816E3510809B4F008FEC33; + remoteInfo = "Juce (iPhone)"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 1D6058910D05DD3D006BFB54 /* JuceDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JuceDemo.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; }; + 840F1D8410AD66DE002A03A6 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /System/Library/Frameworks/AudioToolbox.framework; sourceTree = ""; }; + 840F1D9B10AD6701002A03A6 /* CodeEditorDemo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CodeEditorDemo.cpp; sourceTree = ""; }; + 848167F8107E4E5D008FEC33 /* ApplicationStartup.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ApplicationStartup.cpp; path = ../../src/ApplicationStartup.cpp; sourceTree = SOURCE_ROOT; }; + 848167FA107E4E95008FEC33 /* juce_AppConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = juce_AppConfig.h; path = ../../src/juce_AppConfig.h; sourceTree = SOURCE_ROOT; }; + 8481688D107E7DA6008FEC33 /* BinaryData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = BinaryData.cpp; path = ../../src/BinaryData.cpp; sourceTree = SOURCE_ROOT; }; + 8481688E107E7DA6008FEC33 /* BinaryData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = BinaryData.h; path = ../../src/BinaryData.h; sourceTree = SOURCE_ROOT; }; + 84816890107E7DA6008FEC33 /* CameraDemo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CameraDemo.cpp; sourceTree = ""; }; + 84816891107E7DA6008FEC33 /* DragAndDropDemo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DragAndDropDemo.cpp; sourceTree = ""; }; + 84816892107E7DA6008FEC33 /* InterprocessCommsDemo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InterprocessCommsDemo.cpp; sourceTree = ""; }; + 84816893107E7DA6008FEC33 /* OpenGLDemo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OpenGLDemo.cpp; sourceTree = ""; }; + 84816894107E7DA6008FEC33 /* PathsAndTransformsDemo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PathsAndTransformsDemo.cpp; sourceTree = ""; }; + 84816895107E7DA6008FEC33 /* QuickTimeDemo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = QuickTimeDemo.cpp; sourceTree = ""; }; + 84816896107E7DA6008FEC33 /* TableDemo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TableDemo.cpp; sourceTree = ""; }; + 84816897107E7DA6008FEC33 /* ThreadingDemo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ThreadingDemo.cpp; sourceTree = ""; }; + 84816898107E7DA6008FEC33 /* AudioDemoTabComponent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AudioDemoTabComponent.cpp; sourceTree = ""; }; + 84816899107E7DA6008FEC33 /* WebBrowserDemo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebBrowserDemo.cpp; sourceTree = ""; }; + 8481689A107E7DA6008FEC33 /* WidgetsDemo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WidgetsDemo.cpp; sourceTree = ""; }; + 8481689B107E7DA6008FEC33 /* AudioDemoSetupPage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioDemoSetupPage.h; sourceTree = ""; }; + 8481689C107E7DA6008FEC33 /* AudioDemoLatencyPage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioDemoLatencyPage.h; sourceTree = ""; }; + 8481689D107E7DA6008FEC33 /* AudioDemoRecordPage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioDemoRecordPage.h; sourceTree = ""; }; + 8481689E107E7DA6008FEC33 /* AudioDemoPlaybackPage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioDemoPlaybackPage.h; sourceTree = ""; }; + 8481689F107E7DA6008FEC33 /* AudioDemoSetupPage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AudioDemoSetupPage.cpp; sourceTree = ""; }; + 848168A0107E7DA6008FEC33 /* AudioDemoPlaybackPage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AudioDemoPlaybackPage.cpp; sourceTree = ""; }; + 848168A1107E7DA6008FEC33 /* AudioDemoSynthPage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioDemoSynthPage.h; sourceTree = ""; }; + 848168A2107E7DA6008FEC33 /* AudioDemoTabComponent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioDemoTabComponent.h; sourceTree = ""; }; + 848168A3107E7DA6008FEC33 /* AudioDemoSynthPage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AudioDemoSynthPage.cpp; sourceTree = ""; }; + 848168A4107E7DA6008FEC33 /* AudioDemoRecordPage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AudioDemoRecordPage.cpp; sourceTree = ""; }; + 848168A5107E7DA6008FEC33 /* TreeViewDemo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TreeViewDemo.cpp; sourceTree = ""; }; + 848168A6107E7DA6008FEC33 /* FontsAndTextDemo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FontsAndTextDemo.cpp; sourceTree = ""; }; + 848168A7107E7DA6008FEC33 /* AudioDemoLatencyPage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AudioDemoLatencyPage.cpp; sourceTree = ""; }; + 848168A8107E7DA6008FEC33 /* jucedemo_headers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = jucedemo_headers.h; path = ../../src/jucedemo_headers.h; sourceTree = SOURCE_ROOT; }; + 848168A9107E7DA6008FEC33 /* MainDemoWindow.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = MainDemoWindow.cpp; path = ../../src/MainDemoWindow.cpp; sourceTree = SOURCE_ROOT; }; + 848168AA107E7DA6008FEC33 /* MainDemoWindow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MainDemoWindow.h; path = ../../src/MainDemoWindow.h; sourceTree = SOURCE_ROOT; }; + 848170FB1080CB2A008FEC33 /* Juce.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Juce.xcodeproj; path = ../../../../build/macosx/Juce.xcodeproj; sourceTree = SOURCE_ROOT; }; + 8D1107310486CEB800E47090 /* JuceDemo-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "JuceDemo-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 1D60588F0D05DD3D006BFB54 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 8481714D1080CCA5008FEC33 /* libjucedebug.a in Frameworks */, + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */, + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */, + 288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */, + 840F1D8510AD66DE002A03A6 /* AudioToolbox.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 19C28FACFE9D520D11CA2CBB /* Products */ = { + isa = PBXGroup; + children = ( + 1D6058910D05DD3D006BFB54 /* JuceDemo.app */, + ); + name = Products; + sourceTree = ""; + }; + 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { + isa = PBXGroup; + children = ( + 29B97315FDCFA39411CA2CEA /* Other Sources */, + 29B97317FDCFA39411CA2CEA /* Resources */, + 29B97323FDCFA39411CA2CEA /* Frameworks */, + 19C28FACFE9D520D11CA2CBB /* Products */, + ); + name = CustomTemplate; + sourceTree = ""; + }; + 29B97315FDCFA39411CA2CEA /* Other Sources */ = { + isa = PBXGroup; + children = ( + 8481688F107E7DA6008FEC33 /* demos */, + 848167F8107E4E5D008FEC33 /* ApplicationStartup.cpp */, + 8481688D107E7DA6008FEC33 /* BinaryData.cpp */, + 8481688E107E7DA6008FEC33 /* BinaryData.h */, + 848168A8107E7DA6008FEC33 /* jucedemo_headers.h */, + 848168A9107E7DA6008FEC33 /* MainDemoWindow.cpp */, + 848168AA107E7DA6008FEC33 /* MainDemoWindow.h */, + 848167FA107E4E95008FEC33 /* juce_AppConfig.h */, + ); + name = "Other Sources"; + sourceTree = ""; + }; + 29B97317FDCFA39411CA2CEA /* Resources */ = { + isa = PBXGroup; + children = ( + 8D1107310486CEB800E47090 /* JuceDemo-Info.plist */, + ); + name = Resources; + sourceTree = ""; + }; + 29B97323FDCFA39411CA2CEA /* Frameworks */ = { + isa = PBXGroup; + children = ( + 848170FB1080CB2A008FEC33 /* Juce.xcodeproj */, + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */, + 1D30AB110D05D00D00671497 /* Foundation.framework */, + 288765FC0DF74451002DB57D /* CoreGraphics.framework */, + 840F1D8410AD66DE002A03A6 /* AudioToolbox.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 8481688F107E7DA6008FEC33 /* demos */ = { + isa = PBXGroup; + children = ( + 840F1D9B10AD6701002A03A6 /* CodeEditorDemo.cpp */, + 84816890107E7DA6008FEC33 /* CameraDemo.cpp */, + 84816891107E7DA6008FEC33 /* DragAndDropDemo.cpp */, + 84816892107E7DA6008FEC33 /* InterprocessCommsDemo.cpp */, + 84816893107E7DA6008FEC33 /* OpenGLDemo.cpp */, + 84816894107E7DA6008FEC33 /* PathsAndTransformsDemo.cpp */, + 84816895107E7DA6008FEC33 /* QuickTimeDemo.cpp */, + 84816896107E7DA6008FEC33 /* TableDemo.cpp */, + 84816897107E7DA6008FEC33 /* ThreadingDemo.cpp */, + 84816898107E7DA6008FEC33 /* AudioDemoTabComponent.cpp */, + 84816899107E7DA6008FEC33 /* WebBrowserDemo.cpp */, + 8481689A107E7DA6008FEC33 /* WidgetsDemo.cpp */, + 8481689B107E7DA6008FEC33 /* AudioDemoSetupPage.h */, + 8481689C107E7DA6008FEC33 /* AudioDemoLatencyPage.h */, + 8481689D107E7DA6008FEC33 /* AudioDemoRecordPage.h */, + 8481689E107E7DA6008FEC33 /* AudioDemoPlaybackPage.h */, + 8481689F107E7DA6008FEC33 /* AudioDemoSetupPage.cpp */, + 848168A0107E7DA6008FEC33 /* AudioDemoPlaybackPage.cpp */, + 848168A1107E7DA6008FEC33 /* AudioDemoSynthPage.h */, + 848168A2107E7DA6008FEC33 /* AudioDemoTabComponent.h */, + 848168A3107E7DA6008FEC33 /* AudioDemoSynthPage.cpp */, + 848168A4107E7DA6008FEC33 /* AudioDemoRecordPage.cpp */, + 848168A5107E7DA6008FEC33 /* TreeViewDemo.cpp */, + 848168A6107E7DA6008FEC33 /* FontsAndTextDemo.cpp */, + 848168A7107E7DA6008FEC33 /* AudioDemoLatencyPage.cpp */, + ); + name = demos; + path = ../../src/demos; + sourceTree = SOURCE_ROOT; + }; + 848170FC1080CB2A008FEC33 /* Products */ = { + isa = PBXGroup; + children = ( + 848171011080CB2A008FEC33 /* libjucedebug.a */, + 848171031080CB2A008FEC33 /* libjucedebug.a */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 1D6058900D05DD3D006BFB54 /* JuceDemo */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "JuceDemo" */; + buildPhases = ( + 1D60588D0D05DD3D006BFB54 /* Resources */, + 1D60588E0D05DD3D006BFB54 /* Sources */, + 1D60588F0D05DD3D006BFB54 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = JuceDemo; + productName = JuceDemo; + productReference = 1D6058910D05DD3D006BFB54 /* JuceDemo.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 "JuceDemo" */; + compatibilityVersion = "Xcode 3.1"; + hasScannedForEncodings = 1; + mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */; + projectDirPath = ""; + projectReferences = ( + { + ProductGroup = 848170FC1080CB2A008FEC33 /* Products */; + ProjectRef = 848170FB1080CB2A008FEC33 /* Juce.xcodeproj */; + }, + ); + projectRoot = ""; + targets = ( + 1D6058900D05DD3D006BFB54 /* JuceDemo */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXReferenceProxy section */ + 848171011080CB2A008FEC33 /* libjucedebug.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libjucedebug.a; + remoteRef = 848171001080CB2A008FEC33 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 848171031080CB2A008FEC33 /* libjucedebug.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = libjucedebug.a; + remoteRef = 848171021080CB2A008FEC33 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; +/* End PBXReferenceProxy section */ + +/* Begin PBXResourcesBuildPhase section */ + 1D60588D0D05DD3D006BFB54 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 1D60588E0D05DD3D006BFB54 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 848167F9107E4E5D008FEC33 /* ApplicationStartup.cpp in Sources */, + 848168AB107E7DA6008FEC33 /* BinaryData.cpp in Sources */, + 848168AC107E7DA6008FEC33 /* CameraDemo.cpp in Sources */, + 848168AD107E7DA6008FEC33 /* DragAndDropDemo.cpp in Sources */, + 848168AE107E7DA6008FEC33 /* InterprocessCommsDemo.cpp in Sources */, + 848168AF107E7DA6008FEC33 /* OpenGLDemo.cpp in Sources */, + 848168B0107E7DA6008FEC33 /* PathsAndTransformsDemo.cpp in Sources */, + 848168B1107E7DA6008FEC33 /* QuickTimeDemo.cpp in Sources */, + 848168B2107E7DA6008FEC33 /* TableDemo.cpp in Sources */, + 848168B3107E7DA6008FEC33 /* ThreadingDemo.cpp in Sources */, + 848168B4107E7DA6008FEC33 /* AudioDemoTabComponent.cpp in Sources */, + 848168B5107E7DA6008FEC33 /* WebBrowserDemo.cpp in Sources */, + 848168B6107E7DA6008FEC33 /* WidgetsDemo.cpp in Sources */, + 848168B7107E7DA6008FEC33 /* AudioDemoSetupPage.cpp in Sources */, + 848168B8107E7DA6008FEC33 /* AudioDemoPlaybackPage.cpp in Sources */, + 848168B9107E7DA6008FEC33 /* AudioDemoSynthPage.cpp in Sources */, + 848168BA107E7DA6008FEC33 /* AudioDemoRecordPage.cpp in Sources */, + 848168BB107E7DA6008FEC33 /* TreeViewDemo.cpp in Sources */, + 848168BC107E7DA6008FEC33 /* FontsAndTextDemo.cpp in Sources */, + 848168BD107E7DA6008FEC33 /* AudioDemoLatencyPage.cpp in Sources */, + 848168BE107E7DA6008FEC33 /* MainDemoWindow.cpp in Sources */, + 840F1D9C10AD6701002A03A6 /* CodeEditorDemo.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 1D6058940D05DD3E006BFB54 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = NO; + GCC_OPTIMIZATION_LEVEL = 0; + INFOPLIST_FILE = "JuceDemo-Info.plist"; + PRODUCT_NAME = JuceDemo; + SDKROOT = iphoneos3.0; + }; + name = Debug; + }; + 1D6058950D05DD3E006BFB54 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = YES; + INFOPLIST_FILE = "JuceDemo-Info.plist"; + PRODUCT_NAME = JuceDemo; + SDKROOT = iphoneos3.0; + }; + name = Release; + }; + C01FCF4F08A954540054247B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + PREBINDING = NO; + PROVISIONING_PROFILE = ""; + SDKROOT = iphoneos3.1; + }; + name = Debug; + }; + C01FCF5008A954540054247B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + PREBINDING = NO; + SDKROOT = iphoneos3.1; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "JuceDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D6058940D05DD3E006BFB54 /* Debug */, + 1D6058950D05DD3E006BFB54 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C01FCF4E08A954540054247B /* Build configuration list for PBXProject "JuceDemo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C01FCF4F08A954540054247B /* Debug */, + C01FCF5008A954540054247B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; +} diff --git a/extras/juce demo/src/demos/AudioDemoRecordPage.cpp b/extras/juce demo/src/demos/AudioDemoRecordPage.cpp index 522e0eefee..b34b1186e5 100644 --- a/extras/juce demo/src/demos/AudioDemoRecordPage.cpp +++ b/extras/juce demo/src/demos/AudioDemoRecordPage.cpp @@ -3,7 +3,7 @@ This is an automatically generated file created by the Jucer! - Creation date: 19 Sep 2009 12:36:23 pm + Creation date: 13 Nov 2009 3:52:50 pm Be careful when adding custom code to these files, as only the code within the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded @@ -246,7 +246,7 @@ AudioDemoRecordPage::AudioDemoRecordPage (AudioDeviceManager& deviceManager_) addAndMakeVisible (liveAudioDisplayComp = new LiveAudioInputDisplayComp()); addAndMakeVisible (explanationLabel = new Label (String::empty, - T("This page demonstrates how to record a wave file from the live audio input..\n\nPressing record will start recording a file to your desktop."))); + T("This page demonstrates how to record a wave file from the live audio input..\n\nPressing record will start recording a file in your \"Documents\" folder."))); explanationLabel->setFont (Font (15.0000f, Font::plain)); explanationLabel->setJustificationType (Justification::topLeft); explanationLabel->setEditable (false, false, false); @@ -304,7 +304,7 @@ void AudioDemoRecordPage::paint (Graphics& g) void AudioDemoRecordPage::resized() { liveAudioDisplayComp->setBounds (8, 8, getWidth() - 16, 64); - explanationLabel->setBounds (184, 88, getWidth() - 194, 120); + explanationLabel->setBounds (160, 88, getWidth() - 169, 216); recordButton->setBounds (8, 88, 136, 40); //[UserResized] Add your own custom resize handling here.. //[/UserResized] @@ -324,7 +324,7 @@ void AudioDemoRecordPage::buttonClicked (Button* buttonThatWasClicked) } else { - File file (File::getSpecialLocation (File::userDesktopDirectory) + File file (File::getSpecialLocation (File::userDocumentsDirectory) .getNonexistentChildFile ("Juce Demo Audio Recording", ".wav")); recorder->startRecording (file); @@ -377,8 +377,8 @@ BEGIN_JUCER_METADATA virtualName="" explicitFocusOrder="0" pos="8 8 16M 64" class="LiveAudioInputDisplayComp" params=""/>