diff options
author | falkTX <falktx@gmail.com> | 2020-06-13 19:58:02 +0200 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2020-06-13 19:58:02 +0200 |
commit | 1024af1c8d27b22340291b25e85fdcaba27ff4da (patch) | |
tree | 9bdff607eda550478ab437e1be4e006ad4b11771 | |
parent | df9c990f09effcbf2c2ef83488779347a8c04712 (diff) | |
download | jack2-1024af1c8d27b22340291b25e85fdcaba27ff4da.tar.gz |
Delete macos static binaries and iphone stuff
-rw-r--r-- | macosx/iphone/Info.plist | 30 | ||||
-rw-r--r-- | macosx/iphone/MainWindow.xib | 440 | ||||
-rw-r--r-- | macosx/iphone/audio_thru.mm | 35 | ||||
-rw-r--r-- | macosx/iphone/freeverb.mm | 750 | ||||
-rwxr-xr-x | macosx/iphone/iPhoneNet.xcodeproj/project.pbxproj | 1298 | ||||
-rw-r--r-- | macosx/iphone/iPhoneNetAppDelegate.h | 23 | ||||
-rw-r--r-- | macosx/iphone/iPhoneNetAppDelegate.m | 32 | ||||
-rw-r--r-- | macosx/iphone/iPhoneNet_Prefix.pch | 10 | ||||
-rw-r--r-- | macosx/iphone/icon.png | bin | 5297 -> 0 bytes | |||
-rw-r--r-- | macosx/iphone/iphone-faust.mm | 3127 | ||||
-rw-r--r-- | macosx/iphone/main_master.mm | 155 | ||||
-rw-r--r-- | macosx/iphone/main_slave.mm | 114 | ||||
-rw-r--r-- | macosx/libaften_pcm.a | bin | 84616 -> 0 bytes | |||
-rw-r--r-- | macosx/libaften_static.a | bin | 317976 -> 0 bytes | |||
-rw-r--r-- | macosx/libcelt.a | bin | 1255668 -> 0 bytes | |||
-rw-r--r-- | macosx/libopus.a | bin | 4223260 -> 0 bytes | |||
-rw-r--r-- | macosx/libportaudio.a | bin | 552908 -> 0 bytes |
17 files changed, 0 insertions, 6014 deletions
diff --git a/macosx/iphone/Info.plist b/macosx/iphone/Info.plist deleted file mode 100644 index 38cb25cf..00000000 --- a/macosx/iphone/Info.plist +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> -<dict> - <key>CFBundleDevelopmentRegion</key> - <string>English</string> - <key>CFBundleDisplayName</key> - <string>${PRODUCT_NAME}</string> - <key>CFBundleExecutable</key> - <string>${EXECUTABLE_NAME}</string> - <key>CFBundleIconFile</key> - <string></string> - <key>CFBundleIdentifier</key> - <string>fr.grame.iGrame.iPhoneFaustNet</string> - <key>CFBundleInfoDictionaryVersion</key> - <string>6.0</string> - <key>CFBundleName</key> - <string>${PRODUCT_NAME}</string> - <key>CFBundlePackageType</key> - <string>APPL</string> - <key>CFBundleSignature</key> - <string>????</string> - <key>CFBundleVersion</key> - <string>1.0</string> - <key>LSRequiresIPhoneOS</key> - <true/> - <key>NSMainNibFile</key> - <string>MainWindow</string> -</dict> -</plist> diff --git a/macosx/iphone/MainWindow.xib b/macosx/iphone/MainWindow.xib deleted file mode 100644 index a36742fe..00000000 --- a/macosx/iphone/MainWindow.xib +++ /dev/null @@ -1,440 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10"> - <data> - <int key="IBDocument.SystemTarget">528</int> - <string key="IBDocument.SystemVersion">10C540</string> - <string key="IBDocument.InterfaceBuilderVersion">740</string> - <string key="IBDocument.AppKitVersion">1038.25</string> - <string key="IBDocument.HIToolboxVersion">458.00</string> - <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> - <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> - <string key="NS.object.0">62</string> - </object> - <object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> - <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="2"/> - </object> - <object class="NSArray" key="IBDocument.PluginDependencies"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> - </object> - <object class="NSMutableDictionary" key="IBDocument.Metadata"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys" id="0"> - <bool key="EncodedWithXMLCoder">YES</bool> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - </object> - </object> - <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="IBProxyObject" id="841351856"> - <string key="IBProxiedObjectIdentifier">IBFilesOwner</string> - </object> - <object class="IBProxyObject" id="427554174"> - <string key="IBProxiedObjectIdentifier">IBFirstResponder</string> - </object> - <object class="IBUICustomObject" id="664661524"/> - <object class="IBUIWindow" id="380026005"> - <reference key="NSNextResponder"/> - <int key="NSvFlags">1316</int> - <object class="NSMutableArray" key="NSSubviews"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="IBUILabel" id="622412730"> - <reference key="NSNextResponder" ref="380026005"/> - <int key="NSvFlags">1316</int> - <string key="NSFrame">{{25, 40}, {267, 21}}</string> - <reference key="NSSuperview" ref="380026005"/> - <bool key="IBUIOpaque">NO</bool> - <bool key="IBUIClipsSubviews">YES</bool> - <bool key="IBUIUserInteractionEnabled">NO</bool> - <string key="IBUIText">NetJack : client on JACK server </string> - <object class="NSFont" key="IBUIFont"> - <string key="NSName">Helvetica-Bold</string> - <double key="NSSize">17</double> - <int key="NSfFlags">16</int> - </object> - <object class="NSColor" key="IBUITextColor"> - <int key="NSColorSpace">1</int> - <bytes key="NSRGB">MCAwIDAAA</bytes> - </object> - <nil key="IBUIHighlightedColor"/> - <int key="IBUIBaselineAdjustment">1</int> - <float key="IBUIMinimumFontSize">10</float> - </object> - </object> - <object class="NSPSMatrix" key="NSFrameMatrix"/> - <string key="NSFrameSize">{320, 480}</string> - <reference key="NSSuperview"/> - <object class="NSColor" key="IBUIBackgroundColor"> - <int key="NSColorSpace">1</int> - <bytes key="NSRGB">MSAxIDEAA</bytes> - </object> - <bool key="IBUIOpaque">NO</bool> - <bool key="IBUIClearsContextBeforeDrawing">NO</bool> - <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/> - </object> - </object> - <object class="IBObjectContainer" key="IBDocument.Objects"> - <object class="NSMutableArray" key="connectionRecords"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="IBConnectionRecord"> - <object class="IBCocoaTouchOutletConnection" key="connection"> - <string key="label">delegate</string> - <reference key="source" ref="841351856"/> - <reference key="destination" ref="664661524"/> - </object> - <int key="connectionID">4</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBCocoaTouchOutletConnection" key="connection"> - <string key="label">window</string> - <reference key="source" ref="664661524"/> - <reference key="destination" ref="380026005"/> - </object> - <int key="connectionID">5</int> - </object> - </object> - <object class="IBMutableOrderedSet" key="objectRecords"> - <object class="NSArray" key="orderedObjects"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="IBObjectRecord"> - <int key="objectID">0</int> - <reference key="object" ref="0"/> - <reference key="children" ref="1000"/> - <nil key="parent"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">2</int> - <reference key="object" ref="380026005"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="622412730"/> - </object> - <reference key="parent" ref="0"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">-1</int> - <reference key="object" ref="841351856"/> - <reference key="parent" ref="0"/> - <string key="objectName">File's Owner</string> - </object> - <object class="IBObjectRecord"> - <int key="objectID">3</int> - <reference key="object" ref="664661524"/> - <reference key="parent" ref="0"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">-2</int> - <reference key="object" ref="427554174"/> - <reference key="parent" ref="0"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">10</int> - <reference key="object" ref="622412730"/> - <reference key="parent" ref="380026005"/> - </object> - </object> - </object> - <object class="NSMutableDictionary" key="flattenedProperties"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>-1.CustomClassName</string> - <string>-2.CustomClassName</string> - <string>10.IBPluginDependency</string> - <string>2.IBAttributePlaceholdersKey</string> - <string>2.IBEditorWindowLastContentRect</string> - <string>2.IBPluginDependency</string> - <string>2.IBUserGuides</string> - <string>3.CustomClassName</string> - <string>3.IBPluginDependency</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>UIApplication</string> - <string>UIResponder</string> - <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> - <object class="NSMutableDictionary"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference key="dict.sortedKeys" ref="0"/> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - </object> - </object> - <string>{{366, 320}, {320, 480}}</string> - <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> - <object class="NSMutableArray"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="IBUserGuide"> - <reference key="view" ref="380026005"/> - <double key="location">153.5</double> - <int key="affinity">0</int> - </object> - </object> - <string>iPhoneNetAppDelegate</string> - <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> - </object> - </object> - <object class="NSMutableDictionary" key="unlocalizedProperties"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference key="dict.sortedKeys" ref="0"/> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - </object> - </object> - <nil key="activeLocalization"/> - <object class="NSMutableDictionary" key="localizations"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference key="dict.sortedKeys" ref="0"/> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - </object> - </object> - <nil key="sourceID"/> - <int key="maxID">11</int> - </object> - <object class="IBClassDescriber" key="IBDocument.Classes"> - <object class="NSMutableArray" key="referencedPartialClassDescriptions"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="IBPartialClassDescription"> - <string key="className">iPhoneNetAppDelegate</string> - <string key="superclassName">NSObject</string> - <object class="NSMutableDictionary" key="outlets"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="NSArray" key="dict.sortedKeys"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>navigationController</string> - <string>window</string> - </object> - <object class="NSMutableArray" key="dict.values"> - <bool key="EncodedWithXMLCoder">YES</bool> - <string>UINavigationController</string> - <string>UIWindow</string> - </object> - </object> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBProjectSource</string> - <string key="minorKey">iPhoneNetAppDelegate.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">iPhoneNetAppDelegate</string> - <string key="superclassName">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBUserSource</string> - <string key="minorKey"/> - </object> - </object> - </object> - <object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+"> - <bool key="EncodedWithXMLCoder">YES</bool> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSError.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSNetServices.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSObject.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSPort.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSStream.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSThread.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSURL.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">Foundation.framework/Headers/NSXMLParser.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">UIKit.framework/Headers/UINibLoading.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">UIApplication</string> - <string key="superclassName">UIResponder</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">UIKit.framework/Headers/UIApplication.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">UILabel</string> - <string key="superclassName">UIView</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">UIKit.framework/Headers/UILabel.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">UINavigationController</string> - <string key="superclassName">UIViewController</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier" id="325457853"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">UIKit.framework/Headers/UINavigationController.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">UIResponder</string> - <string key="superclassName">NSObject</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">UIKit.framework/Headers/UIResponder.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">UISearchBar</string> - <string key="superclassName">UIView</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">UIKit.framework/Headers/UISearchBar.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">UIView</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">UIKit.framework/Headers/UITextField.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">UIView</string> - <string key="superclassName">UIResponder</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">UIKit.framework/Headers/UIView.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">UIViewController</string> - <reference key="sourceIdentifier" ref="325457853"/> - </object> - <object class="IBPartialClassDescription"> - <string key="className">UIViewController</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">UIKit.framework/Headers/UITabBarController.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">UIViewController</string> - <string key="superclassName">UIResponder</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">UIKit.framework/Headers/UIViewController.h</string> - </object> - </object> - <object class="IBPartialClassDescription"> - <string key="className">UIWindow</string> - <string key="superclassName">UIView</string> - <object class="IBClassDescriptionSource" key="sourceIdentifier"> - <string key="majorKey">IBFrameworkSource</string> - <string key="minorKey">UIKit.framework/Headers/UIWindow.h</string> - </object> - </object> - </object> - </object> - <int key="IBDocument.localizationMode">0</int> - <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencies"> - <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string> - <integer value="528" key="NS.object.0"/> - </object> - <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults"> - <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string> - <integer value="544" key="NS.object.0"/> - </object> - <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies"> - <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string> - <integer value="3000" key="NS.object.0"/> - </object> - <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool> - <string key="IBDocument.LastKnownRelativeProjectPath">iPhoneNet.xcodeproj</string> - <int key="IBDocument.defaultPropertyAccessControl">3</int> - <string key="IBCocoaTouchPluginVersion">3.1</string> - </data> -</archive> diff --git a/macosx/iphone/audio_thru.mm b/macosx/iphone/audio_thru.mm deleted file mode 100644 index 92d59026..00000000 --- a/macosx/iphone/audio_thru.mm +++ /dev/null @@ -1,35 +0,0 @@ - -#include "JackAudioQueueAdapter.h" - -#define CHANNELS 2 - -static void DSPcompute(int count, float** input, float** output) -{ - for (int i = 0; i < CHANNELS; i++) { - memcpy(output[i], input[i], count * sizeof(float)); - } -} - -int main(int argc, char *argv[]) { - - NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; - - Jack::JackAudioQueueAdapter audio(2, 2, 512, 44100, DSPcompute); - - if (audio.Open() < 0) { - fprintf(stderr, "Cannot open audio\n"); - return 1; - } - - // Hang around forever... - while(1) CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.25, false); - - int retVal = UIApplicationMain(argc, argv, nil, nil); - [pool release]; - - if (audio.Close() < 0) { - fprintf(stderr, "Cannot close audio\n"); - } - - return retVal; -} diff --git a/macosx/iphone/freeverb.mm b/macosx/iphone/freeverb.mm deleted file mode 100644 index 4eb3f6ce..00000000 --- a/macosx/iphone/freeverb.mm +++ /dev/null @@ -1,750 +0,0 @@ -//----------------------------------------------------- -// name: "freeverb" -// version: "1.0" -// author: "Grame" -// license: "BSD" -// copyright: "(c)GRAME 2006" -// -// Code generated with Faust 0.9.9.5b2 (http://faust.grame.fr) -//----------------------------------------------------- -/* link with */ - -/* link with */ -#include <math.h> -/* link with */ -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <limits.h> -#include <math.h> -#include <errno.h> -#include <time.h> -#include <sys/ioctl.h> -#include <unistd.h> -#include <fcntl.h> -#include <pwd.h> -#include <sys/types.h> -#include <assert.h> -#include <pthread.h> -#include <sys/wait.h> -#include <libgen.h> -#include <jack/net.h> - -#include <list> -#include <vector> -#include <iostream> -#include <fstream> -#include <stack> -#include <list> -#include <map> - -#include "JackAudioQueueAdapter.h" - -using namespace std; - -// On Intel set FZ (Flush to Zero) and DAZ (Denormals Are Zero) -// flags to avoid costly denormals -#ifdef __SSE__ - #include <xmmintrin.h> - #ifdef __SSE2__ - #define AVOIDDENORMALS _mm_setcsr(_mm_getcsr() | 0x8040) - #else - #define AVOIDDENORMALS _mm_setcsr(_mm_getcsr() | 0x8000) - #endif -#else - #define AVOIDDENORMALS -#endif - -//#define BENCHMARKMODE - -struct Meta : map<const char*, const char*> -{ - void declare (const char* key, const char* value) { (*this)[key]=value; } -}; - - -#define max(x,y) (((x)>(y)) ? (x) : (y)) -#define min(x,y) (((x)<(y)) ? (x) : (y)) - -inline int lsr (int x, int n) { return int(((unsigned int)x) >> n); } -inline int int2pow2 (int x) { int r = 0; while ((1<<r)<x) r++; return r; } - - -/****************************************************************************** -******************************************************************************* - - VECTOR INTRINSICS - -******************************************************************************* -*******************************************************************************/ - - -/****************************************************************************** -******************************************************************************* - - USER INTERFACE - -******************************************************************************* -*******************************************************************************/ - -class UI -{ - bool fStopped; -public: - - UI() : fStopped(false) {} - virtual ~UI() {} - - // -- active widgets - - virtual void addButton(const char* label, float* zone) = 0; - virtual void addToggleButton(const char* label, float* zone) = 0; - virtual void addCheckButton(const char* label, float* zone) = 0; - virtual void addVerticalSlider(const char* label, float* zone, float init, float min, float max, float step) = 0; - virtual void addHorizontalSlider(const char* label, float* zone, float init, float min, float max, float step) = 0; - virtual void addNumEntry(const char* label, float* zone, float init, float min, float max, float step) = 0; - - // -- passive widgets - - virtual void addNumDisplay(const char* label, float* zone, int precision) = 0; - virtual void addTextDisplay(const char* label, float* zone, char* names[], float min, float max) = 0; - virtual void addHorizontalBargraph(const char* label, float* zone, float min, float max) = 0; - virtual void addVerticalBargraph(const char* label, float* zone, float min, float max) = 0; - - // -- frames and labels - - virtual void openFrameBox(const char* label) = 0; - virtual void openTabBox(const char* label) = 0; - virtual void openHorizontalBox(const char* label) = 0; - virtual void openVerticalBox(const char* label) = 0; - virtual void closeBox() = 0; - - virtual void show() = 0; - virtual void run() = 0; - - void stop() { fStopped = true; } - bool stopped() { return fStopped; } - - virtual void declare(float* zone, const char* key, const char* value) {} -}; - -struct param { - float* fZone; float fMin; float fMax; - param(float* z, float a, float b) : fZone(z), fMin(a), fMax(b) {} -}; - -class CMDUI : public UI -{ - int fArgc; - char** fArgv; - stack<string> fPrefix; - map<string, param> fKeyParam; - - void addOption(const char* label, float* zone, float min, float max) - { - string fullname = fPrefix.top() + label; - fKeyParam.insert(make_pair(fullname, param(zone, min, max))); - } - - void openAnyBox(const char* label) - { - string prefix; - - if (label && label[0]) { - prefix = fPrefix.top() + "-" + label; - } else { - prefix = fPrefix.top(); - } - fPrefix.push(prefix); - } - -public: - - CMDUI(int argc, char *argv[]) : UI(), fArgc(argc), fArgv(argv) { fPrefix.push("--"); } - virtual ~CMDUI() {} - - virtual void addButton(const char* label, float* zone) {}; - virtual void addToggleButton(const char* label, float* zone) {}; - virtual void addCheckButton(const char* label, float* zone) {}; - - virtual void addVerticalSlider(const char* label, float* zone, float init, float min, float max, float step) - { - addOption(label,zone,min,max); - } - - virtual void addHorizontalSlider(const char* label, float* zone, float init, float min, float max, float step) - { - addOption(label,zone,min,max); - } - - virtual void addNumEntry(const char* label, float* zone, float init, float min, float max, float step) - { - addOption(label,zone,min,max); - } - - // -- passive widgets - - virtual void addNumDisplay(const char* label, float* zone, int precision) {} - virtual void addTextDisplay(const char* label, float* zone, char* names[], float min, float max) {} - virtual void addHorizontalBargraph(const char* label, float* zone, float min, float max) {} - virtual void addVerticalBargraph(const char* label, float* zone, float min, float max) {} - - virtual void openFrameBox(const char* label) { openAnyBox(label); } - virtual void openTabBox(const char* label) { openAnyBox(label); } - virtual void openHorizontalBox(const char* label) { openAnyBox(label); } - virtual void openVerticalBox(const char* label) { openAnyBox(label); } - - virtual void closeBox() { fPrefix.pop(); } - - virtual void show() {} - virtual void run() - { - char c; - printf("Type 'q' to quit\n"); - while ((c = getchar()) != 'q') { - sleep(1); - } - } - - void print() - { - map<string, param>::iterator i; - cout << fArgc << "\n"; - cout << fArgv[0] << " option list : "; - for (i = fKeyParam.begin(); i != fKeyParam.end(); i++) { - cout << "[ " << i->first << " " << i->second.fMin << ".." << i->second.fMax <<" ] "; - } - } - - void process_command() - { - map<string, param>::iterator p; - for (int i = 1; i < fArgc; i++) { - if (fArgv[i][0] == '-') { - p = fKeyParam.find(fArgv[i]); - if (p == fKeyParam.end()) { - cout << fArgv[0] << " : unrecognized option " << fArgv[i] << "\n"; - print(); - exit(1); - } - char* end; - *(p->second.fZone) = float(strtod(fArgv[i+1], &end)); - i++; - } - } - } - - void process_init() - { - map<string, param>::iterator p; - for (int i = 1; i < fArgc; i++) { - if (fArgv[i][0] == '-') { - p = fKeyParam.find(fArgv[i]); - if (p == fKeyParam.end()) { - cout << fArgv[0] << " : unrecognized option " << fArgv[i] << "\n"; - exit(1); - } - char* end; - *(p->second.fZone) = float(strtod(fArgv[i+1], &end)); - i++; - } - } - } -}; - - -//---------------------------------------------------------------- -// Signal processor definition -//---------------------------------------------------------------- - -class dsp { - protected: - int fSamplingFreq; - public: - dsp() {} - virtual ~dsp() {} - - virtual int getNumInputs() = 0; - virtual int getNumOutputs() = 0; - virtual void buildUserInterface(UI* interface) = 0; - virtual void init(int samplingRate) = 0; - virtual void compute(int len, float** inputs, float** outputs) = 0; - virtual void conclude() {} -}; - - -//---------------------------------------------------------------------------- -// FAUST generated code -//---------------------------------------------------------------------------- - - -class mydsp : public dsp { - private: - float fslider0; - float fRec9[2]; - float fslider1; - int IOTA; - float fVec0[2048]; - float fRec8[2]; - float fRec11[2]; - float fVec1[2048]; - float fRec10[2]; - float fRec13[2]; - float fVec2[2048]; - float fRec12[2]; - float fRec15[2]; - float fVec3[2048]; - float fRec14[2]; - float fRec17[2]; - float fVec4[2048]; - float fRec16[2]; - float fRec19[2]; - float fVec5[2048]; - float fRec18[2]; - float fRec21[2]; - float fVec6[2048]; - float fRec20[2]; - float fRec23[2]; - float fVec7[2048]; - float fRec22[2]; - float fVec8[1024]; - float fRec6[2]; - float fVec9[512]; - float fRec4[2]; - float fVec10[512]; - float fRec2[2]; - float fVec11[256]; - float fRec0[2]; - float fslider2; - float fRec33[2]; - float fVec12[2048]; - float fRec32[2]; - float fRec35[2]; - float fVec13[2048]; - float fRec34[2]; - float fRec37[2]; - float fVec14[2048]; - float fRec36[2]; - float fRec39[2]; - float fVec15[2048]; - float fRec38[2]; - float fRec41[2]; - float fVec16[2048]; - float fRec40[2]; - float fRec43[2]; - float fVec17[2048]; - float fRec42[2]; - float fRec45[2]; - float fVec18[2048]; - float fRec44[2]; - float fRec47[2]; - float fVec19[2048]; - float fRec46[2]; - float fVec20[1024]; - float fRec30[2]; - float fVec21[512]; - float fRec28[2]; - float fVec22[512]; - float fRec26[2]; - float fVec23[256]; - float fRec24[2]; - public: - static void metadata(Meta* m) { - m->declare("name", "freeverb"); - m->declare("version", "1.0"); - m->declare("author", "Grame"); - m->declare("license", "BSD"); - m->declare("copyright", "(c)GRAME 2006"); - } - - virtual int getNumInputs() { return 2; } - virtual int getNumOutputs() { return 2; } - static void classInit(int samplingFreq) { - } - virtual void instanceInit(int samplingFreq) { - fSamplingFreq = samplingFreq; - fslider0 = 0.5f; - for (int i=0; i<2; i++) fRec9[i] = 0; - fslider1 = 0.8f; - IOTA = 0; - for (int i=0; i<2048; i++) fVec0[i] = 0; - for (int i=0; i<2; i++) fRec8[i] = 0; - for (int i=0; i<2; i++) fRec11[i] = 0; - for (int i=0; i<2048; i++) fVec1[i] = 0; - for (int i=0; i<2; i++) fRec10[i] = 0; - for (int i=0; i<2; i++) fRec13[i] = 0; - for (int i=0; i<2048; i++) fVec2[i] = 0; - for (int i=0; i<2; i++) fRec12[i] = 0; - for (int i=0; i<2; i++) fRec15[i] = 0; - for (int i=0; i<2048; i++) fVec3[i] = 0; - for (int i=0; i<2; i++) fRec14[i] = 0; - for (int i=0; i<2; i++) fRec17[i] = 0; - for (int i=0; i<2048; i++) fVec4[i] = 0; - for (int i=0; i<2; i++) fRec16[i] = 0; - for (int i=0; i<2; i++) fRec19[i] = 0; - for (int i=0; i<2048; i++) fVec5[i] = 0; - for (int i=0; i<2; i++) fRec18[i] = 0; - for (int i=0; i<2; i++) fRec21[i] = 0; - for (int i=0; i<2048; i++) fVec6[i] = 0; - for (int i=0; i<2; i++) fRec20[i] = 0; - for (int i=0; i<2; i++) fRec23[i] = 0; - for (int i=0; i<2048; i++) fVec7[i] = 0; - for (int i=0; i<2; i++) fRec22[i] = 0; - for (int i=0; i<1024; i++) fVec8[i] = 0; - for (int i=0; i<2; i++) fRec6[i] = 0; - for (int i=0; i<512; i++) fVec9[i] = 0; - for (int i=0; i<2; i++) fRec4[i] = 0; - for (int i=0; i<512; i++) fVec10[i] = 0; - for (int i=0; i<2; i++) fRec2[i] = 0; - for (int i=0; i<256; i++) fVec11[i] = 0; - for (int i=0; i<2; i++) fRec0[i] = 0; - fslider2 = 0.8f; - for (int i=0; i<2; i++) fRec33[i] = 0; - for (int i=0; i<2048; i++) fVec12[i] = 0; - for (int i=0; i<2; i++) fRec32[i] = 0; - for (int i=0; i<2; i++) fRec35[i] = 0; - for (int i=0; i<2048; i++) fVec13[i] = 0; - for (int i=0; i<2; i++) fRec34[i] = 0; - for (int i=0; i<2; i++) fRec37[i] = 0; - for (int i=0; i<2048; i++) fVec14[i] = 0; - for (int i=0; i<2; i++) fRec36[i] = 0; - for (int i=0; i<2; i++) fRec39[i] = 0; - for (int i=0; i<2048; i++) fVec15[i] = 0; - for (int i=0; i<2; i++) fRec38[i] = 0; - for (int i=0; i<2; i++) fRec41[i] = 0; - for (int i=0; i<2048; i++) fVec16[i] = 0; - for (int i=0; i<2; i++) fRec40[i] = 0; - for (int i=0; i<2; i++) fRec43[i] = 0; - for (int i=0; i<2048; i++) fVec17[i] = 0; - for (int i=0; i<2; i++) fRec42[i] = 0; - for (int i=0; i<2; i++) fRec45[i] = 0; - for (int i=0; i<2048; i++) fVec18[i] = 0; - for (int i=0; i<2; i++) fRec44[i] = 0; - for (int i=0; i<2; i++) fRec47[i] = 0; - for (int i=0; i<2048; i++) fVec19[i] = 0; - for (int i=0; i<2; i++) fRec46[i] = 0; - for (int i=0; i<1024; i++) fVec20[i] = 0; - for (int i=0; i<2; i++) fRec30[i] = 0; - for (int i=0; i<512; i++) fVec21[i] = 0; - for (int i=0; i<2; i++) fRec28[i] = 0; - for (int i=0; i<512; i++) fVec22[i] = 0; - for (int i=0; i<2; i++) fRec26[i] = 0; - for (int i=0; i<256; i++) fVec23[i] = 0; - for (int i=0; i<2; i++) fRec24[i] = 0; - } - virtual void init(int samplingFreq) { - classInit(samplingFreq); - instanceInit(samplingFreq); - } - virtual void buildUserInterface(UI* interface) { - interface->openVerticalBox("Freeverb"); - interface->addHorizontalSlider("Damp", &fslider0, 0.5f, 0.0f, 1.0f, 2.500000e-02f); - interface->addHorizontalSlider("RoomSize", &fslider1, 0.8f, 0.0f, 1.0f, 2.500000e-02f); - interface->addHorizontalSlider("Wet", &fslider2, 0.8f, 0.0f, 1.0f, 2.500000e-02f); - interface->closeBox(); - } - virtual void compute (int count, float** input, float** output) { - float fSlow0 = (0.4f * fslider0); - float fSlow1 = (1 - fSlow0); - float fSlow2 = (0.7f + (0.28f * fslider1)); - float fSlow3 = fslider2; - float fSlow4 = (1 - fSlow3); - float* input0 = input[0]; - float* input1 = input[1]; - float* output0 = output[0]; - float* output1 = output[1]; - for (int i=0; i<count; i++) { - fRec9[0] = ((fSlow1 * fRec8[1]) + (fSlow0 * fRec9[1])); - float fTemp0 = input1[i]; - float fTemp1 = input0[i]; - float fTemp2 = (1.500000e-02f * (fTemp1 + fTemp0)); - fVec0[IOTA&2047] = (fTemp2 + (fSlow2 * fRec9[0])); - fRec8[0] = fVec0[(IOTA-1617)&2047]; - fRec11[0] = ((fSlow1 * fRec10[1]) + (fSlow0 * fRec11[1])); - fVec1[IOTA&2047] = (fTemp2 + (fSlow2 * fRec11[0])); - fRec10[0] = fVec1[(IOTA-1557)&2047]; - fRec13[0] = ((fSlow1 * fRec12[1]) + (fSlow0 * fRec13[1])); - fVec2[IOTA&2047] = (fTemp2 + (fSlow2 * fRec13[0])); - fRec12[0] = fVec2[(IOTA-1491)&2047]; - fRec15[0] = ((fSlow1 * fRec14[1]) + (fSlow0 * fRec15[1])); - fVec3[IOTA&2047] = (fTemp2 + (fSlow2 * fRec15[0])); - fRec14[0] = fVec3[(IOTA-1422)&2047]; - fRec17[0] = ((fSlow1 * fRec16[1]) + (fSlow0 * fRec17[1])); - fVec4[IOTA&2047] = (fTemp2 + (fSlow2 * fRec17[0])); - fRec16[0] = fVec4[(IOTA-1356)&2047]; - fRec19[0] = ((fSlow1 * fRec18[1]) + (fSlow0 * fRec19[1])); - fVec5[IOTA&2047] = (fTemp2 + (fSlow2 * fRec19[0])); - fRec18[0] = fVec5[(IOTA-1277)&2047]; - fRec21[0] = ((fSlow1 * fRec20[1]) + (fSlow0 * fRec21[1])); - fVec6[IOTA&2047] = (fTemp2 + (fSlow2 * fRec21[0])); - fRec20[0] = fVec6[(IOTA-1188)&2047]; - fRec23[0] = ((fSlow1 * fRec22[1]) + (fSlow0 * fRec23[1])); - fVec7[IOTA&2047] = (fTemp2 + (fSlow2 * fRec23[0])); - fRec22[0] = fVec7[(IOTA-1116)&2047]; - float fTemp3 = (((((((fRec22[0] + fRec20[0]) + fRec18[0]) + fRec16[0]) + fRec14[0]) + fRec12[0]) + fRec10[0]) + fRec8[0]); - fVec8[IOTA&1023] = (fTemp3 + (0.5f * fRec6[1])); - fRec6[0] = fVec8[(IOTA-556)&1023]; - float fRec7 = (0 - (fTemp3 - fRec6[1])); - fVec9[IOTA&511] = (fRec7 + (0.5f * fRec4[1])); - fRec4[0] = fVec9[(IOTA-441)&511]; - float fRec5 = (fRec4[1] - fRec7); - fVec10[IOTA&511] = (fRec5 + (0.5f * fRec2[1])); - fRec2[0] = fVec10[(IOTA-341)&511]; - float fRec3 = (fRec2[1] - fRec5); - fVec11[IOTA&255] = (fRec3 + (0.5f * fRec0[1])); - fRec0[0] = fVec11[(IOTA-225)&255]; - float fRec1 = (fRec0[1] - fRec3); - output0[i] = ((fSlow4 * fTemp1) + (fSlow3 * fRec1)); - fRec33[0] = ((fSlow1 * fRec32[1]) + (fSlow0 * fRec33[1])); - fVec12[IOTA&2047] = (fTemp2 + (fSlow2 * fRec33[0])); - fRec32[0] = fVec12[(IOTA-1640)&2047]; - fRec35[0] = ((fSlow1 * fRec34[1]) + (fSlow0 * fRec35[1])); - fVec13[IOTA&2047] = (fTemp2 + (fSlow2 * fRec35[0])); - fRec34[0] = fVec13[(IOTA-1580)&2047]; - fRec37[0] = ((fSlow1 * fRec36[1]) + (fSlow0 * fRec37[1])); - fVec14[IOTA&2047] = (fTemp2 + (fSlow2 * fRec37[0])); - fRec36[0] = fVec14[(IOTA-1514)&2047]; - fRec39[0] = ((fSlow1 * fRec38[1]) + (fSlow0 * fRec39[1])); - fVec15[IOTA&2047] = (fTemp2 + (fSlow2 * fRec39[0])); - fRec38[0] = fVec15[(IOTA-1445)&2047]; - fRec41[0] = ((fSlow1 * fRec40[1]) + (fSlow0 * fRec41[1])); - fVec16[IOTA&2047] = (fTemp2 + (fSlow2 * fRec41[0])); - fRec40[0] = fVec16[(IOTA-1379)&2047]; - fRec43[0] = ((fSlow1 * fRec42[1]) + (fSlow0 * fRec43[1])); - fVec17[IOTA&2047] = (fTemp2 + (fSlow2 * fRec43[0])); - fRec42[0] = fVec17[(IOTA-1300)&2047]; - fRec45[0] = ((fSlow1 * fRec44[1]) + (fSlow0 * fRec45[1])); - fVec18[IOTA&2047] = (fTemp2 + (fSlow2 * fRec45[0])); - fRec44[0] = fVec18[(IOTA-1211)&2047]; - fRec47[0] = ((fSlow1 * fRec46[1]) + (fSlow0 * fRec47[1])); - fVec19[IOTA&2047] = (fTemp2 + (fSlow2 * fRec47[0])); - fRec46[0] = fVec19[(IOTA-1139)&2047]; - float fTemp4 = (((((((fRec46[0] + fRec44[0]) + fRec42[0]) + fRec40[0]) + fRec38[0]) + fRec36[0]) + fRec34[0]) + fRec32[0]); - fVec20[IOTA&1023] = (fTemp4 + (0.5f * fRec30[1])); - fRec30[0] = fVec20[(IOTA-579)&1023]; - float fRec31 = (0 - (fTemp4 - fRec30[1])); - fVec21[IOTA&511] = (fRec31 + (0.5f * fRec28[1])); - fRec28[0] = fVec21[(IOTA-464)&511]; - float fRec29 = (fRec28[1] - fRec31); - fVec22[IOTA&511] = (fRec29 + (0.5f * fRec26[1])); - fRec26[0] = fVec22[(IOTA-364)&511]; - float fRec27 = (fRec26[1] - fRec29); - fVec23[IOTA&255] = (fRec27 + (0.5f * fRec24[1])); - fRec24[0] = fVec23[(IOTA-248)&255]; - float fRec25 = (fRec24[1] - fRec27); - output1[i] = ((fSlow4 * fTemp0) + (fSlow3 * fRec25)); - // post processing - fRec24[1] = fRec24[0]; - fRec26[1] = fRec26[0]; - fRec28[1] = fRec28[0]; - fRec30[1] = fRec30[0]; - fRec46[1] = fRec46[0]; - fRec47[1] = fRec47[0]; - fRec44[1] = fRec44[0]; - fRec45[1] = fRec45[0]; - fRec42[1] = fRec42[0]; - fRec43[1] = fRec43[0]; - fRec40[1] = fRec40[0]; - fRec41[1] = fRec41[0]; - fRec38[1] = fRec38[0]; - fRec39[1] = fRec39[0]; - fRec36[1] = fRec36[0]; - fRec37[1] = fRec37[0]; - fRec34[1] = fRec34[0]; - fRec35[1] = fRec35[0]; - fRec32[1] = fRec32[0]; - fRec33[1] = fRec33[0]; - fRec0[1] = fRec0[0]; - fRec2[1] = fRec2[0]; - fRec4[1] = fRec4[0]; - fRec6[1] = fRec6[0]; - fRec22[1] = fRec22[0]; - fRec23[1] = fRec23[0]; - fRec20[1] = fRec20[0]; - fRec21[1] = fRec21[0]; - fRec18[1] = fRec18[0]; - fRec19[1] = fRec19[0]; - fRec16[1] = fRec16[0]; - fRec17[1] = fRec17[0]; - fRec14[1] = fRec14[0]; - fRec15[1] = fRec15[0]; - fRec12[1] = fRec12[0]; - fRec13[1] = fRec13[0]; - fRec10[1] = fRec10[0]; - fRec11[1] = fRec11[0]; - fRec8[1] = fRec8[0]; - IOTA = IOTA+1; - fRec9[1] = fRec9[0]; - } - } -}; - -mydsp DSP; - -/****************************************************************************** -******************************************************************************* - - NETJACK AUDIO INTERFACE - -******************************************************************************* -*******************************************************************************/ - -//---------------------------------------------------------------------------- -// number of input and output channels -//---------------------------------------------------------------------------- - -int gNumInChans; -int gNumOutChans; - -//---------------------------------------------------------------------------- -// Jack Callbacks -//---------------------------------------------------------------------------- - -static void net_shutdown(void *) -{ - exit(1); -} - -#ifdef BENCHMARKMODE -// measuring jack performances -static __inline__ unsigned long long int rdtsc(void) -{ - unsigned long long int x; - __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x)); - return x; -} - -#define KSKIP 10 -#define KMESURE 1024 -int mesure = 0; -unsigned long long int starts[KMESURE]; -unsigned long long int stops [KMESURE]; - -#define STARTMESURE starts[mesure%KMESURE] = rdtsc(); -#define STOPMESURE stops[mesure%KMESURE] = rdtsc(); mesure = mesure+1; - -void printstats() -{ - unsigned long long int low, hi, tot; - low = hi = tot = (stops[KSKIP] - starts[KSKIP]); - - if (mesure < KMESURE) { - - for (int i = KSKIP+1; i<mesure; i++) { - unsigned long long int m = stops[i] - starts[i]; - if (m<low) low = m; - if (m>hi) hi = m; - tot += m; - } - cout << low << ' ' << tot/(mesure-KSKIP) << ' ' << hi << endl; - - } else { - - for (int i = KSKIP+1; i<KMESURE; i++) { - unsigned long long int m = stops[i] - starts[i]; - if (m<low) low = m; - if (m>hi) hi = m; - tot += m; - } - cout << low << ' ' << tot/(KMESURE-KSKIP) << ' ' << hi << endl; - - } -} - -#else - -#define STARTMESURE -#define STOPMESURE - -#endif - -static int net_process(jack_nframes_t buffer_size, - int audio_input, - float** audio_input_buffer, - int midi_input, - void** midi_input_buffer, - int audio_output, - float** audio_output_buffer, - int midi_output, - void** midi_output_buffer, - void* data) -{ - AVOIDDENORMALS; - STARTMESURE - DSP.compute(buffer_size, audio_input_buffer, audio_output_buffer); - STOPMESURE - return 0; -} - -/****************************************************************************** -******************************************************************************* - - MAIN PLAY THREAD - -******************************************************************************* -*******************************************************************************/ - -//------------------------------------------------------------------------- -// MAIN -//------------------------------------------------------------------------- - - -#define TEST_MASTER "194.5.49.5" - -int main(int argc, char *argv[]) { - - UI* interface = new CMDUI(argc, argv); - jack_net_slave_t* net; - NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; - - //Jack::JackAudioQueueAdapter audio(2, 2, 1024, 44100, NULL); - - gNumInChans = DSP.getNumInputs(); - gNumOutChans = DSP.getNumOutputs(); - - jack_slave_t request = { gNumInChans, gNumOutChans, 0, 0, DEFAULT_MTU, -1, 2 }; - jack_master_t result; - - printf("Network\n"); - - //if (audio.Open() < 0) { - // fprintf(stderr, "Cannot open audio\n"); - // return 1; - //} - - //audio.Start(); - - // Hang around forever... - //while(1) CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.25, false); - - if ((net = jack_net_slave_open(TEST_MASTER, DEFAULT_PORT, "iPhone", &request, &result)) == 0) { - fprintf(stderr, "jack remote server not running ?\n"); - return 1; - } - - jack_set_net_slave_process_callback(net, net_process, NULL); - - // We want to restart (that is "wait for available master" again) - //jack_set_net_shutdown_callback(net, net_shutdown, 0); - - DSP.init(result.sample_rate); - DSP.buildUserInterface(interface); - - if (jack_net_slave_activate(net) != 0) { - fprintf(stderr, "cannot activate net"); - return 1; - } - - int retVal = UIApplicationMain(argc, argv, nil, nil); - [pool release]; - - // Wait for application end - jack_net_slave_deactivate(net); - jack_net_slave_close(net); - - //if (audio.Close() < 0) { - // fprintf(stderr, "Cannot close audio\n"); - //} - - return retVal; -} diff --git a/macosx/iphone/iPhoneNet.xcodeproj/project.pbxproj b/macosx/iphone/iPhoneNet.xcodeproj/project.pbxproj deleted file mode 100755 index 56bc518a..00000000 --- a/macosx/iphone/iPhoneNet.xcodeproj/project.pbxproj +++ /dev/null @@ -1,1298 +0,0 @@ -// !$*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 */; }; - 28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; }; - 4B0772210F54018C000DC657 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; }; - 4B0772240F54018C000DC657 /* JackMachThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93550F49ACFC00D3626B /* JackMachThread.cpp */; }; - 4B0772250F54018C000DC657 /* JackMachTime.c in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93870F49B0E300D3626B /* JackMachTime.c */; }; - 4B0772260F54018C000DC657 /* JackNetAPI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A930D0F49AB2A00D3626B /* JackNetAPI.cpp */; }; - 4B0772270F54018C000DC657 /* JackNetInterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A930F0F49AB2F00D3626B /* JackNetInterface.cpp */; }; - 4B0772280F54018C000DC657 /* JackNetTool.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93110F49AB3400D3626B /* JackNetTool.cpp */; }; - 4B0772290F54018C000DC657 /* JackNetUnixSocket.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93510F49ACF300D3626B /* JackNetUnixSocket.cpp */; }; - 4B07722A0F54018C000DC657 /* JackPosixThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A933B0F49AC4500D3626B /* JackPosixThread.cpp */; }; - 4B07722C0F54018C000DC657 /* JackAudioAdapterInterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF1360E0F4B0B4C00218A3F /* JackAudioAdapterInterface.cpp */; }; - 4B07722D0F54018C000DC657 /* JackResampler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF1364B0F4B0F7700218A3F /* JackResampler.cpp */; }; - 4B07722E0F54018C000DC657 /* ringbuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 4BF136540F4B0F9F00218A3F /* ringbuffer.c */; }; - 4B0772310F54018C000DC657 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 4B0772320F54018C000DC657 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 4B0772330F54018C000DC657 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765FC0DF74451002DB57D /* CoreGraphics.framework */; }; - 4B0772340F54018C000DC657 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B1A95750F49CEAB00D3626B /* AudioToolbox.framework */; }; - 4B07724A0F54021B000DC657 /* main_slave.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4B0772490F54021B000DC657 /* main_slave.mm */; }; - 4B0773860F541EE2000DC657 /* iPhoneNetAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B0773850F541EE2000DC657 /* iPhoneNetAppDelegate.m */; }; - 4B0773870F541EE2000DC657 /* iPhoneNetAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B0773850F541EE2000DC657 /* iPhoneNetAppDelegate.m */; }; - 4B0773880F541EE2000DC657 /* iPhoneNetAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B0773850F541EE2000DC657 /* iPhoneNetAppDelegate.m */; }; - 4B1A94140F49BE2C00D3626B /* iPhoneNet_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = 32CA4F630368D1EE00C91783 /* iPhoneNet_Prefix.pch */; }; - 4B1A94150F49BE2F00D3626B /* JackMachThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93550F49ACFC00D3626B /* JackMachThread.cpp */; }; - 4B1A94160F49BE3000D3626B /* JackMachThread.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B1A93540F49ACFC00D3626B /* JackMachThread.h */; }; - 4B1A94170F49BE3100D3626B /* JackMachTime.c in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93870F49B0E300D3626B /* JackMachTime.c */; }; - 4B1A94180F49BE3100D3626B /* JackNetAPI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A930D0F49AB2A00D3626B /* JackNetAPI.cpp */; }; - 4B1A94190F49BE3300D3626B /* JackNetInterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A930F0F49AB2F00D3626B /* JackNetInterface.cpp */; }; - 4B1A941A0F49BE3300D3626B /* JackNetTool.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93110F49AB3400D3626B /* JackNetTool.cpp */; }; - 4B1A941B0F49BE3400D3626B /* JackNetUnixSocket.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93510F49ACF300D3626B /* JackNetUnixSocket.cpp */; }; - 4B1A941C0F49BE3500D3626B /* JackNetUnixSocket.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B1A93520F49ACF300D3626B /* JackNetUnixSocket.h */; }; - 4B1A941D0F49BE3500D3626B /* JackPosixThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A933B0F49AC4500D3626B /* JackPosixThread.cpp */; }; - 4B1A941E0F49BE3600D3626B /* JackPosixThread.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B1A933C0F49AC4500D3626B /* JackPosixThread.h */; }; - 4B1A94540F49C03300D3626B /* JackMachThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93550F49ACFC00D3626B /* JackMachThread.cpp */; }; - 4B1A94550F49C03300D3626B /* JackMachTime.c in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93870F49B0E300D3626B /* JackMachTime.c */; }; - 4B1A94560F49C03400D3626B /* JackNetAPI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A930D0F49AB2A00D3626B /* JackNetAPI.cpp */; }; - 4B1A94570F49C03500D3626B /* JackNetInterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A930F0F49AB2F00D3626B /* JackNetInterface.cpp */; }; - 4B1A94580F49C03600D3626B /* JackNetTool.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93110F49AB3400D3626B /* JackNetTool.cpp */; }; - 4B1A94590F49C03600D3626B /* JackNetUnixSocket.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93510F49ACF300D3626B /* JackNetUnixSocket.cpp */; }; - 4B1A945A0F49C03600D3626B /* JackPosixThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A933B0F49AC4500D3626B /* JackPosixThread.cpp */; }; - 4B1A95760F49CEAB00D3626B /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B1A95750F49CEAB00D3626B /* AudioToolbox.framework */; }; - 4B2791880F72570C000536B7 /* JackGlobals.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B2791870F72570C000536B7 /* JackGlobals.cpp */; }; - 4B2791890F72570C000536B7 /* JackGlobals.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B2791870F72570C000536B7 /* JackGlobals.cpp */; }; - 4B27918A0F72570C000536B7 /* JackGlobals.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B2791870F72570C000536B7 /* JackGlobals.cpp */; }; - 4B27918B0F72570C000536B7 /* JackGlobals.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B2791870F72570C000536B7 /* JackGlobals.cpp */; }; - 4B41469810BD3C4300C12F0C /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; }; - 4B41469A10BD3C4300C12F0C /* JackMachThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93550F49ACFC00D3626B /* JackMachThread.cpp */; }; - 4B41469B10BD3C4300C12F0C /* JackMachTime.c in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93870F49B0E300D3626B /* JackMachTime.c */; }; - 4B41469C10BD3C4300C12F0C /* JackNetAPI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A930D0F49AB2A00D3626B /* JackNetAPI.cpp */; }; - 4B41469D10BD3C4300C12F0C /* JackNetInterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A930F0F49AB2F00D3626B /* JackNetInterface.cpp */; }; - 4B41469E10BD3C4300C12F0C /* JackNetTool.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93110F49AB3400D3626B /* JackNetTool.cpp */; }; - 4B41469F10BD3C4300C12F0C /* JackNetUnixSocket.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93510F49ACF300D3626B /* JackNetUnixSocket.cpp */; }; - 4B4146A010BD3C4300C12F0C /* JackPosixThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A933B0F49AC4500D3626B /* JackPosixThread.cpp */; }; - 4B4146A210BD3C4300C12F0C /* JackAudioAdapterInterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF1360E0F4B0B4C00218A3F /* JackAudioAdapterInterface.cpp */; }; - 4B4146A310BD3C4300C12F0C /* JackResampler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF1364B0F4B0F7700218A3F /* JackResampler.cpp */; }; - 4B4146A410BD3C4300C12F0C /* ringbuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 4BF136540F4B0F9F00218A3F /* ringbuffer.c */; }; - 4B4146A510BD3C4300C12F0C /* iPhoneNetAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B0773850F541EE2000DC657 /* iPhoneNetAppDelegate.m */; }; - 4B4146A610BD3C4300C12F0C /* freeverb.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4BBDC8F90F5420C000465F9C /* freeverb.mm */; }; - 4B4146A710BD3C4300C12F0C /* JackGlobals.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B2791870F72570C000536B7 /* JackGlobals.cpp */; }; - 4B4146A910BD3C4300C12F0C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 4B4146AA10BD3C4300C12F0C /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 4B4146AB10BD3C4300C12F0C /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765FC0DF74451002DB57D /* CoreGraphics.framework */; }; - 4B4146AC10BD3C4300C12F0C /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B1A95750F49CEAB00D3626B /* AudioToolbox.framework */; }; - 4B6B712C114BAE9A00ED9788 /* CAHostTimeBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15E2411356A3E00B36B9A /* CAHostTimeBase.cpp */; }; - 4B9CB1371136CA99007DE01A /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 4B9CB1361136CA99007DE01A /* icon.png */; }; - 4B9CB1381136CA99007DE01A /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 4B9CB1361136CA99007DE01A /* icon.png */; }; - 4B9CB1391136CA99007DE01A /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 4B9CB1361136CA99007DE01A /* icon.png */; }; - 4B9CB13A1136CA99007DE01A /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 4B9CB1361136CA99007DE01A /* icon.png */; }; - 4B9CB13B1136CA99007DE01A /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 4B9CB1361136CA99007DE01A /* icon.png */; }; - 4B9CB13C1136CA99007DE01A /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 4B9CB1361136CA99007DE01A /* icon.png */; }; - 4BBDC8FA0F5420C000465F9C /* freeverb.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4BBDC8F90F5420C000465F9C /* freeverb.mm */; }; - 4BC9C1F71135AB2800D22670 /* main_master.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4B0772500F54022D000DC657 /* main_master.mm */; }; - 4BCB37B6112D647C008C7BC1 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; }; - 4BCB37C7112D647C008C7BC1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 4BCB37C8112D647C008C7BC1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 4BCB37C9112D647C008C7BC1 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765FC0DF74451002DB57D /* CoreGraphics.framework */; }; - 4BCB37CA112D647C008C7BC1 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B1A95750F49CEAB00D3626B /* AudioToolbox.framework */; }; - 4BCB37D9112D64D8008C7BC1 /* iphone-faust.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4BCB37D8112D64D8008C7BC1 /* iphone-faust.mm */; }; - 4BCF75DA10BC2FD90082C526 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; }; - 4BCF75DC10BC2FD90082C526 /* JackMachThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93550F49ACFC00D3626B /* JackMachThread.cpp */; }; - 4BCF75DD10BC2FD90082C526 /* JackMachTime.c in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93870F49B0E300D3626B /* JackMachTime.c */; }; - 4BCF75DE10BC2FD90082C526 /* JackNetAPI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A930D0F49AB2A00D3626B /* JackNetAPI.cpp */; }; - 4BCF75DF10BC2FD90082C526 /* JackNetInterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A930F0F49AB2F00D3626B /* JackNetInterface.cpp */; }; - 4BCF75E010BC2FD90082C526 /* JackNetTool.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93110F49AB3400D3626B /* JackNetTool.cpp */; }; - 4BCF75E110BC2FD90082C526 /* JackNetUnixSocket.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93510F49ACF300D3626B /* JackNetUnixSocket.cpp */; }; - 4BCF75E210BC2FD90082C526 /* JackPosixThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A933B0F49AC4500D3626B /* JackPosixThread.cpp */; }; - 4BCF75E410BC2FD90082C526 /* JackAudioAdapterInterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF1360E0F4B0B4C00218A3F /* JackAudioAdapterInterface.cpp */; }; - 4BCF75E510BC2FD90082C526 /* JackResampler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF1364B0F4B0F7700218A3F /* JackResampler.cpp */; }; - 4BCF75E610BC2FD90082C526 /* ringbuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 4BF136540F4B0F9F00218A3F /* ringbuffer.c */; }; - 4BCF75E710BC2FD90082C526 /* iPhoneNetAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B0773850F541EE2000DC657 /* iPhoneNetAppDelegate.m */; }; - 4BCF75E910BC2FD90082C526 /* JackGlobals.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B2791870F72570C000536B7 /* JackGlobals.cpp */; }; - 4BCF75EB10BC2FD90082C526 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 4BCF75EC10BC2FD90082C526 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 4BCF75ED10BC2FD90082C526 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765FC0DF74451002DB57D /* CoreGraphics.framework */; }; - 4BCF75EE10BC2FD90082C526 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B1A95750F49CEAB00D3626B /* AudioToolbox.framework */; }; - 4BCF75F710BC30140082C526 /* audio_thru.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4BCF75F610BC30140082C526 /* audio_thru.mm */; }; - 4BDFCD3D113DB6B700D77992 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; }; - 4BDFCD3E113DB6B700D77992 /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 4B9CB1361136CA99007DE01A /* icon.png */; }; - 4BDFCD4A113DB6B700D77992 /* main_slave.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4B0772490F54021B000DC657 /* main_slave.mm */; }; - 4BDFCD4B113DB6B700D77992 /* iPhoneNetAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B0773850F541EE2000DC657 /* iPhoneNetAppDelegate.m */; }; - 4BDFCD4D113DB6B700D77992 /* CAHostTimeBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15E2411356A3E00B36B9A /* CAHostTimeBase.cpp */; }; - 4BDFCD4E113DB6B700D77992 /* TiPhoneCoreAudioRenderer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15F7711357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp */; }; - 4BDFCD50113DB6B700D77992 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 4BDFCD51113DB6B700D77992 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 4BDFCD52113DB6B700D77992 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765FC0DF74451002DB57D /* CoreGraphics.framework */; }; - 4BDFCD53113DB6B700D77992 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B1A95750F49CEAB00D3626B /* AudioToolbox.framework */; }; - 4BF1360F0F4B0B4C00218A3F /* JackAudioAdapterInterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF1360E0F4B0B4C00218A3F /* JackAudioAdapterInterface.cpp */; }; - 4BF136100F4B0B4C00218A3F /* JackAudioAdapterInterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF1360E0F4B0B4C00218A3F /* JackAudioAdapterInterface.cpp */; }; - 4BF136130F4B0B5E00218A3F /* JackAudioAdapterInterface.h in Headers */ = {isa = PBXBuildFile; fileRef = 4BF136120F4B0B5E00218A3F /* JackAudioAdapterInterface.h */; }; - 4BF1364D0F4B0F7700218A3F /* JackResampler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF1364B0F4B0F7700218A3F /* JackResampler.cpp */; }; - 4BF1364E0F4B0F7700218A3F /* JackResampler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF1364B0F4B0F7700218A3F /* JackResampler.cpp */; }; - 4BF1364F0F4B0F7700218A3F /* JackResampler.h in Headers */ = {isa = PBXBuildFile; fileRef = 4BF1364C0F4B0F7700218A3F /* JackResampler.h */; }; - 4BF136550F4B0F9F00218A3F /* ringbuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 4BF136540F4B0F9F00218A3F /* ringbuffer.c */; }; - 4BF136560F4B0F9F00218A3F /* ringbuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 4BF136540F4B0F9F00218A3F /* ringbuffer.c */; }; - 4BF15E2511356A3E00B36B9A /* CAHostTimeBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15E2411356A3E00B36B9A /* CAHostTimeBase.cpp */; }; - 4BF15E2611356A3E00B36B9A /* CAHostTimeBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15E2411356A3E00B36B9A /* CAHostTimeBase.cpp */; }; - 4BF15E2711356A3E00B36B9A /* CAHostTimeBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15E2411356A3E00B36B9A /* CAHostTimeBase.cpp */; }; - 4BF15E2811356A3E00B36B9A /* CAHostTimeBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15E2411356A3E00B36B9A /* CAHostTimeBase.cpp */; }; - 4BF15E2911356A3E00B36B9A /* CAHostTimeBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15E2411356A3E00B36B9A /* CAHostTimeBase.cpp */; }; - 4BF15E2A11356A3E00B36B9A /* CAHostTimeBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15E2411356A3E00B36B9A /* CAHostTimeBase.cpp */; }; - 4BF15F7811357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15F7711357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp */; }; - 4BF15F7911357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15F7711357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp */; }; - 4BF15F7A11357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15F7711357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp */; }; - 4BF15F7B11357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15F7711357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp */; }; - 4BF15F7C11357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15F7711357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp */; }; - 4BF15F7D11357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF15F7711357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp */; }; - 4BFF45600F4D5D9700106083 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; }; - 4BFF45630F4D5D9700106083 /* JackMachThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93550F49ACFC00D3626B /* JackMachThread.cpp */; }; - 4BFF45640F4D5D9700106083 /* JackMachTime.c in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93870F49B0E300D3626B /* JackMachTime.c */; }; - 4BFF45650F4D5D9700106083 /* JackNetAPI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A930D0F49AB2A00D3626B /* JackNetAPI.cpp */; }; - 4BFF45660F4D5D9700106083 /* JackNetInterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A930F0F49AB2F00D3626B /* JackNetInterface.cpp */; }; - 4BFF45670F4D5D9700106083 /* JackNetTool.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93110F49AB3400D3626B /* JackNetTool.cpp */; }; - 4BFF45680F4D5D9700106083 /* JackNetUnixSocket.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A93510F49ACF300D3626B /* JackNetUnixSocket.cpp */; }; - 4BFF45690F4D5D9700106083 /* JackPosixThread.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4B1A933B0F49AC4500D3626B /* JackPosixThread.cpp */; }; - 4BFF456B0F4D5D9700106083 /* JackAudioAdapterInterface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF1360E0F4B0B4C00218A3F /* JackAudioAdapterInterface.cpp */; }; - 4BFF456C0F4D5D9700106083 /* JackResampler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4BF1364B0F4B0F7700218A3F /* JackResampler.cpp */; }; - 4BFF456D0F4D5D9700106083 /* ringbuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 4BF136540F4B0F9F00218A3F /* ringbuffer.c */; }; - 4BFF45700F4D5D9700106083 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; - 4BFF45710F4D5D9700106083 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; - 4BFF45720F4D5D9700106083 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765FC0DF74451002DB57D /* CoreGraphics.framework */; }; - 4BFF45730F4D5D9700106083 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B1A95750F49CEAB00D3626B /* AudioToolbox.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - 1D6058910D05DD3D006BFB54 /* NetJackSlave.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NetJackSlave.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; }; - 28AD733E0D9D9553002E5188 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; }; - 32CA4F630368D1EE00C91783 /* iPhoneNet_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iPhoneNet_Prefix.pch; sourceTree = "<group>"; }; - 4B0772380F54018C000DC657 /* NetJackMaster.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NetJackMaster.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 4B0772490F54021B000DC657 /* main_slave.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = main_slave.mm; sourceTree = SOURCE_ROOT; }; - 4B0772500F54022D000DC657 /* main_master.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = main_master.mm; sourceTree = SOURCE_ROOT; }; - 4B0773840F541EE2000DC657 /* iPhoneNetAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iPhoneNetAppDelegate.h; sourceTree = "<group>"; }; - 4B0773850F541EE2000DC657 /* iPhoneNetAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = iPhoneNetAppDelegate.m; sourceTree = "<group>"; }; - 4B1A930D0F49AB2A00D3626B /* JackNetAPI.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JackNetAPI.cpp; path = ../../common/JackNetAPI.cpp; sourceTree = SOURCE_ROOT; }; - 4B1A930F0F49AB2F00D3626B /* JackNetInterface.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JackNetInterface.cpp; path = ../../common/JackNetInterface.cpp; sourceTree = SOURCE_ROOT; }; - 4B1A93110F49AB3400D3626B /* JackNetTool.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JackNetTool.cpp; path = ../../common/JackNetTool.cpp; sourceTree = SOURCE_ROOT; }; - 4B1A933B0F49AC4500D3626B /* JackPosixThread.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JackPosixThread.cpp; path = ../../posix/JackPosixThread.cpp; sourceTree = SOURCE_ROOT; }; - 4B1A933C0F49AC4500D3626B /* JackPosixThread.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JackPosixThread.h; path = ../../posix/JackPosixThread.h; sourceTree = SOURCE_ROOT; }; - 4B1A93510F49ACF300D3626B /* JackNetUnixSocket.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JackNetUnixSocket.cpp; path = ../../posix/JackNetUnixSocket.cpp; sourceTree = SOURCE_ROOT; }; - 4B1A93520F49ACF300D3626B /* JackNetUnixSocket.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JackNetUnixSocket.h; path = ../../posix/JackNetUnixSocket.h; sourceTree = SOURCE_ROOT; }; - 4B1A93540F49ACFC00D3626B /* JackMachThread.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JackMachThread.h; path = ../JackMachThread.h; sourceTree = SOURCE_ROOT; }; - 4B1A93550F49ACFC00D3626B /* JackMachThread.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JackMachThread.cpp; path = ../JackMachThread.cpp; sourceTree = SOURCE_ROOT; }; - 4B1A93870F49B0E300D3626B /* JackMachTime.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = JackMachTime.c; path = ../JackMachTime.c; sourceTree = SOURCE_ROOT; }; - 4B1A95750F49CEAB00D3626B /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/System/Library/Frameworks/AudioToolbox.framework; sourceTree = "<absolute>"; }; - 4B2791870F72570C000536B7 /* JackGlobals.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JackGlobals.cpp; path = ../../common/JackGlobals.cpp; sourceTree = SOURCE_ROOT; }; - 4B4146B010BD3C4300C12F0C /* iPhoneFaustNet.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iPhoneFaustNet.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 4B9CB1361136CA99007DE01A /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon.png; sourceTree = SOURCE_ROOT; }; - 4BBDC8F90F5420C000465F9C /* freeverb.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = freeverb.mm; sourceTree = SOURCE_ROOT; }; - 4BC9C1D31135AA1800D22670 /* iPhoneNetMasterAppl-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "iPhoneNetMasterAppl-Info.plist"; sourceTree = "<group>"; }; - 4BCB37CE112D647C008C7BC1 /* iPhoneFaust.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iPhoneFaust.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 4BCB37D8112D64D8008C7BC1 /* iphone-faust.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = "iphone-faust.mm"; sourceTree = SOURCE_ROOT; }; - 4BCF75F210BC2FD90082C526 /* iPhoneThruNet.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iPhoneThruNet.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 4BCF75F610BC30140082C526 /* audio_thru.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = audio_thru.mm; sourceTree = SOURCE_ROOT; }; - 4BDFCD57113DB6B700D77992 /* NetJackSlave.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NetJackSlave.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 4BF1360E0F4B0B4C00218A3F /* JackAudioAdapterInterface.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JackAudioAdapterInterface.cpp; path = ../../common/JackAudioAdapterInterface.cpp; sourceTree = SOURCE_ROOT; }; - 4BF136120F4B0B5E00218A3F /* JackAudioAdapterInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JackAudioAdapterInterface.h; path = ../../common/JackAudioAdapterInterface.h; sourceTree = SOURCE_ROOT; }; - 4BF1364B0F4B0F7700218A3F /* JackResampler.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JackResampler.cpp; path = ../../common/JackResampler.cpp; sourceTree = SOURCE_ROOT; }; - 4BF1364C0F4B0F7700218A3F /* JackResampler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JackResampler.h; path = ../../common/JackResampler.h; sourceTree = SOURCE_ROOT; }; - 4BF136540F4B0F9F00218A3F /* ringbuffer.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ringbuffer.c; path = ../../common/ringbuffer.c; sourceTree = SOURCE_ROOT; }; - 4BF15E2411356A3E00B36B9A /* CAHostTimeBase.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CAHostTimeBase.cpp; path = /Developer/Extras/CoreAudio/PublicUtility/CAHostTimeBase.cpp; sourceTree = "<absolute>"; }; - 4BF15F7711357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = TiPhoneCoreAudioRenderer.cpp; path = ../coreaudio/TiPhoneCoreAudioRenderer.cpp; sourceTree = SOURCE_ROOT; }; - 4BFF45120F4D59DB00106083 /* libjacknet.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libjacknet.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 4BFF45770F4D5D9700106083 /* iPhoneFaustNet.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iPhoneFaustNet.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 1D60588F0D05DD3D006BFB54 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */, - 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */, - 288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */, - 4B1A95760F49CEAB00D3626B /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4B0772300F54018C000DC657 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 4B0772310F54018C000DC657 /* Foundation.framework in Frameworks */, - 4B0772320F54018C000DC657 /* UIKit.framework in Frameworks */, - 4B0772330F54018C000DC657 /* CoreGraphics.framework in Frameworks */, - 4B0772340F54018C000DC657 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4B1A940E0F49BDE000D3626B /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4B4146A810BD3C4300C12F0C /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 4B4146A910BD3C4300C12F0C /* Foundation.framework in Frameworks */, - 4B4146AA10BD3C4300C12F0C /* UIKit.framework in Frameworks */, - 4B4146AB10BD3C4300C12F0C /* CoreGraphics.framework in Frameworks */, - 4B4146AC10BD3C4300C12F0C /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4BCB37C6112D647C008C7BC1 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 4BCB37C7112D647C008C7BC1 /* Foundation.framework in Frameworks */, - 4BCB37C8112D647C008C7BC1 /* UIKit.framework in Frameworks */, - 4BCB37C9112D647C008C7BC1 /* CoreGraphics.framework in Frameworks */, - 4BCB37CA112D647C008C7BC1 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4BCF75EA10BC2FD90082C526 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 4BCF75EB10BC2FD90082C526 /* Foundation.framework in Frameworks */, - 4BCF75EC10BC2FD90082C526 /* UIKit.framework in Frameworks */, - 4BCF75ED10BC2FD90082C526 /* CoreGraphics.framework in Frameworks */, - 4BCF75EE10BC2FD90082C526 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4BDFCD4F113DB6B700D77992 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 4BDFCD50113DB6B700D77992 /* Foundation.framework in Frameworks */, - 4BDFCD51113DB6B700D77992 /* UIKit.framework in Frameworks */, - 4BDFCD52113DB6B700D77992 /* CoreGraphics.framework in Frameworks */, - 4BDFCD53113DB6B700D77992 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4BFF456F0F4D5D9700106083 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 4BFF45700F4D5D9700106083 /* Foundation.framework in Frameworks */, - 4BFF45710F4D5D9700106083 /* UIKit.framework in Frameworks */, - 4BFF45720F4D5D9700106083 /* CoreGraphics.framework in Frameworks */, - 4BFF45730F4D5D9700106083 /* AudioToolbox.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 19C28FACFE9D520D11CA2CBB /* Products */ = { - isa = PBXGroup; - children = ( - 1D6058910D05DD3D006BFB54 /* NetJackSlave.app */, - 4BFF45120F4D59DB00106083 /* libjacknet.a */, - 4BFF45770F4D5D9700106083 /* iPhoneFaustNet.app */, - 4B0772380F54018C000DC657 /* NetJackMaster.app */, - 4BCF75F210BC2FD90082C526 /* iPhoneThruNet.app */, - 4B4146B010BD3C4300C12F0C /* iPhoneFaustNet.app */, - 4BCB37CE112D647C008C7BC1 /* iPhoneFaust.app */, - 4BDFCD57113DB6B700D77992 /* NetJackSlave.app */, - ); - name = Products; - sourceTree = "<group>"; - }; - 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { - isa = PBXGroup; - children = ( - 4BCB37D8112D64D8008C7BC1 /* iphone-faust.mm */, - 4BF15E2411356A3E00B36B9A /* CAHostTimeBase.cpp */, - 4BF15F7711357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp */, - 29B97315FDCFA39411CA2CEA /* Other Sources */, - 29B97323FDCFA39411CA2CEA /* Frameworks */, - 19C28FACFE9D520D11CA2CBB /* Products */, - ); - name = CustomTemplate; - sourceTree = "<group>"; - }; - 29B97315FDCFA39411CA2CEA /* Other Sources */ = { - isa = PBXGroup; - children = ( - 29B97317FDCFA39411CA2CEA /* Resources */, - 4BCF75F610BC30140082C526 /* audio_thru.mm */, - 4BBDC8F90F5420C000465F9C /* freeverb.mm */, - 4B0773840F541EE2000DC657 /* iPhoneNetAppDelegate.h */, - 4B0773850F541EE2000DC657 /* iPhoneNetAppDelegate.m */, - 4BF136540F4B0F9F00218A3F /* ringbuffer.c */, - 4BF1364B0F4B0F7700218A3F /* JackResampler.cpp */, - 4BF1364C0F4B0F7700218A3F /* JackResampler.h */, - 4BF1360E0F4B0B4C00218A3F /* JackAudioAdapterInterface.cpp */, - 4BF136120F4B0B5E00218A3F /* JackAudioAdapterInterface.h */, - 4B1A93870F49B0E300D3626B /* JackMachTime.c */, - 4B1A93540F49ACFC00D3626B /* JackMachThread.h */, - 4B1A93550F49ACFC00D3626B /* JackMachThread.cpp */, - 4B1A93510F49ACF300D3626B /* JackNetUnixSocket.cpp */, - 4B1A93520F49ACF300D3626B /* JackNetUnixSocket.h */, - 4B1A933B0F49AC4500D3626B /* JackPosixThread.cpp */, - 4B1A933C0F49AC4500D3626B /* JackPosixThread.h */, - 4B1A93110F49AB3400D3626B /* JackNetTool.cpp */, - 4B1A930F0F49AB2F00D3626B /* JackNetInterface.cpp */, - 4B1A930D0F49AB2A00D3626B /* JackNetAPI.cpp */, - 4B2791870F72570C000536B7 /* JackGlobals.cpp */, - 32CA4F630368D1EE00C91783 /* iPhoneNet_Prefix.pch */, - 4B0772490F54021B000DC657 /* main_slave.mm */, - 4B0772500F54022D000DC657 /* main_master.mm */, - ); - name = "Other Sources"; - sourceTree = "<group>"; - }; - 29B97317FDCFA39411CA2CEA /* Resources */ = { - isa = PBXGroup; - children = ( - 4B9CB1361136CA99007DE01A /* icon.png */, - 28AD733E0D9D9553002E5188 /* MainWindow.xib */, - 8D1107310486CEB800E47090 /* Info.plist */, - 4BC9C1D31135AA1800D22670 /* iPhoneNetMasterAppl-Info.plist */, - ); - name = Resources; - sourceTree = "<group>"; - }; - 29B97323FDCFA39411CA2CEA /* Frameworks */ = { - isa = PBXGroup; - children = ( - 4B1A95750F49CEAB00D3626B /* AudioToolbox.framework */, - 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */, - 1D30AB110D05D00D00671497 /* Foundation.framework */, - 288765FC0DF74451002DB57D /* CoreGraphics.framework */, - ); - name = Frameworks; - sourceTree = "<group>"; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 4B1A940C0F49BDE000D3626B /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 4B1A94140F49BE2C00D3626B /* iPhoneNet_Prefix.pch in Headers */, - 4B1A94160F49BE3000D3626B /* JackMachThread.h in Headers */, - 4B1A941C0F49BE3500D3626B /* JackNetUnixSocket.h in Headers */, - 4B1A941E0F49BE3600D3626B /* JackPosixThread.h in Headers */, - 4BF136130F4B0B5E00218A3F /* JackAudioAdapterInterface.h in Headers */, - 4BF1364F0F4B0F7700218A3F /* JackResampler.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 1D6058900D05DD3D006BFB54 /* iPhoneNetSlave */ = { - isa = PBXNativeTarget; - buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "iPhoneNetSlave" */; - buildPhases = ( - 1D60588D0D05DD3D006BFB54 /* Resources */, - 1D60588E0D05DD3D006BFB54 /* Sources */, - 1D60588F0D05DD3D006BFB54 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = iPhoneNetSlave; - productName = iPhoneNet; - productReference = 1D6058910D05DD3D006BFB54 /* NetJackSlave.app */; - productType = "com.apple.product-type.application"; - }; - 4B07721F0F54018C000DC657 /* iPhoneNetMaster */ = { - isa = PBXNativeTarget; - buildConfigurationList = 4B0772350F54018C000DC657 /* Build configuration list for PBXNativeTarget "iPhoneNetMaster" */; - buildPhases = ( - 4B0772200F54018C000DC657 /* Resources */, - 4B0772220F54018C000DC657 /* Sources */, - 4B0772300F54018C000DC657 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = iPhoneNetMaster; - productName = iPhoneNet; - productReference = 4B0772380F54018C000DC657 /* NetJackMaster.app */; - productType = "com.apple.product-type.application"; - }; - 4B1A940F0F49BDE000D3626B /* libjacknet */ = { - isa = PBXNativeTarget; - buildConfigurationList = 4B1A94130F49BDFF00D3626B /* Build configuration list for PBXNativeTarget "libjacknet" */; - buildPhases = ( - 4B1A940C0F49BDE000D3626B /* Headers */, - 4B1A940D0F49BDE000D3626B /* Sources */, - 4B1A940E0F49BDE000D3626B /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = libjacknet; - productName = jacknet; - productReference = 4BFF45120F4D59DB00106083 /* libjacknet.a */; - productType = "com.apple.product-type.library.static"; - }; - 4B41469610BD3C4300C12F0C /* iPhoneFaustNet Distribution */ = { - isa = PBXNativeTarget; - buildConfigurationList = 4B4146AD10BD3C4300C12F0C /* Build configuration list for PBXNativeTarget "iPhoneFaustNet Distribution" */; - buildPhases = ( - 4B41469710BD3C4300C12F0C /* Resources */, - 4B41469910BD3C4300C12F0C /* Sources */, - 4B4146A810BD3C4300C12F0C /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "iPhoneFaustNet Distribution"; - productName = iPhoneNet; - productReference = 4B4146B010BD3C4300C12F0C /* iPhoneFaustNet.app */; - productType = "com.apple.product-type.application"; - }; - 4BCB37B4112D647C008C7BC1 /* iPhoneFaust */ = { - isa = PBXNativeTarget; - buildConfigurationList = 4BCB37CB112D647C008C7BC1 /* Build configuration list for PBXNativeTarget "iPhoneFaust" */; - buildPhases = ( - 4BCB37B5112D647C008C7BC1 /* Resources */, - 4BCB37B7112D647C008C7BC1 /* Sources */, - 4BCB37C6112D647C008C7BC1 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = iPhoneFaust; - productName = iPhoneNet; - productReference = 4BCB37CE112D647C008C7BC1 /* iPhoneFaust.app */; - productType = "com.apple.product-type.application"; - }; - 4BCF75D810BC2FD90082C526 /* iPhoneThruNet */ = { - isa = PBXNativeTarget; - buildConfigurationList = 4BCF75EF10BC2FD90082C526 /* Build configuration list for PBXNativeTarget "iPhoneThruNet" */; - buildPhases = ( - 4BCF75D910BC2FD90082C526 /* Resources */, - 4BCF75DB10BC2FD90082C526 /* Sources */, - 4BCF75EA10BC2FD90082C526 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = iPhoneThruNet; - productName = iPhoneNet; - productReference = 4BCF75F210BC2FD90082C526 /* iPhoneThruNet.app */; - productType = "com.apple.product-type.application"; - }; - 4BDFCD3B113DB6B700D77992 /* iPhoneNetSlaveLib */ = { - isa = PBXNativeTarget; - buildConfigurationList = 4BDFCD54113DB6B700D77992 /* Build configuration list for PBXNativeTarget "iPhoneNetSlaveLib" */; - buildPhases = ( - 4BDFCD3C113DB6B700D77992 /* Resources */, - 4BDFCD3F113DB6B700D77992 /* Sources */, - 4BDFCD4F113DB6B700D77992 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = iPhoneNetSlaveLib; - productName = iPhoneNet; - productReference = 4BDFCD57113DB6B700D77992 /* NetJackSlave.app */; - productType = "com.apple.product-type.application"; - }; - 4BFF455E0F4D5D9700106083 /* iPhoneFaustNet */ = { - isa = PBXNativeTarget; - buildConfigurationList = 4BFF45740F4D5D9700106083 /* Build configuration list for PBXNativeTarget "iPhoneFaustNet" */; - buildPhases = ( - 4BFF455F0F4D5D9700106083 /* Resources */, - 4BFF45610F4D5D9700106083 /* Sources */, - 4BFF456F0F4D5D9700106083 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = iPhoneFaustNet; - productName = iPhoneNet; - productReference = 4BFF45770F4D5D9700106083 /* iPhoneFaustNet.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 "iPhoneNet" */; - compatibilityVersion = "Xcode 3.1"; - developmentRegion = English; - hasScannedForEncodings = 1; - knownRegions = ( - English, - Japanese, - French, - German, - ); - mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 4B07721F0F54018C000DC657 /* iPhoneNetMaster */, - 1D6058900D05DD3D006BFB54 /* iPhoneNetSlave */, - 4BDFCD3B113DB6B700D77992 /* iPhoneNetSlaveLib */, - 4BFF455E0F4D5D9700106083 /* iPhoneFaustNet */, - 4BCF75D810BC2FD90082C526 /* iPhoneThruNet */, - 4B41469610BD3C4300C12F0C /* iPhoneFaustNet Distribution */, - 4BCB37B4112D647C008C7BC1 /* iPhoneFaust */, - 4B1A940F0F49BDE000D3626B /* libjacknet */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 1D60588D0D05DD3D006BFB54 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */, - 4B9CB1381136CA99007DE01A /* icon.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4B0772200F54018C000DC657 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4B0772210F54018C000DC657 /* MainWindow.xib in Resources */, - 4B9CB1371136CA99007DE01A /* icon.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4B41469710BD3C4300C12F0C /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4B41469810BD3C4300C12F0C /* MainWindow.xib in Resources */, - 4B9CB13B1136CA99007DE01A /* icon.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4BCB37B5112D647C008C7BC1 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4BCB37B6112D647C008C7BC1 /* MainWindow.xib in Resources */, - 4B9CB13C1136CA99007DE01A /* icon.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4BCF75D910BC2FD90082C526 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4BCF75DA10BC2FD90082C526 /* MainWindow.xib in Resources */, - 4B9CB13A1136CA99007DE01A /* icon.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4BDFCD3C113DB6B700D77992 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4BDFCD3D113DB6B700D77992 /* MainWindow.xib in Resources */, - 4BDFCD3E113DB6B700D77992 /* icon.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4BFF455F0F4D5D9700106083 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4BFF45600F4D5D9700106083 /* MainWindow.xib in Resources */, - 4B9CB1391136CA99007DE01A /* icon.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 1D60588E0D05DD3D006BFB54 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4B1A94540F49C03300D3626B /* JackMachThread.cpp in Sources */, - 4B1A94550F49C03300D3626B /* JackMachTime.c in Sources */, - 4B1A94560F49C03400D3626B /* JackNetAPI.cpp in Sources */, - 4B1A94570F49C03500D3626B /* JackNetInterface.cpp in Sources */, - 4B1A94580F49C03600D3626B /* JackNetTool.cpp in Sources */, - 4B1A94590F49C03600D3626B /* JackNetUnixSocket.cpp in Sources */, - 4B1A945A0F49C03600D3626B /* JackPosixThread.cpp in Sources */, - 4BF1360F0F4B0B4C00218A3F /* JackAudioAdapterInterface.cpp in Sources */, - 4BF1364D0F4B0F7700218A3F /* JackResampler.cpp in Sources */, - 4BF136550F4B0F9F00218A3F /* ringbuffer.c in Sources */, - 4B07724A0F54021B000DC657 /* main_slave.mm in Sources */, - 4B0773870F541EE2000DC657 /* iPhoneNetAppDelegate.m in Sources */, - 4B27918A0F72570C000536B7 /* JackGlobals.cpp in Sources */, - 4BF15E2611356A3E00B36B9A /* CAHostTimeBase.cpp in Sources */, - 4BF15F7911357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4B0772220F54018C000DC657 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4B0772240F54018C000DC657 /* JackMachThread.cpp in Sources */, - 4B0772250F54018C000DC657 /* JackMachTime.c in Sources */, - 4B0772260F54018C000DC657 /* JackNetAPI.cpp in Sources */, - 4B0772270F54018C000DC657 /* JackNetInterface.cpp in Sources */, - 4B0772280F54018C000DC657 /* JackNetTool.cpp in Sources */, - 4B0772290F54018C000DC657 /* JackNetUnixSocket.cpp in Sources */, - 4B07722A0F54018C000DC657 /* JackPosixThread.cpp in Sources */, - 4B07722C0F54018C000DC657 /* JackAudioAdapterInterface.cpp in Sources */, - 4B07722D0F54018C000DC657 /* JackResampler.cpp in Sources */, - 4B07722E0F54018C000DC657 /* ringbuffer.c in Sources */, - 4B0773860F541EE2000DC657 /* iPhoneNetAppDelegate.m in Sources */, - 4B27918B0F72570C000536B7 /* JackGlobals.cpp in Sources */, - 4BF15E2511356A3E00B36B9A /* CAHostTimeBase.cpp in Sources */, - 4BF15F7811357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp in Sources */, - 4BC9C1F71135AB2800D22670 /* main_master.mm in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4B1A940D0F49BDE000D3626B /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4B1A94150F49BE2F00D3626B /* JackMachThread.cpp in Sources */, - 4B1A94170F49BE3100D3626B /* JackMachTime.c in Sources */, - 4B1A94180F49BE3100D3626B /* JackNetAPI.cpp in Sources */, - 4B1A94190F49BE3300D3626B /* JackNetInterface.cpp in Sources */, - 4B1A941A0F49BE3300D3626B /* JackNetTool.cpp in Sources */, - 4B1A941B0F49BE3400D3626B /* JackNetUnixSocket.cpp in Sources */, - 4B1A941D0F49BE3500D3626B /* JackPosixThread.cpp in Sources */, - 4BF136100F4B0B4C00218A3F /* JackAudioAdapterInterface.cpp in Sources */, - 4BF1364E0F4B0F7700218A3F /* JackResampler.cpp in Sources */, - 4BF136560F4B0F9F00218A3F /* ringbuffer.c in Sources */, - 4B2791890F72570C000536B7 /* JackGlobals.cpp in Sources */, - 4B6B712C114BAE9A00ED9788 /* CAHostTimeBase.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4B41469910BD3C4300C12F0C /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4B41469A10BD3C4300C12F0C /* JackMachThread.cpp in Sources */, - 4B41469B10BD3C4300C12F0C /* JackMachTime.c in Sources */, - 4B41469C10BD3C4300C12F0C /* JackNetAPI.cpp in Sources */, - 4B41469D10BD3C4300C12F0C /* JackNetInterface.cpp in Sources */, - 4B41469E10BD3C4300C12F0C /* JackNetTool.cpp in Sources */, - 4B41469F10BD3C4300C12F0C /* JackNetUnixSocket.cpp in Sources */, - 4B4146A010BD3C4300C12F0C /* JackPosixThread.cpp in Sources */, - 4B4146A210BD3C4300C12F0C /* JackAudioAdapterInterface.cpp in Sources */, - 4B4146A310BD3C4300C12F0C /* JackResampler.cpp in Sources */, - 4B4146A410BD3C4300C12F0C /* ringbuffer.c in Sources */, - 4B4146A510BD3C4300C12F0C /* iPhoneNetAppDelegate.m in Sources */, - 4B4146A610BD3C4300C12F0C /* freeverb.mm in Sources */, - 4B4146A710BD3C4300C12F0C /* JackGlobals.cpp in Sources */, - 4BF15E2911356A3E00B36B9A /* CAHostTimeBase.cpp in Sources */, - 4BF15F7C11357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4BCB37B7112D647C008C7BC1 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4BCB37D9112D64D8008C7BC1 /* iphone-faust.mm in Sources */, - 4BF15E2A11356A3E00B36B9A /* CAHostTimeBase.cpp in Sources */, - 4BF15F7D11357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4BCF75DB10BC2FD90082C526 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4BCF75DC10BC2FD90082C526 /* JackMachThread.cpp in Sources */, - 4BCF75DD10BC2FD90082C526 /* JackMachTime.c in Sources */, - 4BCF75DE10BC2FD90082C526 /* JackNetAPI.cpp in Sources */, - 4BCF75DF10BC2FD90082C526 /* JackNetInterface.cpp in Sources */, - 4BCF75E010BC2FD90082C526 /* JackNetTool.cpp in Sources */, - 4BCF75E110BC2FD90082C526 /* JackNetUnixSocket.cpp in Sources */, - 4BCF75E210BC2FD90082C526 /* JackPosixThread.cpp in Sources */, - 4BCF75E410BC2FD90082C526 /* JackAudioAdapterInterface.cpp in Sources */, - 4BCF75E510BC2FD90082C526 /* JackResampler.cpp in Sources */, - 4BCF75E610BC2FD90082C526 /* ringbuffer.c in Sources */, - 4BCF75E710BC2FD90082C526 /* iPhoneNetAppDelegate.m in Sources */, - 4BCF75E910BC2FD90082C526 /* JackGlobals.cpp in Sources */, - 4BCF75F710BC30140082C526 /* audio_thru.mm in Sources */, - 4BF15E2811356A3E00B36B9A /* CAHostTimeBase.cpp in Sources */, - 4BF15F7B11357A0E00B36B9A /* TiPhoneCoreAudioRenderer.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4BDFCD3F113DB6B700D77992 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4BDFCD4A113DB6B700D77992 /* main_slave.mm in Sources */, - 4BDFCD4B113DB6B700D77992 /* iPhoneNetAppDelegate.m in Sources */, - 4BDFCD4D113DB6B700D77992 /* CAHostTimeBase.cpp in Sources */, - 4BDFCD4E113DB6B700D77992 /* TiPhoneCoreAudioRenderer.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 4BFF45610F4D5D9700106083 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4BFF45630F4D5D9700106083 /* JackMachThread.cpp in Sources */, - 4BFF45640F4D5D9700106083 /* JackMachTime.c in Sources */, - 4BFF45650F4D5D9700106083 /* JackNetAPI.cpp in Sources */, - 4BFF45660F4D5D9700106083 /* JackNetInterface.cpp in Sources */, - 4BFF45670F4D5D9700106083 /* JackNetTool.cpp in Sources */, - 4BFF45680F4D5D9700106083 /* JackNetUnixSocket.cpp in Sources */, - 4BFF45690F4D5D9700106083 /* JackPosixThread.cpp in Sources */, - 4BFF456B0F4D5D9700106083 /* JackAudioAdapterInterface.cpp in Sources */, - 4BFF456C0F4D5D9700106083 /* JackResampler.cpp in Sources */, - 4BFF456D0F4D5D9700106083 /* ringbuffer.c in Sources */, - 4B0773880F541EE2000DC657 /* iPhoneNetAppDelegate.m in Sources */, - 4BBDC8FA0F5420C000465F9C /* freeverb.mm in Sources */, - 4B2791880F72570C000536B7 /* JackGlobals.cpp in Sources */, - 4BF15E2711356A3E00B36B9A /* CAHostTimeBase.cpp in Sources */, - 4BF15F7A11357A0E00B36B9A /* TiPhoneCoreAudioRenderer.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_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - HEADER_SEARCH_PATHS = ( - /usr/local/include, - ../../macosx/coreaudio, - ../../macosx, - ../../posix, - ../../common/jack, - ../../common, - ); - INFOPLIST_FILE = Info.plist; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\"$(SRCROOT)/build/Debug-iphonesimulator\"", - ); - OTHER_LDFLAGS = libcelt.a; - PRODUCT_NAME = NetJackSlave; - SDKROOT = iphoneos3.1.3; - }; - name = Debug; - }; - 1D6058950D05DD3E006BFB54 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - GCC_OPTIMIZATION_LEVEL = 3; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - GCC_THUMB_SUPPORT = NO; - HEADER_SEARCH_PATHS = ( - ., - /usr/local/include, - ../../macosx/coreaudio, - ../../common/jack, - ../../common, - ../../posix, - ../../macosx, - ); - INFOPLIST_FILE = Info.plist; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\"$(SRCROOT)/build/Debug-iphonesimulator\"", - ); - OTHER_LDFLAGS = libcelt.a; - PRODUCT_NAME = NetJackSlave; - SDKROOT = iphoneos3.1.3; - }; - name = Release; - }; - 4B0772360F54018C000DC657 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - HEADER_SEARCH_PATHS = ( - /usr/local/include, - ../../macosx/coreaudio, - ../../macosx, - ../../posix, - ../../common/jack, - ../../common, - ); - INFOPLIST_FILE = Info.plist; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\\\"$(SRCROOT)/build/Debug-iphonesimulator\\\"", - ); - OTHER_LDFLAGS = libcelt.a; - PRODUCT_NAME = NetJackMaster; - SDKROOT = iphoneos3.1.3; - }; - name = Debug; - }; - 4B0772370F54018C000DC657 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - HEADER_SEARCH_PATHS = ( - /usr/local/include, - ../../macosx/coreaudio, - ../../common/jack, - ../../common, - ../../posix, - ../../macosx, - ); - INFOPLIST_FILE = Info.plist; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\\\"$(SRCROOT)/build/Debug-iphonesimulator\\\"", - ); - OTHER_LDFLAGS = libcelt.a; - PRODUCT_NAME = NetJackMaster; - }; - name = Release; - }; - 4B1A94110F49BDE100D3626B /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - HEADER_SEARCH_PATHS = ( - /usr/local/include, - ../../common/jack, - ../../common, - ../../posix, - ../../macosx, - ); - MACH_O_TYPE = staticlib; - PREBINDING = NO; - PRODUCT_NAME = jacknet; - SDKROOT = iphoneos3.1.3; - STANDARD_C_PLUS_PLUS_LIBRARY_TYPE = static; - }; - name = Debug; - }; - 4B1A94120F49BDE100D3626B /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_FIX_AND_CONTINUE = NO; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - HEADER_SEARCH_PATHS = ( - /usr/local/include, - ../../macosx, - ../../posix, - ../../common, - ../../common/jack, - ); - PREBINDING = NO; - PRODUCT_NAME = jacknet; - SDKROOT = iphoneos3.1.3; - ZERO_LINK = NO; - }; - name = Release; - }; - 4B4146AE10BD3C4300C12F0C /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Stéphane Letz (8LJEY2RN3N)"; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - HEADER_SEARCH_PATHS = ( - ../../macosx, - ../../posix, - ../../common/jack, - ../../common, - ); - INFOPLIST_FILE = "Info copy 2.plist"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\\\\\\\"$(SRCROOT)/build/Debug-iphonesimulator\\\\\\\"", - ); - OTHER_LDFLAGS = ""; - PRODUCT_NAME = iPhoneFaustNet; - "PROVISIONING_PROFILE[sdk=iphoneos*]" = "CEF78041-8E2A-499D-BF7C-8A1B22B6C2AC"; - SDKROOT = iphoneos2.2.1; - }; - name = Debug; - }; - 4B4146AF10BD3C4300C12F0C /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - HEADER_SEARCH_PATHS = ( - ../../macosx, - ../../common/jack, - ../../common, - ../../posix, - ); - INFOPLIST_FILE = Info.plist; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\\\\\\\"$(SRCROOT)/build/Debug-iphonesimulator\\\\\\\"", - ); - ONLY_ACTIVE_ARCH = NO; - PRODUCT_NAME = iPhoneFaustNet; - SDKROOT = iphoneos3.1.2; - }; - name = Release; - }; - 4BCB37CC112D647C008C7BC1 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - GCC_THUMB_SUPPORT = NO; - HEADER_SEARCH_PATHS = ( - ../../macosx, - ../../posix, - ../../common/jack, - ../../common, - ); - INFOPLIST_FILE = Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 3.1.3; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\\\\\\\"$(SRCROOT)/build/Debug-iphonesimulator\\\\\\\"", - ); - OTHER_LDFLAGS = ""; - PRODUCT_NAME = iPhoneFaust; - SDKROOT = iphoneos3.1.3; - }; - name = Debug; - }; - 4BCB37CD112D647C008C7BC1 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - GCC_THUMB_SUPPORT = NO; - HEADER_SEARCH_PATHS = ( - ../../macosx, - ../../common/jack, - ../../common, - ../../posix, - ); - INFOPLIST_FILE = Info.plist; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\\\\\\\"$(SRCROOT)/build/Debug-iphonesimulator\\\\\\\"", - ); - ONLY_ACTIVE_ARCH = NO; - PRODUCT_NAME = iPhoneFaust; - SDKROOT = iphoneos3.1.3; - }; - name = Release; - }; - 4BCF75F010BC2FD90082C526 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - HEADER_SEARCH_PATHS = ( - ../../macosx, - ../../posix, - ../../common/jack, - ../../common, - ); - INFOPLIST_FILE = Info.plist; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\\\\\\\"$(SRCROOT)/build/Debug-iphonesimulator\\\\\\\"", - ); - OTHER_LDFLAGS = ""; - PRODUCT_NAME = iPhoneThruNet; - SDKROOT = iphoneos2.2.1; - }; - name = Debug; - }; - 4BCF75F110BC2FD90082C526 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - GCC_VERSION = ""; - HEADER_SEARCH_PATHS = ( - ../../macosx, - ../../common/jack, - ../../common, - ../../posix, - ); - INFOPLIST_FILE = Info.plist; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\\\\\\\"$(SRCROOT)/build/Debug-iphonesimulator\\\\\\\"", - ); - ONLY_ACTIVE_ARCH = NO; - PRODUCT_NAME = iPhoneFaustNet; - }; - name = Release; - }; - 4BDFCD55113DB6B700D77992 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - HEADER_SEARCH_PATHS = ( - ../../macosx/coreaudio, - ../../macosx, - ../../posix, - ../../common/jack, - ../../common, - ); - INFOPLIST_FILE = Info.plist; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\\\"$(SRCROOT)/build/Debug-iphonesimulator\\\"", - ); - OTHER_LDFLAGS = "-ljacknet"; - PRODUCT_NAME = NetJackSlave; - SDKROOT = iphoneos3.1.3; - }; - name = Debug; - }; - 4BDFCD56113DB6B700D77992 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - HEADER_SEARCH_PATHS = ( - ../../macosx/coreaudio, - ../../common/jack, - ../../common, - ../../posix, - ../../macosx, - ); - INFOPLIST_FILE = Info.plist; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\\\"$(SRCROOT)/build/Debug-iphonesimulator\\\"", - ); - OTHER_LDFLAGS = "-ljacknet"; - PRODUCT_NAME = NetJackSlave; - }; - name = Release; - }; - 4BFF45750F4D5D9700106083 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - HEADER_SEARCH_PATHS = ( - ../../macosx, - ../../posix, - ../../common/jack, - ../../common, - ); - INFOPLIST_FILE = Info.plist; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\\\"$(SRCROOT)/build/Debug-iphonesimulator\\\"", - ); - OTHER_LDFLAGS = ""; - PRODUCT_NAME = iPhoneFaustNet; - SDKROOT = iphoneos2.2.1; - }; - name = Debug; - }; - 4BFF45760F4D5D9700106083 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = iPhoneNet_Prefix.pch; - HEADER_SEARCH_PATHS = ( - ../../macosx, - ../../common/jack, - ../../common, - ../../posix, - ); - INFOPLIST_FILE = Info.plist; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "\\\"$(SRCROOT)/build/Debug-iphonesimulator\\\"", - ); - ONLY_ACTIVE_ARCH = NO; - PRODUCT_NAME = iPhoneFaustNet; - }; - name = Release; - }; - C01FCF4F08A954540054247B /* Debug */ = { - 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; - ONLY_ACTIVE_ARCH = YES; - PREBINDING = NO; - SDKROOT = iphoneos2.2.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 = iphoneos2.2.1; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "iPhoneNetSlave" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 1D6058940D05DD3E006BFB54 /* Debug */, - 1D6058950D05DD3E006BFB54 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 4B0772350F54018C000DC657 /* Build configuration list for PBXNativeTarget "iPhoneNetMaster" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 4B0772360F54018C000DC657 /* Debug */, - 4B0772370F54018C000DC657 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 4B1A94130F49BDFF00D3626B /* Build configuration list for PBXNativeTarget "libjacknet" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 4B1A94110F49BDE100D3626B /* Debug */, - 4B1A94120F49BDE100D3626B /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 4B4146AD10BD3C4300C12F0C /* Build configuration list for PBXNativeTarget "iPhoneFaustNet Distribution" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 4B4146AE10BD3C4300C12F0C /* Debug */, - 4B4146AF10BD3C4300C12F0C /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 4BCB37CB112D647C008C7BC1 /* Build configuration list for PBXNativeTarget "iPhoneFaust" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 4BCB37CC112D647C008C7BC1 /* Debug */, - 4BCB37CD112D647C008C7BC1 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 4BCF75EF10BC2FD90082C526 /* Build configuration list for PBXNativeTarget "iPhoneThruNet" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 4BCF75F010BC2FD90082C526 /* Debug */, - 4BCF75F110BC2FD90082C526 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 4BDFCD54113DB6B700D77992 /* Build configuration list for PBXNativeTarget "iPhoneNetSlaveLib" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 4BDFCD55113DB6B700D77992 /* Debug */, - 4BDFCD56113DB6B700D77992 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 4BFF45740F4D5D9700106083 /* Build configuration list for PBXNativeTarget "iPhoneFaustNet" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 4BFF45750F4D5D9700106083 /* Debug */, - 4BFF45760F4D5D9700106083 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - C01FCF4E08A954540054247B /* Build configuration list for PBXProject "iPhoneNet" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C01FCF4F08A954540054247B /* Debug */, - C01FCF5008A954540054247B /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; -} diff --git a/macosx/iphone/iPhoneNetAppDelegate.h b/macosx/iphone/iPhoneNetAppDelegate.h deleted file mode 100644 index 9fcda5bb..00000000 --- a/macosx/iphone/iPhoneNetAppDelegate.h +++ /dev/null @@ -1,23 +0,0 @@ -// -// iPhoneNetAppDelegate.h -// iPhoneNet -// -// Created by Stéphane LETZ on 16/02/09. -// Copyright Grame 2009. All rights reserved. -// - -#import <UIKit/UIKit.h> - -@interface iPhoneNetAppDelegate : NSObject <UIApplicationDelegate> { - // UIWindow *window; - - IBOutlet UIWindow *window; - IBOutlet UINavigationController *navigationController; -} - -//@property (nonatomic, retain) IBOutlet UIWindow *window; -@property (nonatomic, retain) UIWindow *window; -@property (nonatomic, retain) UINavigationController *navigationController; - -@end - diff --git a/macosx/iphone/iPhoneNetAppDelegate.m b/macosx/iphone/iPhoneNetAppDelegate.m deleted file mode 100644 index e867730d..00000000 --- a/macosx/iphone/iPhoneNetAppDelegate.m +++ /dev/null @@ -1,32 +0,0 @@ -// -// iPhoneNetAppDelegate.m -// iPhoneNet -// -// Created by Stéphane LETZ on 16/02/09. -// Copyright Grame 2009. All rights reserved. -// - -#import "iPhoneNetAppDelegate.h" - -@implementation iPhoneNetAppDelegate - -@synthesize window, navigationController; - - -- (void)applicationDidFinishLaunching:(UIApplication *)application { - - // Override point for customization after application launch - // add the navigation controller's view to the window - [window addSubview: navigationController.view]; - [window makeKeyAndVisible]; -} - - -- (void)dealloc { - [navigationController release]; - [window release]; - [super dealloc]; -} - - -@end diff --git a/macosx/iphone/iPhoneNet_Prefix.pch b/macosx/iphone/iPhoneNet_Prefix.pch deleted file mode 100644 index 55c63732..00000000 --- a/macosx/iphone/iPhoneNet_Prefix.pch +++ /dev/null @@ -1,10 +0,0 @@ -// -// Prefix header for all source files of the 'iPhoneNet' target in the 'iPhoneNet' project -// - -#ifdef __OBJC__ - #import <Foundation/Foundation.h> - #import <UIKit/UIKit.h> -#endif - -#define MY_TARGET_OS_IPHONE 1 diff --git a/macosx/iphone/icon.png b/macosx/iphone/icon.png Binary files differdeleted file mode 100644 index 9e312ea6..00000000 --- a/macosx/iphone/icon.png +++ /dev/null diff --git a/macosx/iphone/iphone-faust.mm b/macosx/iphone/iphone-faust.mm deleted file mode 100644 index ac17000b..00000000 --- a/macosx/iphone/iphone-faust.mm +++ /dev/null @@ -1,3127 +0,0 @@ -//----------------------------------------------------- -// name: "freeverb" -// version: "1.0" -// author: "Grame" -// license: "BSD" -// copyright: "(c)GRAME 2006" -// -// Code generated with Faust 0.9.10 (http://faust.grame.fr) -//----------------------------------------------------- -/* link with */ -/* link with */ -#include <math.h> -/* link with */ -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <limits.h> -#include <math.h> -#include <errno.h> -#include <time.h> -#include <sys/ioctl.h> -#include <unistd.h> -#include <fcntl.h> -#include <pwd.h> -#include <sys/types.h> -#include <assert.h> -#include <pthread.h> -#include <sys/wait.h> - -#include <list> -#include <vector> -#include <iostream> -#include <fstream> -#include <stack> -#include <list> -#include <map> -#include <libgen.h> - -#include <AudioToolbox/AudioConverter.h> -#include <AudioToolbox/AudioServices.h> -#include <AudioUnit/AudioUnit.h> - -#include "HardwareClock.h" - -using namespace std; - -// On Intel set FZ (Flush to Zero) and DAZ (Denormals Are Zero) -// flags to avoid costly denormals -#ifdef __SSE__ - #include <xmmintrin.h> - #ifdef __SSE2__ - #define AVOIDDENORMALS _mm_setcsr(_mm_getcsr() | 0x8040) - #else - #define AVOIDDENORMALS _mm_setcsr(_mm_getcsr() | 0x8000) - #endif -#else - #define AVOIDDENORMALS -#endif - -//#define BENCHMARKMODE - -struct Meta : map<const char*, const char*> -{ - void declare (const char* key, const char* value) { (*this)[key] = value; } -}; - -//inline void *aligned_calloc(size_t nmemb, size_t size) { return (void*)((unsigned)(calloc((nmemb*size)+15,sizeof(char)))+15 & 0xfffffff0); } - -// g++ -O3 -lm -ljack `gtk-config --cflags --libs` ex2.cpp - - -#define max(x,y) (((x)>(y)) ? (x) : (y)) -#define min(x,y) (((x)<(y)) ? (x) : (y)) - -inline int lsr(int x, int n) { return int(((unsigned int)x) >> n); } -inline int int2pow2(int x) { int r=0; while ((1<<r)<x) r++; return r; } - -/****************************************************************************** -******************************************************************************* - - VECTOR INTRINSICS - -******************************************************************************* -*******************************************************************************/ - - -/****************************************************************************** -******************************************************************************* - - USER INTERFACE - -******************************************************************************* -*******************************************************************************/ - -class UI -{ - bool fStopped; - - public: - - UI() : fStopped(false) {} - virtual ~UI() {} - - // -- active widgets - - virtual void addButton(const char* label, float* zone) = 0; - virtual void addToggleButton(const char* label, float* zone) = 0; - virtual void addCheckButton(const char* label, float* zone) = 0; - virtual void addVerticalSlider(const char* label, float* zone, float init, float min, float max, float step) = 0; - virtual void addHorizontalSlider(const char* label, float* zone, float init, float min, float max, float step) = 0; - virtual void addNumEntry(const char* label, float* zone, float init, float min, float max, float step) = 0; - - // -- passive widgets - - virtual void addNumDisplay(const char* label, float* zone, int precision) = 0; - virtual void addTextDisplay(const char* label, float* zone, char* names[], float min, float max) = 0; - virtual void addHorizontalBargraph(const char* label, float* zone, float min, float max) = 0; - virtual void addVerticalBargraph(const char* label, float* zone, float min, float max) = 0; - - // -- frames and labels - - virtual void openFrameBox(const char* label) = 0; - virtual void openTabBox(const char* label) = 0; - virtual void openHorizontalBox(const char* label) = 0; - virtual void openVerticalBox(const char* label) = 0; - virtual void closeBox() = 0; - - virtual void show() = 0; - virtual void run() = 0; - - void stop() { fStopped = true; } - bool stopped() { return fStopped; } - - virtual void declare(float* zone, const char* key, const char* value) {} -}; - -struct param { - float* fZone; float fMin; float fMax; - param(float* z, float a, float b) : fZone(z), fMin(a), fMax(b) {} -}; - -class CMDUI : public UI -{ - int fArgc; - char** fArgv; - stack<string> fPrefix; - map<string, param> fKeyParam; - - void addOption(const char* label, float* zone, float init, float min, float max) - { - string fullname = fPrefix.top() + label; - fKeyParam.insert(make_pair(fullname, param(zone, min, max))); - *zone = init; - } - - void openAnyBox(const char* label) - { - string prefix; - - if (label && label[0]) { - prefix = fPrefix.top() + "-" + label; - } else { - prefix = fPrefix.top(); - } - fPrefix.push(prefix); - } - -public: - - CMDUI(int argc, char *argv[]) : UI(), fArgc(argc), fArgv(argv) { fPrefix.push("--"); } - virtual ~CMDUI() {} - - virtual void addButton(const char* label, float* zone) {}; - virtual void addToggleButton(const char* label, float* zone) {}; - virtual void addCheckButton(const char* label, float* zone) {}; - - virtual void addVerticalSlider(const char* label, float* zone, float init, float min, float max, float step) - { - addOption(label,zone,init, min,max); - } - - virtual void addHorizontalSlider(const char* label, float* zone, float init, float min, float max, float step) - { - addOption(label,zone,init, min,max); - } - - virtual void addNumEntry(const char* label, float* zone, float init, float min, float max, float step) - { - addOption(label,zone,init, min,max); - } - - // -- passive widgets - - virtual void addNumDisplay(const char* label, float* zone, int precision) {} - virtual void addTextDisplay(const char* label, float* zone, char* names[], float min, float max) {} - virtual void addHorizontalBargraph(const char* label, float* zone, float min, float max) {} - virtual void addVerticalBargraph(const char* label, float* zone, float min, float max) {} - - virtual void openFrameBox(const char* label) { openAnyBox(label); } - virtual void openTabBox(const char* label) { openAnyBox(label); } - virtual void openHorizontalBox(const char* label) { openAnyBox(label); } - virtual void openVerticalBox(const char* label) { openAnyBox(label); } - - virtual void closeBox() { fPrefix.pop(); } - - virtual void show() {} - virtual void run() - { - char c; - printf("Type 'q' to quit\n"); - while ((c = getchar()) != 'q') { - sleep(1); - } - } - - void print() - { - map<string, param>::iterator i; - cout << fArgc << "\n"; - cout << fArgv[0] << " option list : "; - for (i = fKeyParam.begin(); i != fKeyParam.end(); i++) { - cout << "[ " << i->first << " " << i->second.fMin << ".." << i->second.fMax <<" ] "; - } - } - - void process_command() - { - map<string, param>::iterator p; - for (int i = 1; i < fArgc; i++) { - if (fArgv[i][0] == '-') { - p = fKeyParam.find(fArgv[i]); - if (p == fKeyParam.end()) { - cout << fArgv[0] << " : unrecognized option " << fArgv[i] << "\n"; - print(); - exit(1); - } - char* end; - *(p->second.fZone) = float(strtod(fArgv[i+1], &end)); - i++; - } - } - } - - void process_init() - { - map<string, param>::iterator p; - for (int i = 1; i < fArgc; i++) { - if (fArgv[i][0] == '-') { - p = fKeyParam.find(fArgv[i]); - if (p == fKeyParam.end()) { - cout << fArgv[0] << " : unrecognized option " << fArgv[i] << "\n"; - exit(1); - } - char* end; - *(p->second.fZone) = float(strtod(fArgv[i+1], &end)); - i++; - } - } - } -}; - -/****************************************************************************** -******************************************************************************* - - FAUST DSP - -******************************************************************************* -*******************************************************************************/ - - -//---------------------------------------------------------------- -// abstract definition of a signal processor -//---------------------------------------------------------------- - -class dsp { - protected: - int fSamplingFreq; - public: - dsp() {} - virtual ~dsp() {} - - virtual int getNumInputs() = 0; - virtual int getNumOutputs() = 0; - virtual void buildUserInterface(UI* interface) = 0; - virtual void init(int samplingRate) = 0; - virtual void compute(int len, float** inputs, float** outputs) = 0; -}; - -//---------------------------------------------------------------------------- -// FAUST generated signal processor -//---------------------------------------------------------------------------- - -#ifndef FAUSTFLOAT -#define FAUSTFLOAT float -#endif - -typedef long double quad; - -class mydsp : public dsp{ - private: - FAUSTFLOAT fslider0; - float fRec9_perm[4]; - FAUSTFLOAT fslider1; - float fRec19_perm[4]; - float fYec0[4096]; - int fYec0_idx; - int fYec0_idx_save; - float fRec18_perm[4]; - float fRec21_perm[4]; - float fYec1[4096]; - int fYec1_idx; - int fYec1_idx_save; - float fRec20_perm[4]; - float fRec23_perm[4]; - float fYec2[4096]; - int fYec2_idx; - int fYec2_idx_save; - float fRec22_perm[4]; - float fRec25_perm[4]; - float fYec3[4096]; - int fYec3_idx; - int fYec3_idx_save; - float fRec24_perm[4]; - float fRec27_perm[4]; - float fYec4[4096]; - int fYec4_idx; - int fYec4_idx_save; - float fRec26_perm[4]; - float fRec29_perm[4]; - float fYec5[4096]; - int fYec5_idx; - int fYec5_idx_save; - float fRec28_perm[4]; - float fRec31_perm[4]; - float fYec6[4096]; - int fYec6_idx; - int fYec6_idx_save; - float fRec30_perm[4]; - float fRec33_perm[4]; - float fYec7[4096]; - int fYec7_idx; - int fYec7_idx_save; - float fRec32_perm[4]; - float fYec8[2048]; - int fYec8_idx; - int fYec8_idx_save; - float fRec16_perm[4]; - float fYec9[2048]; - int fYec9_idx; - int fYec9_idx_save; - float fRec14_perm[4]; - float fYec10[2048]; - int fYec10_idx; - int fYec10_idx_save; - float fRec12_perm[4]; - float fYec11[2048]; - int fYec11_idx; - int fYec11_idx_save; - float fRec10_perm[4]; - FAUSTFLOAT fslider2; - float fRec43_perm[4]; - float fYec12[4096]; - int fYec12_idx; - int fYec12_idx_save; - float fRec42_perm[4]; - float fRec45_perm[4]; - float fYec13[4096]; - int fYec13_idx; - int fYec13_idx_save; - float fRec44_perm[4]; - float fRec47_perm[4]; - float fYec14[4096]; - int fYec14_idx; - int fYec14_idx_save; - float fRec46_perm[4]; - float fRec49_perm[4]; - float fYec15[4096]; - int fYec15_idx; - int fYec15_idx_save; - float fRec48_perm[4]; - float fRec51_perm[4]; - float fYec16[4096]; - int fYec16_idx; - int fYec16_idx_save; - float fRec50_perm[4]; - float fRec53_perm[4]; - float fYec17[4096]; - int fYec17_idx; - int fYec17_idx_save; - float fRec52_perm[4]; - float fRec55_perm[4]; - float fYec18[4096]; - int fYec18_idx; - int fYec18_idx_save; - float fRec54_perm[4]; - float fRec57_perm[4]; - float fYec19[4096]; - int fYec19_idx; - int fYec19_idx_save; - float fRec56_perm[4]; - float fYec20[2048]; - int fYec20_idx; - int fYec20_idx_save; - float fRec40_perm[4]; - float fYec21[2048]; - int fYec21_idx; - int fYec21_idx_save; - float fRec38_perm[4]; - float fYec22[2048]; - int fYec22_idx; - int fYec22_idx_save; - float fRec36_perm[4]; - float fYec23[2048]; - int fYec23_idx; - int fYec23_idx_save; - float fRec34_perm[4]; - float fYec24[4096]; - int fYec24_idx; - int fYec24_idx_save; - float fRec8_perm[4]; - float fRec59_perm[4]; - float fYec25[4096]; - int fYec25_idx; - int fYec25_idx_save; - float fRec58_perm[4]; - float fRec61_perm[4]; - float fYec26[4096]; - int fYec26_idx; - int fYec26_idx_save; - float fRec60_perm[4]; - float fRec63_perm[4]; - float fYec27[4096]; - int fYec27_idx; - int fYec27_idx_save; - float fRec62_perm[4]; - float fRec65_perm[4]; - float fYec28[4096]; - int fYec28_idx; - int fYec28_idx_save; - float fRec64_perm[4]; - float fRec67_perm[4]; - float fYec29[4096]; - int fYec29_idx; - int fYec29_idx_save; - float fRec66_perm[4]; - float fRec69_perm[4]; - float fYec30[4096]; - int fYec30_idx; - int fYec30_idx_save; - float fRec68_perm[4]; - float fRec71_perm[4]; - float fYec31[4096]; - int fYec31_idx; - int fYec31_idx_save; - float fRec70_perm[4]; - float fYec32[2048]; - int fYec32_idx; - int fYec32_idx_save; - float fRec6_perm[4]; - float fYec33[2048]; - int fYec33_idx; - int fYec33_idx_save; - float fRec4_perm[4]; - float fYec34[2048]; - int fYec34_idx; - int fYec34_idx_save; - float fRec2_perm[4]; - float fYec35[2048]; - int fYec35_idx; - int fYec35_idx_save; - float fRec0_perm[4]; - float fRec81_perm[4]; - float fYec36[4096]; - int fYec36_idx; - int fYec36_idx_save; - float fRec80_perm[4]; - float fRec83_perm[4]; - float fYec37[4096]; - int fYec37_idx; - int fYec37_idx_save; - float fRec82_perm[4]; - float fRec85_perm[4]; - float fYec38[4096]; - int fYec38_idx; - int fYec38_idx_save; - float fRec84_perm[4]; - float fRec87_perm[4]; - float fYec39[4096]; - int fYec39_idx; - int fYec39_idx_save; - float fRec86_perm[4]; - float fRec89_perm[4]; - float fYec40[4096]; - int fYec40_idx; - int fYec40_idx_save; - float fRec88_perm[4]; - float fRec91_perm[4]; - float fYec41[4096]; - int fYec41_idx; - int fYec41_idx_save; - float fRec90_perm[4]; - float fRec93_perm[4]; - float fYec42[4096]; - int fYec42_idx; - int fYec42_idx_save; - float fRec92_perm[4]; - float fRec95_perm[4]; - float fYec43[4096]; - int fYec43_idx; - int fYec43_idx_save; - float fRec94_perm[4]; - float fYec44[2048]; - int fYec44_idx; - int fYec44_idx_save; - float fRec78_perm[4]; - float fYec45[2048]; - int fYec45_idx; - int fYec45_idx_save; - float fRec76_perm[4]; - float fYec46[2048]; - int fYec46_idx; - int fYec46_idx_save; - float fRec74_perm[4]; - float fYec47[2048]; - int fYec47_idx; - int fYec47_idx_save; - float fRec72_perm[4]; - public: - static void metadata(Meta* m) { - m->declare("name", "freeverb"); - m->declare("version", "1.0"); - m->declare("author", "Grame"); - m->declare("license", "BSD"); - m->declare("copyright", "(c)GRAME 2006"); - } - - virtual int getNumInputs() { return 2; } - virtual int getNumOutputs() { return 2; } - static void classInit(int samplingFreq) { - } - virtual void instanceInit(int samplingFreq) { - fSamplingFreq = samplingFreq; - fslider0 = 0.5f; - for (int i=0; i<4; i++) fRec9_perm[i]=0; - fslider1 = 0.5f; - for (int i=0; i<4; i++) fRec19_perm[i]=0; - for (int i=0; i<4096; i++) fYec0[i]=0; - fYec0_idx = 0; - fYec0_idx_save = 0; - for (int i=0; i<4; i++) fRec18_perm[i]=0; - for (int i=0; i<4; i++) fRec21_perm[i]=0; - for (int i=0; i<4096; i++) fYec1[i]=0; - fYec1_idx = 0; - fYec1_idx_save = 0; - for (int i=0; i<4; i++) fRec20_perm[i]=0; - for (int i=0; i<4; i++) fRec23_perm[i]=0; - for (int i=0; i<4096; i++) fYec2[i]=0; - fYec2_idx = 0; - fYec2_idx_save = 0; - for (int i=0; i<4; i++) fRec22_perm[i]=0; - for (int i=0; i<4; i++) fRec25_perm[i]=0; - for (int i=0; i<4096; i++) fYec3[i]=0; - fYec3_idx = 0; - fYec3_idx_save = 0; - for (int i=0; i<4; i++) fRec24_perm[i]=0; - for (int i=0; i<4; i++) fRec27_perm[i]=0; - for (int i=0; i<4096; i++) fYec4[i]=0; - fYec4_idx = 0; - fYec4_idx_save = 0; - for (int i=0; i<4; i++) fRec26_perm[i]=0; - for (int i=0; i<4; i++) fRec29_perm[i]=0; - for (int i=0; i<4096; i++) fYec5[i]=0; - fYec5_idx = 0; - fYec5_idx_save = 0; - for (int i=0; i<4; i++) fRec28_perm[i]=0; - for (int i=0; i<4; i++) fRec31_perm[i]=0; - for (int i=0; i<4096; i++) fYec6[i]=0; - fYec6_idx = 0; - fYec6_idx_save = 0; - for (int i=0; i<4; i++) fRec30_perm[i]=0; - for (int i=0; i<4; i++) fRec33_perm[i]=0; - for (int i=0; i<4096; i++) fYec7[i]=0; - fYec7_idx = 0; - fYec7_idx_save = 0; - for (int i=0; i<4; i++) fRec32_perm[i]=0; - for (int i=0; i<2048; i++) fYec8[i]=0; - fYec8_idx = 0; - fYec8_idx_save = 0; - for (int i=0; i<4; i++) fRec16_perm[i]=0; - for (int i=0; i<2048; i++) fYec9[i]=0; - fYec9_idx = 0; - fYec9_idx_save = 0; - for (int i=0; i<4; i++) fRec14_perm[i]=0; - for (int i=0; i<2048; i++) fYec10[i]=0; - fYec10_idx = 0; - fYec10_idx_save = 0; - for (int i=0; i<4; i++) fRec12_perm[i]=0; - for (int i=0; i<2048; i++) fYec11[i]=0; - fYec11_idx = 0; - fYec11_idx_save = 0; - for (int i=0; i<4; i++) fRec10_perm[i]=0; - fslider2 = 0.3333f; - for (int i=0; i<4; i++) fRec43_perm[i]=0; - for (int i=0; i<4096; i++) fYec12[i]=0; - fYec12_idx = 0; - fYec12_idx_save = 0; - for (int i=0; i<4; i++) fRec42_perm[i]=0; - for (int i=0; i<4; i++) fRec45_perm[i]=0; - for (int i=0; i<4096; i++) fYec13[i]=0; - fYec13_idx = 0; - fYec13_idx_save = 0; - for (int i=0; i<4; i++) fRec44_perm[i]=0; - for (int i=0; i<4; i++) fRec47_perm[i]=0; - for (int i=0; i<4096; i++) fYec14[i]=0; - fYec14_idx = 0; - fYec14_idx_save = 0; - for (int i=0; i<4; i++) fRec46_perm[i]=0; - for (int i=0; i<4; i++) fRec49_perm[i]=0; - for (int i=0; i<4096; i++) fYec15[i]=0; - fYec15_idx = 0; - fYec15_idx_save = 0; - for (int i=0; i<4; i++) fRec48_perm[i]=0; - for (int i=0; i<4; i++) fRec51_perm[i]=0; - for (int i=0; i<4096; i++) fYec16[i]=0; - fYec16_idx = 0; - fYec16_idx_save = 0; - for (int i=0; i<4; i++) fRec50_perm[i]=0; - for (int i=0; i<4; i++) fRec53_perm[i]=0; - for (int i=0; i<4096; i++) fYec17[i]=0; - fYec17_idx = 0; - fYec17_idx_save = 0; - for (int i=0; i<4; i++) fRec52_perm[i]=0; - for (int i=0; i<4; i++) fRec55_perm[i]=0; - for (int i=0; i<4096; i++) fYec18[i]=0; - fYec18_idx = 0; - fYec18_idx_save = 0; - for (int i=0; i<4; i++) fRec54_perm[i]=0; - for (int i=0; i<4; i++) fRec57_perm[i]=0; - for (int i=0; i<4096; i++) fYec19[i]=0; - fYec19_idx = 0; - fYec19_idx_save = 0; - for (int i=0; i<4; i++) fRec56_perm[i]=0; - for (int i=0; i<2048; i++) fYec20[i]=0; - fYec20_idx = 0; - fYec20_idx_save = 0; - for (int i=0; i<4; i++) fRec40_perm[i]=0; - for (int i=0; i<2048; i++) fYec21[i]=0; - fYec21_idx = 0; - fYec21_idx_save = 0; - for (int i=0; i<4; i++) fRec38_perm[i]=0; - for (int i=0; i<2048; i++) fYec22[i]=0; - fYec22_idx = 0; - fYec22_idx_save = 0; - for (int i=0; i<4; i++) fRec36_perm[i]=0; - for (int i=0; i<2048; i++) fYec23[i]=0; - fYec23_idx = 0; - fYec23_idx_save = 0; - for (int i=0; i<4; i++) fRec34_perm[i]=0; - for (int i=0; i<4096; i++) fYec24[i]=0; - fYec24_idx = 0; - fYec24_idx_save = 0; - for (int i=0; i<4; i++) fRec8_perm[i]=0; - for (int i=0; i<4; i++) fRec59_perm[i]=0; - for (int i=0; i<4096; i++) fYec25[i]=0; - fYec25_idx = 0; - fYec25_idx_save = 0; - for (int i=0; i<4; i++) fRec58_perm[i]=0; - for (int i=0; i<4; i++) fRec61_perm[i]=0; - for (int i=0; i<4096; i++) fYec26[i]=0; - fYec26_idx = 0; - fYec26_idx_save = 0; - for (int i=0; i<4; i++) fRec60_perm[i]=0; - for (int i=0; i<4; i++) fRec63_perm[i]=0; - for (int i=0; i<4096; i++) fYec27[i]=0; - fYec27_idx = 0; - fYec27_idx_save = 0; - for (int i=0; i<4; i++) fRec62_perm[i]=0; - for (int i=0; i<4; i++) fRec65_perm[i]=0; - for (int i=0; i<4096; i++) fYec28[i]=0; - fYec28_idx = 0; - fYec28_idx_save = 0; - for (int i=0; i<4; i++) fRec64_perm[i]=0; - for (int i=0; i<4; i++) fRec67_perm[i]=0; - for (int i=0; i<4096; i++) fYec29[i]=0; - fYec29_idx = 0; - fYec29_idx_save = 0; - for (int i=0; i<4; i++) fRec66_perm[i]=0; - for (int i=0; i<4; i++) fRec69_perm[i]=0; - for (int i=0; i<4096; i++) fYec30[i]=0; - fYec30_idx = 0; - fYec30_idx_save = 0; - for (int i=0; i<4; i++) fRec68_perm[i]=0; - for (int i=0; i<4; i++) fRec71_perm[i]=0; - for (int i=0; i<4096; i++) fYec31[i]=0; - fYec31_idx = 0; - fYec31_idx_save = 0; - for (int i=0; i<4; i++) fRec70_perm[i]=0; - for (int i=0; i<2048; i++) fYec32[i]=0; - fYec32_idx = 0; - fYec32_idx_save = 0; - for (int i=0; i<4; i++) fRec6_perm[i]=0; - for (int i=0; i<2048; i++) fYec33[i]=0; - fYec33_idx = 0; - fYec33_idx_save = 0; - for (int i=0; i<4; i++) fRec4_perm[i]=0; - for (int i=0; i<2048; i++) fYec34[i]=0; - fYec34_idx = 0; - fYec34_idx_save = 0; - for (int i=0; i<4; i++) fRec2_perm[i]=0; - for (int i=0; i<2048; i++) fYec35[i]=0; - fYec35_idx = 0; - fYec35_idx_save = 0; - for (int i=0; i<4; i++) fRec0_perm[i]=0; - for (int i=0; i<4; i++) fRec81_perm[i]=0; - for (int i=0; i<4096; i++) fYec36[i]=0; - fYec36_idx = 0; - fYec36_idx_save = 0; - for (int i=0; i<4; i++) fRec80_perm[i]=0; - for (int i=0; i<4; i++) fRec83_perm[i]=0; - for (int i=0; i<4096; i++) fYec37[i]=0; - fYec37_idx = 0; - fYec37_idx_save = 0; - for (int i=0; i<4; i++) fRec82_perm[i]=0; - for (int i=0; i<4; i++) fRec85_perm[i]=0; - for (int i=0; i<4096; i++) fYec38[i]=0; - fYec38_idx = 0; - fYec38_idx_save = 0; - for (int i=0; i<4; i++) fRec84_perm[i]=0; - for (int i=0; i<4; i++) fRec87_perm[i]=0; - for (int i=0; i<4096; i++) fYec39[i]=0; - fYec39_idx = 0; - fYec39_idx_save = 0; - for (int i=0; i<4; i++) fRec86_perm[i]=0; - for (int i=0; i<4; i++) fRec89_perm[i]=0; - for (int i=0; i<4096; i++) fYec40[i]=0; - fYec40_idx = 0; - fYec40_idx_save = 0; - for (int i=0; i<4; i++) fRec88_perm[i]=0; - for (int i=0; i<4; i++) fRec91_perm[i]=0; - for (int i=0; i<4096; i++) fYec41[i]=0; - fYec41_idx = 0; - fYec41_idx_save = 0; - for (int i=0; i<4; i++) fRec90_perm[i]=0; - for (int i=0; i<4; i++) fRec93_perm[i]=0; - for (int i=0; i<4096; i++) fYec42[i]=0; - fYec42_idx = 0; - fYec42_idx_save = 0; - for (int i=0; i<4; i++) fRec92_perm[i]=0; - for (int i=0; i<4; i++) fRec95_perm[i]=0; - for (int i=0; i<4096; i++) fYec43[i]=0; - fYec43_idx = 0; - fYec43_idx_save = 0; - for (int i=0; i<4; i++) fRec94_perm[i]=0; - for (int i=0; i<2048; i++) fYec44[i]=0; - fYec44_idx = 0; - fYec44_idx_save = 0; - for (int i=0; i<4; i++) fRec78_perm[i]=0; - for (int i=0; i<2048; i++) fYec45[i]=0; - fYec45_idx = 0; - fYec45_idx_save = 0; - for (int i=0; i<4; i++) fRec76_perm[i]=0; - for (int i=0; i<2048; i++) fYec46[i]=0; - fYec46_idx = 0; - fYec46_idx_save = 0; - for (int i=0; i<4; i++) fRec74_perm[i]=0; - for (int i=0; i<2048; i++) fYec47[i]=0; - fYec47_idx = 0; - fYec47_idx_save = 0; - for (int i=0; i<4; i++) fRec72_perm[i]=0; - } - virtual void init(int samplingFreq) { - classInit(samplingFreq); - instanceInit(samplingFreq); - } - virtual void buildUserInterface(UI* interface) { - interface->openVerticalBox("Freeverb"); - interface->addHorizontalSlider("Damp", &fslider0, 0.5f, 0.0f, 1.0f, 2.500000e-02f); - interface->addHorizontalSlider("RoomSize", &fslider1, 0.5f, 0.0f, 1.0f, 2.500000e-02f); - interface->addHorizontalSlider("Wet", &fslider2, 0.3333f, 0.0f, 1.0f, 2.500000e-02f); - interface->closeBox(); - } - virtual void compute (int fullcount, FAUSTFLOAT** input, FAUSTFLOAT** output) { - float fRec9_tmp[1024+4]; - float fRec19_tmp[1024+4]; - float fZec0[1024]; - float fRec18_tmp[1024+4]; - float fRec21_tmp[1024+4]; - float fRec20_tmp[1024+4]; - float fRec23_tmp[1024+4]; - float fRec22_tmp[1024+4]; - float fRec25_tmp[1024+4]; - float fRec24_tmp[1024+4]; - float fRec27_tmp[1024+4]; - float fRec26_tmp[1024+4]; - float fRec29_tmp[1024+4]; - float fRec28_tmp[1024+4]; - float fRec31_tmp[1024+4]; - float fRec30_tmp[1024+4]; - float fRec33_tmp[1024+4]; - float fRec32_tmp[1024+4]; - float fZec1[1024]; - float fRec16_tmp[1024+4]; - float fRec17[1024]; - float fRec14_tmp[1024+4]; - float fRec15[1024]; - float fRec12_tmp[1024+4]; - float fRec13[1024]; - float fRec10_tmp[1024+4]; - float fRec11[1024]; - float fZec2[1024]; - float fRec43_tmp[1024+4]; - float fRec42_tmp[1024+4]; - float fRec45_tmp[1024+4]; - float fRec44_tmp[1024+4]; - float fRec47_tmp[1024+4]; - float fRec46_tmp[1024+4]; - float fRec49_tmp[1024+4]; - float fRec48_tmp[1024+4]; - float fRec51_tmp[1024+4]; - float fRec50_tmp[1024+4]; - float fRec53_tmp[1024+4]; - float fRec52_tmp[1024+4]; - float fRec55_tmp[1024+4]; - float fRec54_tmp[1024+4]; - float fRec57_tmp[1024+4]; - float fRec56_tmp[1024+4]; - float fZec3[1024]; - float fRec40_tmp[1024+4]; - float fRec41[1024]; - float fRec38_tmp[1024+4]; - float fRec39[1024]; - float fRec36_tmp[1024+4]; - float fRec37[1024]; - float fRec34_tmp[1024+4]; - float fRec35[1024]; - float fZec4[1024]; - float fZec5[1024]; - float fRec8_tmp[1024+4]; - float fRec59_tmp[1024+4]; - float fRec58_tmp[1024+4]; - float fRec61_tmp[1024+4]; - float fRec60_tmp[1024+4]; - float fRec63_tmp[1024+4]; - float fRec62_tmp[1024+4]; - float fRec65_tmp[1024+4]; - float fRec64_tmp[1024+4]; - float fRec67_tmp[1024+4]; - float fRec66_tmp[1024+4]; - float fRec69_tmp[1024+4]; - float fRec68_tmp[1024+4]; - float fRec71_tmp[1024+4]; - float fRec70_tmp[1024+4]; - float fZec6[1024]; - float fRec6_tmp[1024+4]; - float fRec7[1024]; - float fRec4_tmp[1024+4]; - float fRec5[1024]; - float fRec2_tmp[1024+4]; - float fRec3[1024]; - float fRec0_tmp[1024+4]; - float fRec1[1024]; - float fRec81_tmp[1024+4]; - float fRec80_tmp[1024+4]; - float fRec83_tmp[1024+4]; - float fRec82_tmp[1024+4]; - float fRec85_tmp[1024+4]; - float fRec84_tmp[1024+4]; - float fRec87_tmp[1024+4]; - float fRec86_tmp[1024+4]; - float fRec89_tmp[1024+4]; - float fRec88_tmp[1024+4]; - float fRec91_tmp[1024+4]; - float fRec90_tmp[1024+4]; - float fRec93_tmp[1024+4]; - float fRec92_tmp[1024+4]; - float fRec95_tmp[1024+4]; - float fRec94_tmp[1024+4]; - float fZec7[1024]; - float fRec78_tmp[1024+4]; - float fRec79[1024]; - float fRec76_tmp[1024+4]; - float fRec77[1024]; - float fRec74_tmp[1024+4]; - float fRec75[1024]; - float fRec72_tmp[1024+4]; - float fRec73[1024]; - float fSlow0 = (0.4f * fslider0); - float fSlow1 = (1 - fSlow0); - float* fRec9 = &fRec9_tmp[4]; - float fSlow2 = (0.7f + (0.28f * fslider1)); - float* fRec19 = &fRec19_tmp[4]; - float* fRec18 = &fRec18_tmp[4]; - float* fRec21 = &fRec21_tmp[4]; - float* fRec20 = &fRec20_tmp[4]; - float* fRec23 = &fRec23_tmp[4]; - float* fRec22 = &fRec22_tmp[4]; - float* fRec25 = &fRec25_tmp[4]; - float* fRec24 = &fRec24_tmp[4]; - float* fRec27 = &fRec27_tmp[4]; - float* fRec26 = &fRec26_tmp[4]; - float* fRec29 = &fRec29_tmp[4]; - float* fRec28 = &fRec28_tmp[4]; - float* fRec31 = &fRec31_tmp[4]; - float* fRec30 = &fRec30_tmp[4]; - float* fRec33 = &fRec33_tmp[4]; - float* fRec32 = &fRec32_tmp[4]; - float* fRec16 = &fRec16_tmp[4]; - float* fRec14 = &fRec14_tmp[4]; - float* fRec12 = &fRec12_tmp[4]; - float* fRec10 = &fRec10_tmp[4]; - float fSlow3 = fslider2; - float fSlow4 = (1 - fSlow3); - float* fRec43 = &fRec43_tmp[4]; - float* fRec42 = &fRec42_tmp[4]; - float* fRec45 = &fRec45_tmp[4]; - float* fRec44 = &fRec44_tmp[4]; - float* fRec47 = &fRec47_tmp[4]; - float* fRec46 = &fRec46_tmp[4]; - float* fRec49 = &fRec49_tmp[4]; - float* fRec48 = &fRec48_tmp[4]; - float* fRec51 = &fRec51_tmp[4]; - float* fRec50 = &fRec50_tmp[4]; - float* fRec53 = &fRec53_tmp[4]; - float* fRec52 = &fRec52_tmp[4]; - float* fRec55 = &fRec55_tmp[4]; - float* fRec54 = &fRec54_tmp[4]; - float* fRec57 = &fRec57_tmp[4]; - float* fRec56 = &fRec56_tmp[4]; - float* fRec40 = &fRec40_tmp[4]; - float* fRec38 = &fRec38_tmp[4]; - float* fRec36 = &fRec36_tmp[4]; - float* fRec34 = &fRec34_tmp[4]; - float* fRec8 = &fRec8_tmp[4]; - float* fRec59 = &fRec59_tmp[4]; - float* fRec58 = &fRec58_tmp[4]; - float* fRec61 = &fRec61_tmp[4]; - float* fRec60 = &fRec60_tmp[4]; - float* fRec63 = &fRec63_tmp[4]; - float* fRec62 = &fRec62_tmp[4]; - float* fRec65 = &fRec65_tmp[4]; - float* fRec64 = &fRec64_tmp[4]; - float* fRec67 = &fRec67_tmp[4]; - float* fRec66 = &fRec66_tmp[4]; - float* fRec69 = &fRec69_tmp[4]; - float* fRec68 = &fRec68_tmp[4]; - float* fRec71 = &fRec71_tmp[4]; - float* fRec70 = &fRec70_tmp[4]; - float* fRec6 = &fRec6_tmp[4]; - float* fRec4 = &fRec4_tmp[4]; - float* fRec2 = &fRec2_tmp[4]; - float* fRec0 = &fRec0_tmp[4]; - float* fRec81 = &fRec81_tmp[4]; - float* fRec80 = &fRec80_tmp[4]; - float* fRec83 = &fRec83_tmp[4]; - float* fRec82 = &fRec82_tmp[4]; - float* fRec85 = &fRec85_tmp[4]; - float* fRec84 = &fRec84_tmp[4]; - float* fRec87 = &fRec87_tmp[4]; - float* fRec86 = &fRec86_tmp[4]; - float* fRec89 = &fRec89_tmp[4]; - float* fRec88 = &fRec88_tmp[4]; - float* fRec91 = &fRec91_tmp[4]; - float* fRec90 = &fRec90_tmp[4]; - float* fRec93 = &fRec93_tmp[4]; - float* fRec92 = &fRec92_tmp[4]; - float* fRec95 = &fRec95_tmp[4]; - float* fRec94 = &fRec94_tmp[4]; - float* fRec78 = &fRec78_tmp[4]; - float* fRec76 = &fRec76_tmp[4]; - float* fRec74 = &fRec74_tmp[4]; - float* fRec72 = &fRec72_tmp[4]; - int index; - for (index = 0; index <= fullcount - 1024; index += 1024) { - // compute by blocks of 1024 samples - const int count = 1024; - FAUSTFLOAT* input0 = &input[0][index]; - FAUSTFLOAT* input1 = &input[1][index]; - FAUSTFLOAT* output0 = &output[0][index]; - FAUSTFLOAT* output1 = &output[1][index]; - // SECTION : 1 - // LOOP 0x101350bc0 - // exec code - for (int i=0; i<count; i++) { - fZec0[i] = (1.500000e-02f * ((float)input0[i] + (float)input1[i])); - } - - // SECTION : 2 - // LOOP 0x10134f970 - // pre processing - for (int i=0; i<4; i++) fRec19_tmp[i]=fRec19_perm[i]; - fYec0_idx = (fYec0_idx+fYec0_idx_save)&4095; - for (int i=0; i<4; i++) fRec18_tmp[i]=fRec18_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec19[i] = ((fSlow1 * fRec18[i-1]) + (fSlow0 * fRec19[i-1])); - fYec0[(fYec0_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec19[i])); - fRec18[i] = fYec0[(fYec0_idx+i-1617)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec18_perm[i]=fRec18_tmp[count+i]; - fYec0_idx_save = count; - for (int i=0; i<4; i++) fRec19_perm[i]=fRec19_tmp[count+i]; - - // LOOP 0x101351ed0 - // pre processing - for (int i=0; i<4; i++) fRec21_tmp[i]=fRec21_perm[i]; - fYec1_idx = (fYec1_idx+fYec1_idx_save)&4095; - for (int i=0; i<4; i++) fRec20_tmp[i]=fRec20_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec21[i] = ((fSlow1 * fRec20[i-1]) + (fSlow0 * fRec21[i-1])); - fYec1[(fYec1_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec21[i])); - fRec20[i] = fYec1[(fYec1_idx+i-1557)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec20_perm[i]=fRec20_tmp[count+i]; - fYec1_idx_save = count; - for (int i=0; i<4; i++) fRec21_perm[i]=fRec21_tmp[count+i]; - - // LOOP 0x101353a50 - // pre processing - for (int i=0; i<4; i++) fRec23_tmp[i]=fRec23_perm[i]; - fYec2_idx = (fYec2_idx+fYec2_idx_save)&4095; - for (int i=0; i<4; i++) fRec22_tmp[i]=fRec22_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec23[i] = ((fSlow1 * fRec22[i-1]) + (fSlow0 * fRec23[i-1])); - fYec2[(fYec2_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec23[i])); - fRec22[i] = fYec2[(fYec2_idx+i-1491)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec22_perm[i]=fRec22_tmp[count+i]; - fYec2_idx_save = count; - for (int i=0; i<4; i++) fRec23_perm[i]=fRec23_tmp[count+i]; - - // LOOP 0x1013555d0 - // pre processing - for (int i=0; i<4; i++) fRec25_tmp[i]=fRec25_perm[i]; - fYec3_idx = (fYec3_idx+fYec3_idx_save)&4095; - for (int i=0; i<4; i++) fRec24_tmp[i]=fRec24_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec25[i] = ((fSlow1 * fRec24[i-1]) + (fSlow0 * fRec25[i-1])); - fYec3[(fYec3_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec25[i])); - fRec24[i] = fYec3[(fYec3_idx+i-1422)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec24_perm[i]=fRec24_tmp[count+i]; - fYec3_idx_save = count; - for (int i=0; i<4; i++) fRec25_perm[i]=fRec25_tmp[count+i]; - - // LOOP 0x101357120 - // pre processing - for (int i=0; i<4; i++) fRec27_tmp[i]=fRec27_perm[i]; - fYec4_idx = (fYec4_idx+fYec4_idx_save)&4095; - for (int i=0; i<4; i++) fRec26_tmp[i]=fRec26_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec27[i] = ((fSlow1 * fRec26[i-1]) + (fSlow0 * fRec27[i-1])); - fYec4[(fYec4_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec27[i])); - fRec26[i] = fYec4[(fYec4_idx+i-1356)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec26_perm[i]=fRec26_tmp[count+i]; - fYec4_idx_save = count; - for (int i=0; i<4; i++) fRec27_perm[i]=fRec27_tmp[count+i]; - - // LOOP 0x101358c70 - // pre processing - for (int i=0; i<4; i++) fRec29_tmp[i]=fRec29_perm[i]; - fYec5_idx = (fYec5_idx+fYec5_idx_save)&4095; - for (int i=0; i<4; i++) fRec28_tmp[i]=fRec28_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec29[i] = ((fSlow1 * fRec28[i-1]) + (fSlow0 * fRec29[i-1])); - fYec5[(fYec5_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec29[i])); - fRec28[i] = fYec5[(fYec5_idx+i-1277)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec28_perm[i]=fRec28_tmp[count+i]; - fYec5_idx_save = count; - for (int i=0; i<4; i++) fRec29_perm[i]=fRec29_tmp[count+i]; - - // LOOP 0x10135a7e0 - // pre processing - for (int i=0; i<4; i++) fRec31_tmp[i]=fRec31_perm[i]; - fYec6_idx = (fYec6_idx+fYec6_idx_save)&4095; - for (int i=0; i<4; i++) fRec30_tmp[i]=fRec30_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec31[i] = ((fSlow1 * fRec30[i-1]) + (fSlow0 * fRec31[i-1])); - fYec6[(fYec6_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec31[i])); - fRec30[i] = fYec6[(fYec6_idx+i-1188)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec30_perm[i]=fRec30_tmp[count+i]; - fYec6_idx_save = count; - for (int i=0; i<4; i++) fRec31_perm[i]=fRec31_tmp[count+i]; - - // LOOP 0x10135c330 - // pre processing - for (int i=0; i<4; i++) fRec33_tmp[i]=fRec33_perm[i]; - fYec7_idx = (fYec7_idx+fYec7_idx_save)&4095; - for (int i=0; i<4; i++) fRec32_tmp[i]=fRec32_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec33[i] = ((fSlow1 * fRec32[i-1]) + (fSlow0 * fRec33[i-1])); - fYec7[(fYec7_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec33[i])); - fRec32[i] = fYec7[(fYec7_idx+i-1116)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec32_perm[i]=fRec32_tmp[count+i]; - fYec7_idx_save = count; - for (int i=0; i<4; i++) fRec33_perm[i]=fRec33_tmp[count+i]; - - // LOOP 0x101364b70 - // pre processing - for (int i=0; i<4; i++) fRec43_tmp[i]=fRec43_perm[i]; - fYec12_idx = (fYec12_idx+fYec12_idx_save)&4095; - for (int i=0; i<4; i++) fRec42_tmp[i]=fRec42_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec43[i] = ((fSlow1 * fRec42[i-1]) + (fSlow0 * fRec43[i-1])); - fYec12[(fYec12_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec43[i])); - fRec42[i] = fYec12[(fYec12_idx+i-1640)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec42_perm[i]=fRec42_tmp[count+i]; - fYec12_idx_save = count; - for (int i=0; i<4; i++) fRec43_perm[i]=fRec43_tmp[count+i]; - - // LOOP 0x1013667b0 - // pre processing - for (int i=0; i<4; i++) fRec45_tmp[i]=fRec45_perm[i]; - fYec13_idx = (fYec13_idx+fYec13_idx_save)&4095; - for (int i=0; i<4; i++) fRec44_tmp[i]=fRec44_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec45[i] = ((fSlow1 * fRec44[i-1]) + (fSlow0 * fRec45[i-1])); - fYec13[(fYec13_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec45[i])); - fRec44[i] = fYec13[(fYec13_idx+i-1580)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec44_perm[i]=fRec44_tmp[count+i]; - fYec13_idx_save = count; - for (int i=0; i<4; i++) fRec45_perm[i]=fRec45_tmp[count+i]; - - // LOOP 0x101368330 - // pre processing - for (int i=0; i<4; i++) fRec47_tmp[i]=fRec47_perm[i]; - fYec14_idx = (fYec14_idx+fYec14_idx_save)&4095; - for (int i=0; i<4; i++) fRec46_tmp[i]=fRec46_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec47[i] = ((fSlow1 * fRec46[i-1]) + (fSlow0 * fRec47[i-1])); - fYec14[(fYec14_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec47[i])); - fRec46[i] = fYec14[(fYec14_idx+i-1514)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec46_perm[i]=fRec46_tmp[count+i]; - fYec14_idx_save = count; - for (int i=0; i<4; i++) fRec47_perm[i]=fRec47_tmp[count+i]; - - // LOOP 0x101369f40 - // pre processing - for (int i=0; i<4; i++) fRec49_tmp[i]=fRec49_perm[i]; - fYec15_idx = (fYec15_idx+fYec15_idx_save)&4095; - for (int i=0; i<4; i++) fRec48_tmp[i]=fRec48_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec49[i] = ((fSlow1 * fRec48[i-1]) + (fSlow0 * fRec49[i-1])); - fYec15[(fYec15_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec49[i])); - fRec48[i] = fYec15[(fYec15_idx+i-1445)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec48_perm[i]=fRec48_tmp[count+i]; - fYec15_idx_save = count; - for (int i=0; i<4; i++) fRec49_perm[i]=fRec49_tmp[count+i]; - - // LOOP 0x10136bae0 - // pre processing - for (int i=0; i<4; i++) fRec51_tmp[i]=fRec51_perm[i]; - fYec16_idx = (fYec16_idx+fYec16_idx_save)&4095; - for (int i=0; i<4; i++) fRec50_tmp[i]=fRec50_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec51[i] = ((fSlow1 * fRec50[i-1]) + (fSlow0 * fRec51[i-1])); - fYec16[(fYec16_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec51[i])); - fRec50[i] = fYec16[(fYec16_idx+i-1379)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec50_perm[i]=fRec50_tmp[count+i]; - fYec16_idx_save = count; - for (int i=0; i<4; i++) fRec51_perm[i]=fRec51_tmp[count+i]; - - // LOOP 0x10136d660 - // pre processing - for (int i=0; i<4; i++) fRec53_tmp[i]=fRec53_perm[i]; - fYec17_idx = (fYec17_idx+fYec17_idx_save)&4095; - for (int i=0; i<4; i++) fRec52_tmp[i]=fRec52_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec53[i] = ((fSlow1 * fRec52[i-1]) + (fSlow0 * fRec53[i-1])); - fYec17[(fYec17_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec53[i])); - fRec52[i] = fYec17[(fYec17_idx+i-1300)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec52_perm[i]=fRec52_tmp[count+i]; - fYec17_idx_save = count; - for (int i=0; i<4; i++) fRec53_perm[i]=fRec53_tmp[count+i]; - - // LOOP 0x10136f1e0 - // pre processing - for (int i=0; i<4; i++) fRec55_tmp[i]=fRec55_perm[i]; - fYec18_idx = (fYec18_idx+fYec18_idx_save)&4095; - for (int i=0; i<4; i++) fRec54_tmp[i]=fRec54_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec55[i] = ((fSlow1 * fRec54[i-1]) + (fSlow0 * fRec55[i-1])); - fYec18[(fYec18_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec55[i])); - fRec54[i] = fYec18[(fYec18_idx+i-1211)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec54_perm[i]=fRec54_tmp[count+i]; - fYec18_idx_save = count; - for (int i=0; i<4; i++) fRec55_perm[i]=fRec55_tmp[count+i]; - - // LOOP 0x101370d60 - // pre processing - for (int i=0; i<4; i++) fRec57_tmp[i]=fRec57_perm[i]; - fYec19_idx = (fYec19_idx+fYec19_idx_save)&4095; - for (int i=0; i<4; i++) fRec56_tmp[i]=fRec56_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec57[i] = ((fSlow1 * fRec56[i-1]) + (fSlow0 * fRec57[i-1])); - fYec19[(fYec19_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec57[i])); - fRec56[i] = fYec19[(fYec19_idx+i-1139)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec56_perm[i]=fRec56_tmp[count+i]; - fYec19_idx_save = count; - for (int i=0; i<4; i++) fRec57_perm[i]=fRec57_tmp[count+i]; - - // SECTION : 3 - // LOOP 0x10134f870 - // exec code - for (int i=0; i<count; i++) { - fZec1[i] = (((((((fRec32[i] + fRec30[i]) + fRec28[i]) + fRec26[i]) + fRec24[i]) + fRec22[i]) + fRec20[i]) + fRec18[i]); - } - - // LOOP 0x101364a70 - // exec code - for (int i=0; i<count; i++) { - fZec3[i] = (((((((fRec56[i] + fRec54[i]) + fRec52[i]) + fRec50[i]) + fRec48[i]) + fRec46[i]) + fRec44[i]) + fRec42[i]); - } - - // SECTION : 4 - // LOOP 0x10134f120 - // pre processing - fYec8_idx = (fYec8_idx+fYec8_idx_save)&2047; - for (int i=0; i<4; i++) fRec16_tmp[i]=fRec16_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec8[(fYec8_idx+i)&2047] = (fZec1[i] + (0.5f * fRec16[i-1])); - fRec16[i] = fYec8[(fYec8_idx+i-556)&2047]; - fRec17[i] = (0 - (fZec1[i] - fRec16[i-1])); - } - // post processing - for (int i=0; i<4; i++) fRec16_perm[i]=fRec16_tmp[count+i]; - fYec8_idx_save = count; - - // LOOP 0x101364320 - // pre processing - fYec20_idx = (fYec20_idx+fYec20_idx_save)&2047; - for (int i=0; i<4; i++) fRec40_tmp[i]=fRec40_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec20[(fYec20_idx+i)&2047] = (fZec3[i] + (0.5f * fRec40[i-1])); - fRec40[i] = fYec20[(fYec20_idx+i-579)&2047]; - fRec41[i] = (0 - (fZec3[i] - fRec40[i-1])); - } - // post processing - for (int i=0; i<4; i++) fRec40_perm[i]=fRec40_tmp[count+i]; - fYec20_idx_save = count; - - // SECTION : 5 - // LOOP 0x10134e9d0 - // pre processing - fYec9_idx = (fYec9_idx+fYec9_idx_save)&2047; - for (int i=0; i<4; i++) fRec14_tmp[i]=fRec14_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec9[(fYec9_idx+i)&2047] = (fRec17[i] + (0.5f * fRec14[i-1])); - fRec14[i] = fYec9[(fYec9_idx+i-441)&2047]; - fRec15[i] = (fRec14[i-1] - fRec17[i]); - } - // post processing - for (int i=0; i<4; i++) fRec14_perm[i]=fRec14_tmp[count+i]; - fYec9_idx_save = count; - - // LOOP 0x101363bd0 - // pre processing - fYec21_idx = (fYec21_idx+fYec21_idx_save)&2047; - for (int i=0; i<4; i++) fRec38_tmp[i]=fRec38_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec21[(fYec21_idx+i)&2047] = (fRec41[i] + (0.5f * fRec38[i-1])); - fRec38[i] = fYec21[(fYec21_idx+i-464)&2047]; - fRec39[i] = (fRec38[i-1] - fRec41[i]); - } - // post processing - for (int i=0; i<4; i++) fRec38_perm[i]=fRec38_tmp[count+i]; - fYec21_idx_save = count; - - // SECTION : 6 - // LOOP 0x10134e2a0 - // pre processing - fYec10_idx = (fYec10_idx+fYec10_idx_save)&2047; - for (int i=0; i<4; i++) fRec12_tmp[i]=fRec12_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec10[(fYec10_idx+i)&2047] = (fRec15[i] + (0.5f * fRec12[i-1])); - fRec12[i] = fYec10[(fYec10_idx+i-341)&2047]; - fRec13[i] = (fRec12[i-1] - fRec15[i]); - } - // post processing - for (int i=0; i<4; i++) fRec12_perm[i]=fRec12_tmp[count+i]; - fYec10_idx_save = count; - - // LOOP 0x1013634a0 - // pre processing - fYec22_idx = (fYec22_idx+fYec22_idx_save)&2047; - for (int i=0; i<4; i++) fRec36_tmp[i]=fRec36_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec22[(fYec22_idx+i)&2047] = (fRec39[i] + (0.5f * fRec36[i-1])); - fRec36[i] = fYec22[(fYec22_idx+i-364)&2047]; - fRec37[i] = (fRec36[i-1] - fRec39[i]); - } - // post processing - for (int i=0; i<4; i++) fRec36_perm[i]=fRec36_tmp[count+i]; - fYec22_idx_save = count; - - // SECTION : 7 - // LOOP 0x10134dba0 - // pre processing - fYec11_idx = (fYec11_idx+fYec11_idx_save)&2047; - for (int i=0; i<4; i++) fRec10_tmp[i]=fRec10_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec11[(fYec11_idx+i)&2047] = (fRec13[i] + (0.5f * fRec10[i-1])); - fRec10[i] = fYec11[(fYec11_idx+i-225)&2047]; - fRec11[i] = (fRec10[i-1] - fRec13[i]); - } - // post processing - for (int i=0; i<4; i++) fRec10_perm[i]=fRec10_tmp[count+i]; - fYec11_idx_save = count; - - // LOOP 0x101362e30 - // pre processing - fYec23_idx = (fYec23_idx+fYec23_idx_save)&2047; - for (int i=0; i<4; i++) fRec34_tmp[i]=fRec34_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec23[(fYec23_idx+i)&2047] = (fRec37[i] + (0.5f * fRec34[i-1])); - fRec34[i] = fYec23[(fYec23_idx+i-248)&2047]; - fRec35[i] = (fRec34[i-1] - fRec37[i]); - } - // post processing - for (int i=0; i<4; i++) fRec34_perm[i]=fRec34_tmp[count+i]; - fYec23_idx_save = count; - - // SECTION : 8 - // LOOP 0x10134daa0 - // exec code - for (int i=0; i<count; i++) { - fZec2[i] = ((fSlow4 * (float)input0[i]) + (fSlow3 * fRec11[i])); - } - - // LOOP 0x101362d30 - // exec code - for (int i=0; i<count; i++) { - fZec4[i] = ((fSlow4 * (float)input1[i]) + (fSlow3 * fRec35[i])); - } - - // SECTION : 9 - // LOOP 0x10134d9a0 - // exec code - for (int i=0; i<count; i++) { - fZec5[i] = (1.500000e-02f * (fZec4[i] + fZec2[i])); - } - - // SECTION : 10 - // LOOP 0x10134b4b0 - // pre processing - for (int i=0; i<4; i++) fRec9_tmp[i]=fRec9_perm[i]; - fYec24_idx = (fYec24_idx+fYec24_idx_save)&4095; - for (int i=0; i<4; i++) fRec8_tmp[i]=fRec8_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec9[i] = ((fSlow1 * fRec8[i-1]) + (fSlow0 * fRec9[i-1])); - fYec24[(fYec24_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec9[i])); - fRec8[i] = fYec24[(fYec24_idx+i-1617)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec8_perm[i]=fRec8_tmp[count+i]; - fYec24_idx_save = count; - for (int i=0; i<4; i++) fRec9_perm[i]=fRec9_tmp[count+i]; - - // LOOP 0x101377dc0 - // pre processing - for (int i=0; i<4; i++) fRec59_tmp[i]=fRec59_perm[i]; - fYec25_idx = (fYec25_idx+fYec25_idx_save)&4095; - for (int i=0; i<4; i++) fRec58_tmp[i]=fRec58_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec59[i] = ((fSlow1 * fRec58[i-1]) + (fSlow0 * fRec59[i-1])); - fYec25[(fYec25_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec59[i])); - fRec58[i] = fYec25[(fYec25_idx+i-1557)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec58_perm[i]=fRec58_tmp[count+i]; - fYec25_idx_save = count; - for (int i=0; i<4; i++) fRec59_perm[i]=fRec59_tmp[count+i]; - - // LOOP 0x101379900 - // pre processing - for (int i=0; i<4; i++) fRec61_tmp[i]=fRec61_perm[i]; - fYec26_idx = (fYec26_idx+fYec26_idx_save)&4095; - for (int i=0; i<4; i++) fRec60_tmp[i]=fRec60_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec61[i] = ((fSlow1 * fRec60[i-1]) + (fSlow0 * fRec61[i-1])); - fYec26[(fYec26_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec61[i])); - fRec60[i] = fYec26[(fYec26_idx+i-1491)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec60_perm[i]=fRec60_tmp[count+i]; - fYec26_idx_save = count; - for (int i=0; i<4; i++) fRec61_perm[i]=fRec61_tmp[count+i]; - - // LOOP 0x10137b480 - // pre processing - for (int i=0; i<4; i++) fRec63_tmp[i]=fRec63_perm[i]; - fYec27_idx = (fYec27_idx+fYec27_idx_save)&4095; - for (int i=0; i<4; i++) fRec62_tmp[i]=fRec62_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec63[i] = ((fSlow1 * fRec62[i-1]) + (fSlow0 * fRec63[i-1])); - fYec27[(fYec27_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec63[i])); - fRec62[i] = fYec27[(fYec27_idx+i-1422)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec62_perm[i]=fRec62_tmp[count+i]; - fYec27_idx_save = count; - for (int i=0; i<4; i++) fRec63_perm[i]=fRec63_tmp[count+i]; - - // LOOP 0x10137d000 - // pre processing - for (int i=0; i<4; i++) fRec65_tmp[i]=fRec65_perm[i]; - fYec28_idx = (fYec28_idx+fYec28_idx_save)&4095; - for (int i=0; i<4; i++) fRec64_tmp[i]=fRec64_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec65[i] = ((fSlow1 * fRec64[i-1]) + (fSlow0 * fRec65[i-1])); - fYec28[(fYec28_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec65[i])); - fRec64[i] = fYec28[(fYec28_idx+i-1356)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec64_perm[i]=fRec64_tmp[count+i]; - fYec28_idx_save = count; - for (int i=0; i<4; i++) fRec65_perm[i]=fRec65_tmp[count+i]; - - // LOOP 0x10137eb80 - // pre processing - for (int i=0; i<4; i++) fRec67_tmp[i]=fRec67_perm[i]; - fYec29_idx = (fYec29_idx+fYec29_idx_save)&4095; - for (int i=0; i<4; i++) fRec66_tmp[i]=fRec66_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec67[i] = ((fSlow1 * fRec66[i-1]) + (fSlow0 * fRec67[i-1])); - fYec29[(fYec29_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec67[i])); - fRec66[i] = fYec29[(fYec29_idx+i-1277)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec66_perm[i]=fRec66_tmp[count+i]; - fYec29_idx_save = count; - for (int i=0; i<4; i++) fRec67_perm[i]=fRec67_tmp[count+i]; - - // LOOP 0x101380700 - // pre processing - for (int i=0; i<4; i++) fRec69_tmp[i]=fRec69_perm[i]; - fYec30_idx = (fYec30_idx+fYec30_idx_save)&4095; - for (int i=0; i<4; i++) fRec68_tmp[i]=fRec68_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec69[i] = ((fSlow1 * fRec68[i-1]) + (fSlow0 * fRec69[i-1])); - fYec30[(fYec30_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec69[i])); - fRec68[i] = fYec30[(fYec30_idx+i-1188)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec68_perm[i]=fRec68_tmp[count+i]; - fYec30_idx_save = count; - for (int i=0; i<4; i++) fRec69_perm[i]=fRec69_tmp[count+i]; - - // LOOP 0x101382280 - // pre processing - for (int i=0; i<4; i++) fRec71_tmp[i]=fRec71_perm[i]; - fYec31_idx = (fYec31_idx+fYec31_idx_save)&4095; - for (int i=0; i<4; i++) fRec70_tmp[i]=fRec70_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec71[i] = ((fSlow1 * fRec70[i-1]) + (fSlow0 * fRec71[i-1])); - fYec31[(fYec31_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec71[i])); - fRec70[i] = fYec31[(fYec31_idx+i-1116)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec70_perm[i]=fRec70_tmp[count+i]; - fYec31_idx_save = count; - for (int i=0; i<4; i++) fRec71_perm[i]=fRec71_tmp[count+i]; - - // LOOP 0x101389fc0 - // pre processing - for (int i=0; i<4; i++) fRec81_tmp[i]=fRec81_perm[i]; - fYec36_idx = (fYec36_idx+fYec36_idx_save)&4095; - for (int i=0; i<4; i++) fRec80_tmp[i]=fRec80_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec81[i] = ((fSlow1 * fRec80[i-1]) + (fSlow0 * fRec81[i-1])); - fYec36[(fYec36_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec81[i])); - fRec80[i] = fYec36[(fYec36_idx+i-1640)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec80_perm[i]=fRec80_tmp[count+i]; - fYec36_idx_save = count; - for (int i=0; i<4; i++) fRec81_perm[i]=fRec81_tmp[count+i]; - - // LOOP 0x10138bc10 - // pre processing - for (int i=0; i<4; i++) fRec83_tmp[i]=fRec83_perm[i]; - fYec37_idx = (fYec37_idx+fYec37_idx_save)&4095; - for (int i=0; i<4; i++) fRec82_tmp[i]=fRec82_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec83[i] = ((fSlow1 * fRec82[i-1]) + (fSlow0 * fRec83[i-1])); - fYec37[(fYec37_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec83[i])); - fRec82[i] = fYec37[(fYec37_idx+i-1580)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec82_perm[i]=fRec82_tmp[count+i]; - fYec37_idx_save = count; - for (int i=0; i<4; i++) fRec83_perm[i]=fRec83_tmp[count+i]; - - // LOOP 0x10138d7b0 - // pre processing - for (int i=0; i<4; i++) fRec85_tmp[i]=fRec85_perm[i]; - fYec38_idx = (fYec38_idx+fYec38_idx_save)&4095; - for (int i=0; i<4; i++) fRec84_tmp[i]=fRec84_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec85[i] = ((fSlow1 * fRec84[i-1]) + (fSlow0 * fRec85[i-1])); - fYec38[(fYec38_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec85[i])); - fRec84[i] = fYec38[(fYec38_idx+i-1514)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec84_perm[i]=fRec84_tmp[count+i]; - fYec38_idx_save = count; - for (int i=0; i<4; i++) fRec85_perm[i]=fRec85_tmp[count+i]; - - // LOOP 0x10138f330 - // pre processing - for (int i=0; i<4; i++) fRec87_tmp[i]=fRec87_perm[i]; - fYec39_idx = (fYec39_idx+fYec39_idx_save)&4095; - for (int i=0; i<4; i++) fRec86_tmp[i]=fRec86_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec87[i] = ((fSlow1 * fRec86[i-1]) + (fSlow0 * fRec87[i-1])); - fYec39[(fYec39_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec87[i])); - fRec86[i] = fYec39[(fYec39_idx+i-1445)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec86_perm[i]=fRec86_tmp[count+i]; - fYec39_idx_save = count; - for (int i=0; i<4; i++) fRec87_perm[i]=fRec87_tmp[count+i]; - - // LOOP 0x101390eb0 - // pre processing - for (int i=0; i<4; i++) fRec89_tmp[i]=fRec89_perm[i]; - fYec40_idx = (fYec40_idx+fYec40_idx_save)&4095; - for (int i=0; i<4; i++) fRec88_tmp[i]=fRec88_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec89[i] = ((fSlow1 * fRec88[i-1]) + (fSlow0 * fRec89[i-1])); - fYec40[(fYec40_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec89[i])); - fRec88[i] = fYec40[(fYec40_idx+i-1379)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec88_perm[i]=fRec88_tmp[count+i]; - fYec40_idx_save = count; - for (int i=0; i<4; i++) fRec89_perm[i]=fRec89_tmp[count+i]; - - // LOOP 0x101392a30 - // pre processing - for (int i=0; i<4; i++) fRec91_tmp[i]=fRec91_perm[i]; - fYec41_idx = (fYec41_idx+fYec41_idx_save)&4095; - for (int i=0; i<4; i++) fRec90_tmp[i]=fRec90_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec91[i] = ((fSlow1 * fRec90[i-1]) + (fSlow0 * fRec91[i-1])); - fYec41[(fYec41_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec91[i])); - fRec90[i] = fYec41[(fYec41_idx+i-1300)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec90_perm[i]=fRec90_tmp[count+i]; - fYec41_idx_save = count; - for (int i=0; i<4; i++) fRec91_perm[i]=fRec91_tmp[count+i]; - - // LOOP 0x1013945b0 - // pre processing - for (int i=0; i<4; i++) fRec93_tmp[i]=fRec93_perm[i]; - fYec42_idx = (fYec42_idx+fYec42_idx_save)&4095; - for (int i=0; i<4; i++) fRec92_tmp[i]=fRec92_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec93[i] = ((fSlow1 * fRec92[i-1]) + (fSlow0 * fRec93[i-1])); - fYec42[(fYec42_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec93[i])); - fRec92[i] = fYec42[(fYec42_idx+i-1211)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec92_perm[i]=fRec92_tmp[count+i]; - fYec42_idx_save = count; - for (int i=0; i<4; i++) fRec93_perm[i]=fRec93_tmp[count+i]; - - // LOOP 0x101396130 - // pre processing - for (int i=0; i<4; i++) fRec95_tmp[i]=fRec95_perm[i]; - fYec43_idx = (fYec43_idx+fYec43_idx_save)&4095; - for (int i=0; i<4; i++) fRec94_tmp[i]=fRec94_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec95[i] = ((fSlow1 * fRec94[i-1]) + (fSlow0 * fRec95[i-1])); - fYec43[(fYec43_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec95[i])); - fRec94[i] = fYec43[(fYec43_idx+i-1139)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec94_perm[i]=fRec94_tmp[count+i]; - fYec43_idx_save = count; - for (int i=0; i<4; i++) fRec95_perm[i]=fRec95_tmp[count+i]; - - // SECTION : 11 - // LOOP 0x10134b3b0 - // exec code - for (int i=0; i<count; i++) { - fZec6[i] = (((((((fRec70[i] + fRec68[i]) + fRec66[i]) + fRec64[i]) + fRec62[i]) + fRec60[i]) + fRec58[i]) + fRec8[i]); - } - - // LOOP 0x101389ec0 - // exec code - for (int i=0; i<count; i++) { - fZec7[i] = (((((((fRec94[i] + fRec92[i]) + fRec90[i]) + fRec88[i]) + fRec86[i]) + fRec84[i]) + fRec82[i]) + fRec80[i]); - } - - // SECTION : 12 - // LOOP 0x10134acd0 - // pre processing - fYec32_idx = (fYec32_idx+fYec32_idx_save)&2047; - for (int i=0; i<4; i++) fRec6_tmp[i]=fRec6_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec32[(fYec32_idx+i)&2047] = (fZec6[i] + (0.5f * fRec6[i-1])); - fRec6[i] = fYec32[(fYec32_idx+i-556)&2047]; - fRec7[i] = (0 - (fZec6[i] - fRec6[i-1])); - } - // post processing - for (int i=0; i<4; i++) fRec6_perm[i]=fRec6_tmp[count+i]; - fYec32_idx_save = count; - - // LOOP 0x1013897e0 - // pre processing - fYec44_idx = (fYec44_idx+fYec44_idx_save)&2047; - for (int i=0; i<4; i++) fRec78_tmp[i]=fRec78_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec44[(fYec44_idx+i)&2047] = (fZec7[i] + (0.5f * fRec78[i-1])); - fRec78[i] = fYec44[(fYec44_idx+i-579)&2047]; - fRec79[i] = (0 - (fZec7[i] - fRec78[i-1])); - } - // post processing - for (int i=0; i<4; i++) fRec78_perm[i]=fRec78_tmp[count+i]; - fYec44_idx_save = count; - - // SECTION : 13 - // LOOP 0x10134a5f0 - // pre processing - fYec33_idx = (fYec33_idx+fYec33_idx_save)&2047; - for (int i=0; i<4; i++) fRec4_tmp[i]=fRec4_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec33[(fYec33_idx+i)&2047] = (fRec7[i] + (0.5f * fRec4[i-1])); - fRec4[i] = fYec33[(fYec33_idx+i-441)&2047]; - fRec5[i] = (fRec4[i-1] - fRec7[i]); - } - // post processing - for (int i=0; i<4; i++) fRec4_perm[i]=fRec4_tmp[count+i]; - fYec33_idx_save = count; - - // LOOP 0x101389100 - // pre processing - fYec45_idx = (fYec45_idx+fYec45_idx_save)&2047; - for (int i=0; i<4; i++) fRec76_tmp[i]=fRec76_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec45[(fYec45_idx+i)&2047] = (fRec79[i] + (0.5f * fRec76[i-1])); - fRec76[i] = fYec45[(fYec45_idx+i-464)&2047]; - fRec77[i] = (fRec76[i-1] - fRec79[i]); - } - // post processing - for (int i=0; i<4; i++) fRec76_perm[i]=fRec76_tmp[count+i]; - fYec45_idx_save = count; - - // SECTION : 14 - // LOOP 0x101349f10 - // pre processing - fYec34_idx = (fYec34_idx+fYec34_idx_save)&2047; - for (int i=0; i<4; i++) fRec2_tmp[i]=fRec2_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec34[(fYec34_idx+i)&2047] = (fRec5[i] + (0.5f * fRec2[i-1])); - fRec2[i] = fYec34[(fYec34_idx+i-341)&2047]; - fRec3[i] = (fRec2[i-1] - fRec5[i]); - } - // post processing - for (int i=0; i<4; i++) fRec2_perm[i]=fRec2_tmp[count+i]; - fYec34_idx_save = count; - - // LOOP 0x101388a20 - // pre processing - fYec46_idx = (fYec46_idx+fYec46_idx_save)&2047; - for (int i=0; i<4; i++) fRec74_tmp[i]=fRec74_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec46[(fYec46_idx+i)&2047] = (fRec77[i] + (0.5f * fRec74[i-1])); - fRec74[i] = fYec46[(fYec46_idx+i-364)&2047]; - fRec75[i] = (fRec74[i-1] - fRec77[i]); - } - // post processing - for (int i=0; i<4; i++) fRec74_perm[i]=fRec74_tmp[count+i]; - fYec46_idx_save = count; - - // SECTION : 15 - // LOOP 0x101349700 - // pre processing - fYec35_idx = (fYec35_idx+fYec35_idx_save)&2047; - for (int i=0; i<4; i++) fRec0_tmp[i]=fRec0_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec35[(fYec35_idx+i)&2047] = (fRec3[i] + (0.5f * fRec0[i-1])); - fRec0[i] = fYec35[(fYec35_idx+i-225)&2047]; - fRec1[i] = (fRec0[i-1] - fRec3[i]); - } - // post processing - for (int i=0; i<4; i++) fRec0_perm[i]=fRec0_tmp[count+i]; - fYec35_idx_save = count; - - // LOOP 0x1013883a0 - // pre processing - fYec47_idx = (fYec47_idx+fYec47_idx_save)&2047; - for (int i=0; i<4; i++) fRec72_tmp[i]=fRec72_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec47[(fYec47_idx+i)&2047] = (fRec75[i] + (0.5f * fRec72[i-1])); - fRec72[i] = fYec47[(fYec47_idx+i-248)&2047]; - fRec73[i] = (fRec72[i-1] - fRec75[i]); - } - // post processing - for (int i=0; i<4; i++) fRec72_perm[i]=fRec72_tmp[count+i]; - fYec47_idx_save = count; - - // SECTION : 16 - // LOOP 0x101349600 - // exec code - for (int i=0; i<count; i++) { - output0[i] = (FAUSTFLOAT)((fSlow4 * fZec2[i]) + (fSlow3 * fRec1[i])); - } - - // LOOP 0x1013881d0 - // exec code - for (int i=0; i<count; i++) { - output1[i] = (FAUSTFLOAT)((fSlow4 * fZec4[i]) + (fSlow3 * fRec73[i])); - } - - } - if (index < fullcount) { - // compute the remaining samples if any - int count = fullcount-index; - FAUSTFLOAT* input0 = &input[0][index]; - FAUSTFLOAT* input1 = &input[1][index]; - FAUSTFLOAT* output0 = &output[0][index]; - FAUSTFLOAT* output1 = &output[1][index]; - // SECTION : 1 - // LOOP 0x101350bc0 - // exec code - for (int i=0; i<count; i++) { - fZec0[i] = (1.500000e-02f * ((float)input0[i] + (float)input1[i])); - } - - // SECTION : 2 - // LOOP 0x10134f970 - // pre processing - for (int i=0; i<4; i++) fRec19_tmp[i]=fRec19_perm[i]; - fYec0_idx = (fYec0_idx+fYec0_idx_save)&4095; - for (int i=0; i<4; i++) fRec18_tmp[i]=fRec18_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec19[i] = ((fSlow1 * fRec18[i-1]) + (fSlow0 * fRec19[i-1])); - fYec0[(fYec0_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec19[i])); - fRec18[i] = fYec0[(fYec0_idx+i-1617)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec18_perm[i]=fRec18_tmp[count+i]; - fYec0_idx_save = count; - for (int i=0; i<4; i++) fRec19_perm[i]=fRec19_tmp[count+i]; - - // LOOP 0x101351ed0 - // pre processing - for (int i=0; i<4; i++) fRec21_tmp[i]=fRec21_perm[i]; - fYec1_idx = (fYec1_idx+fYec1_idx_save)&4095; - for (int i=0; i<4; i++) fRec20_tmp[i]=fRec20_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec21[i] = ((fSlow1 * fRec20[i-1]) + (fSlow0 * fRec21[i-1])); - fYec1[(fYec1_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec21[i])); - fRec20[i] = fYec1[(fYec1_idx+i-1557)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec20_perm[i]=fRec20_tmp[count+i]; - fYec1_idx_save = count; - for (int i=0; i<4; i++) fRec21_perm[i]=fRec21_tmp[count+i]; - - // LOOP 0x101353a50 - // pre processing - for (int i=0; i<4; i++) fRec23_tmp[i]=fRec23_perm[i]; - fYec2_idx = (fYec2_idx+fYec2_idx_save)&4095; - for (int i=0; i<4; i++) fRec22_tmp[i]=fRec22_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec23[i] = ((fSlow1 * fRec22[i-1]) + (fSlow0 * fRec23[i-1])); - fYec2[(fYec2_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec23[i])); - fRec22[i] = fYec2[(fYec2_idx+i-1491)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec22_perm[i]=fRec22_tmp[count+i]; - fYec2_idx_save = count; - for (int i=0; i<4; i++) fRec23_perm[i]=fRec23_tmp[count+i]; - - // LOOP 0x1013555d0 - // pre processing - for (int i=0; i<4; i++) fRec25_tmp[i]=fRec25_perm[i]; - fYec3_idx = (fYec3_idx+fYec3_idx_save)&4095; - for (int i=0; i<4; i++) fRec24_tmp[i]=fRec24_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec25[i] = ((fSlow1 * fRec24[i-1]) + (fSlow0 * fRec25[i-1])); - fYec3[(fYec3_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec25[i])); - fRec24[i] = fYec3[(fYec3_idx+i-1422)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec24_perm[i]=fRec24_tmp[count+i]; - fYec3_idx_save = count; - for (int i=0; i<4; i++) fRec25_perm[i]=fRec25_tmp[count+i]; - - // LOOP 0x101357120 - // pre processing - for (int i=0; i<4; i++) fRec27_tmp[i]=fRec27_perm[i]; - fYec4_idx = (fYec4_idx+fYec4_idx_save)&4095; - for (int i=0; i<4; i++) fRec26_tmp[i]=fRec26_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec27[i] = ((fSlow1 * fRec26[i-1]) + (fSlow0 * fRec27[i-1])); - fYec4[(fYec4_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec27[i])); - fRec26[i] = fYec4[(fYec4_idx+i-1356)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec26_perm[i]=fRec26_tmp[count+i]; - fYec4_idx_save = count; - for (int i=0; i<4; i++) fRec27_perm[i]=fRec27_tmp[count+i]; - - // LOOP 0x101358c70 - // pre processing - for (int i=0; i<4; i++) fRec29_tmp[i]=fRec29_perm[i]; - fYec5_idx = (fYec5_idx+fYec5_idx_save)&4095; - for (int i=0; i<4; i++) fRec28_tmp[i]=fRec28_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec29[i] = ((fSlow1 * fRec28[i-1]) + (fSlow0 * fRec29[i-1])); - fYec5[(fYec5_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec29[i])); - fRec28[i] = fYec5[(fYec5_idx+i-1277)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec28_perm[i]=fRec28_tmp[count+i]; - fYec5_idx_save = count; - for (int i=0; i<4; i++) fRec29_perm[i]=fRec29_tmp[count+i]; - - // LOOP 0x10135a7e0 - // pre processing - for (int i=0; i<4; i++) fRec31_tmp[i]=fRec31_perm[i]; - fYec6_idx = (fYec6_idx+fYec6_idx_save)&4095; - for (int i=0; i<4; i++) fRec30_tmp[i]=fRec30_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec31[i] = ((fSlow1 * fRec30[i-1]) + (fSlow0 * fRec31[i-1])); - fYec6[(fYec6_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec31[i])); - fRec30[i] = fYec6[(fYec6_idx+i-1188)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec30_perm[i]=fRec30_tmp[count+i]; - fYec6_idx_save = count; - for (int i=0; i<4; i++) fRec31_perm[i]=fRec31_tmp[count+i]; - - // LOOP 0x10135c330 - // pre processing - for (int i=0; i<4; i++) fRec33_tmp[i]=fRec33_perm[i]; - fYec7_idx = (fYec7_idx+fYec7_idx_save)&4095; - for (int i=0; i<4; i++) fRec32_tmp[i]=fRec32_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec33[i] = ((fSlow1 * fRec32[i-1]) + (fSlow0 * fRec33[i-1])); - fYec7[(fYec7_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec33[i])); - fRec32[i] = fYec7[(fYec7_idx+i-1116)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec32_perm[i]=fRec32_tmp[count+i]; - fYec7_idx_save = count; - for (int i=0; i<4; i++) fRec33_perm[i]=fRec33_tmp[count+i]; - - // LOOP 0x101364b70 - // pre processing - for (int i=0; i<4; i++) fRec43_tmp[i]=fRec43_perm[i]; - fYec12_idx = (fYec12_idx+fYec12_idx_save)&4095; - for (int i=0; i<4; i++) fRec42_tmp[i]=fRec42_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec43[i] = ((fSlow1 * fRec42[i-1]) + (fSlow0 * fRec43[i-1])); - fYec12[(fYec12_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec43[i])); - fRec42[i] = fYec12[(fYec12_idx+i-1640)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec42_perm[i]=fRec42_tmp[count+i]; - fYec12_idx_save = count; - for (int i=0; i<4; i++) fRec43_perm[i]=fRec43_tmp[count+i]; - - // LOOP 0x1013667b0 - // pre processing - for (int i=0; i<4; i++) fRec45_tmp[i]=fRec45_perm[i]; - fYec13_idx = (fYec13_idx+fYec13_idx_save)&4095; - for (int i=0; i<4; i++) fRec44_tmp[i]=fRec44_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec45[i] = ((fSlow1 * fRec44[i-1]) + (fSlow0 * fRec45[i-1])); - fYec13[(fYec13_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec45[i])); - fRec44[i] = fYec13[(fYec13_idx+i-1580)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec44_perm[i]=fRec44_tmp[count+i]; - fYec13_idx_save = count; - for (int i=0; i<4; i++) fRec45_perm[i]=fRec45_tmp[count+i]; - - // LOOP 0x101368330 - // pre processing - for (int i=0; i<4; i++) fRec47_tmp[i]=fRec47_perm[i]; - fYec14_idx = (fYec14_idx+fYec14_idx_save)&4095; - for (int i=0; i<4; i++) fRec46_tmp[i]=fRec46_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec47[i] = ((fSlow1 * fRec46[i-1]) + (fSlow0 * fRec47[i-1])); - fYec14[(fYec14_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec47[i])); - fRec46[i] = fYec14[(fYec14_idx+i-1514)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec46_perm[i]=fRec46_tmp[count+i]; - fYec14_idx_save = count; - for (int i=0; i<4; i++) fRec47_perm[i]=fRec47_tmp[count+i]; - - // LOOP 0x101369f40 - // pre processing - for (int i=0; i<4; i++) fRec49_tmp[i]=fRec49_perm[i]; - fYec15_idx = (fYec15_idx+fYec15_idx_save)&4095; - for (int i=0; i<4; i++) fRec48_tmp[i]=fRec48_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec49[i] = ((fSlow1 * fRec48[i-1]) + (fSlow0 * fRec49[i-1])); - fYec15[(fYec15_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec49[i])); - fRec48[i] = fYec15[(fYec15_idx+i-1445)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec48_perm[i]=fRec48_tmp[count+i]; - fYec15_idx_save = count; - for (int i=0; i<4; i++) fRec49_perm[i]=fRec49_tmp[count+i]; - - // LOOP 0x10136bae0 - // pre processing - for (int i=0; i<4; i++) fRec51_tmp[i]=fRec51_perm[i]; - fYec16_idx = (fYec16_idx+fYec16_idx_save)&4095; - for (int i=0; i<4; i++) fRec50_tmp[i]=fRec50_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec51[i] = ((fSlow1 * fRec50[i-1]) + (fSlow0 * fRec51[i-1])); - fYec16[(fYec16_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec51[i])); - fRec50[i] = fYec16[(fYec16_idx+i-1379)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec50_perm[i]=fRec50_tmp[count+i]; - fYec16_idx_save = count; - for (int i=0; i<4; i++) fRec51_perm[i]=fRec51_tmp[count+i]; - - // LOOP 0x10136d660 - // pre processing - for (int i=0; i<4; i++) fRec53_tmp[i]=fRec53_perm[i]; - fYec17_idx = (fYec17_idx+fYec17_idx_save)&4095; - for (int i=0; i<4; i++) fRec52_tmp[i]=fRec52_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec53[i] = ((fSlow1 * fRec52[i-1]) + (fSlow0 * fRec53[i-1])); - fYec17[(fYec17_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec53[i])); - fRec52[i] = fYec17[(fYec17_idx+i-1300)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec52_perm[i]=fRec52_tmp[count+i]; - fYec17_idx_save = count; - for (int i=0; i<4; i++) fRec53_perm[i]=fRec53_tmp[count+i]; - - // LOOP 0x10136f1e0 - // pre processing - for (int i=0; i<4; i++) fRec55_tmp[i]=fRec55_perm[i]; - fYec18_idx = (fYec18_idx+fYec18_idx_save)&4095; - for (int i=0; i<4; i++) fRec54_tmp[i]=fRec54_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec55[i] = ((fSlow1 * fRec54[i-1]) + (fSlow0 * fRec55[i-1])); - fYec18[(fYec18_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec55[i])); - fRec54[i] = fYec18[(fYec18_idx+i-1211)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec54_perm[i]=fRec54_tmp[count+i]; - fYec18_idx_save = count; - for (int i=0; i<4; i++) fRec55_perm[i]=fRec55_tmp[count+i]; - - // LOOP 0x101370d60 - // pre processing - for (int i=0; i<4; i++) fRec57_tmp[i]=fRec57_perm[i]; - fYec19_idx = (fYec19_idx+fYec19_idx_save)&4095; - for (int i=0; i<4; i++) fRec56_tmp[i]=fRec56_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec57[i] = ((fSlow1 * fRec56[i-1]) + (fSlow0 * fRec57[i-1])); - fYec19[(fYec19_idx+i)&4095] = (fZec0[i] + (fSlow2 * fRec57[i])); - fRec56[i] = fYec19[(fYec19_idx+i-1139)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec56_perm[i]=fRec56_tmp[count+i]; - fYec19_idx_save = count; - for (int i=0; i<4; i++) fRec57_perm[i]=fRec57_tmp[count+i]; - - // SECTION : 3 - // LOOP 0x10134f870 - // exec code - for (int i=0; i<count; i++) { - fZec1[i] = (((((((fRec32[i] + fRec30[i]) + fRec28[i]) + fRec26[i]) + fRec24[i]) + fRec22[i]) + fRec20[i]) + fRec18[i]); - } - - // LOOP 0x101364a70 - // exec code - for (int i=0; i<count; i++) { - fZec3[i] = (((((((fRec56[i] + fRec54[i]) + fRec52[i]) + fRec50[i]) + fRec48[i]) + fRec46[i]) + fRec44[i]) + fRec42[i]); - } - - // SECTION : 4 - // LOOP 0x10134f120 - // pre processing - fYec8_idx = (fYec8_idx+fYec8_idx_save)&2047; - for (int i=0; i<4; i++) fRec16_tmp[i]=fRec16_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec8[(fYec8_idx+i)&2047] = (fZec1[i] + (0.5f * fRec16[i-1])); - fRec16[i] = fYec8[(fYec8_idx+i-556)&2047]; - fRec17[i] = (0 - (fZec1[i] - fRec16[i-1])); - } - // post processing - for (int i=0; i<4; i++) fRec16_perm[i]=fRec16_tmp[count+i]; - fYec8_idx_save = count; - - // LOOP 0x101364320 - // pre processing - fYec20_idx = (fYec20_idx+fYec20_idx_save)&2047; - for (int i=0; i<4; i++) fRec40_tmp[i]=fRec40_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec20[(fYec20_idx+i)&2047] = (fZec3[i] + (0.5f * fRec40[i-1])); - fRec40[i] = fYec20[(fYec20_idx+i-579)&2047]; - fRec41[i] = (0 - (fZec3[i] - fRec40[i-1])); - } - // post processing - for (int i=0; i<4; i++) fRec40_perm[i]=fRec40_tmp[count+i]; - fYec20_idx_save = count; - - // SECTION : 5 - // LOOP 0x10134e9d0 - // pre processing - fYec9_idx = (fYec9_idx+fYec9_idx_save)&2047; - for (int i=0; i<4; i++) fRec14_tmp[i]=fRec14_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec9[(fYec9_idx+i)&2047] = (fRec17[i] + (0.5f * fRec14[i-1])); - fRec14[i] = fYec9[(fYec9_idx+i-441)&2047]; - fRec15[i] = (fRec14[i-1] - fRec17[i]); - } - // post processing - for (int i=0; i<4; i++) fRec14_perm[i]=fRec14_tmp[count+i]; - fYec9_idx_save = count; - - // LOOP 0x101363bd0 - // pre processing - fYec21_idx = (fYec21_idx+fYec21_idx_save)&2047; - for (int i=0; i<4; i++) fRec38_tmp[i]=fRec38_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec21[(fYec21_idx+i)&2047] = (fRec41[i] + (0.5f * fRec38[i-1])); - fRec38[i] = fYec21[(fYec21_idx+i-464)&2047]; - fRec39[i] = (fRec38[i-1] - fRec41[i]); - } - // post processing - for (int i=0; i<4; i++) fRec38_perm[i]=fRec38_tmp[count+i]; - fYec21_idx_save = count; - - // SECTION : 6 - // LOOP 0x10134e2a0 - // pre processing - fYec10_idx = (fYec10_idx+fYec10_idx_save)&2047; - for (int i=0; i<4; i++) fRec12_tmp[i]=fRec12_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec10[(fYec10_idx+i)&2047] = (fRec15[i] + (0.5f * fRec12[i-1])); - fRec12[i] = fYec10[(fYec10_idx+i-341)&2047]; - fRec13[i] = (fRec12[i-1] - fRec15[i]); - } - // post processing - for (int i=0; i<4; i++) fRec12_perm[i]=fRec12_tmp[count+i]; - fYec10_idx_save = count; - - // LOOP 0x1013634a0 - // pre processing - fYec22_idx = (fYec22_idx+fYec22_idx_save)&2047; - for (int i=0; i<4; i++) fRec36_tmp[i]=fRec36_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec22[(fYec22_idx+i)&2047] = (fRec39[i] + (0.5f * fRec36[i-1])); - fRec36[i] = fYec22[(fYec22_idx+i-364)&2047]; - fRec37[i] = (fRec36[i-1] - fRec39[i]); - } - // post processing - for (int i=0; i<4; i++) fRec36_perm[i]=fRec36_tmp[count+i]; - fYec22_idx_save = count; - - // SECTION : 7 - // LOOP 0x10134dba0 - // pre processing - fYec11_idx = (fYec11_idx+fYec11_idx_save)&2047; - for (int i=0; i<4; i++) fRec10_tmp[i]=fRec10_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec11[(fYec11_idx+i)&2047] = (fRec13[i] + (0.5f * fRec10[i-1])); - fRec10[i] = fYec11[(fYec11_idx+i-225)&2047]; - fRec11[i] = (fRec10[i-1] - fRec13[i]); - } - // post processing - for (int i=0; i<4; i++) fRec10_perm[i]=fRec10_tmp[count+i]; - fYec11_idx_save = count; - - // LOOP 0x101362e30 - // pre processing - fYec23_idx = (fYec23_idx+fYec23_idx_save)&2047; - for (int i=0; i<4; i++) fRec34_tmp[i]=fRec34_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec23[(fYec23_idx+i)&2047] = (fRec37[i] + (0.5f * fRec34[i-1])); - fRec34[i] = fYec23[(fYec23_idx+i-248)&2047]; - fRec35[i] = (fRec34[i-1] - fRec37[i]); - } - // post processing - for (int i=0; i<4; i++) fRec34_perm[i]=fRec34_tmp[count+i]; - fYec23_idx_save = count; - - // SECTION : 8 - // LOOP 0x10134daa0 - // exec code - for (int i=0; i<count; i++) { - fZec2[i] = ((fSlow4 * (float)input0[i]) + (fSlow3 * fRec11[i])); - } - - // LOOP 0x101362d30 - // exec code - for (int i=0; i<count; i++) { - fZec4[i] = ((fSlow4 * (float)input1[i]) + (fSlow3 * fRec35[i])); - } - - // SECTION : 9 - // LOOP 0x10134d9a0 - // exec code - for (int i=0; i<count; i++) { - fZec5[i] = (1.500000e-02f * (fZec4[i] + fZec2[i])); - } - - // SECTION : 10 - // LOOP 0x10134b4b0 - // pre processing - for (int i=0; i<4; i++) fRec9_tmp[i]=fRec9_perm[i]; - fYec24_idx = (fYec24_idx+fYec24_idx_save)&4095; - for (int i=0; i<4; i++) fRec8_tmp[i]=fRec8_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec9[i] = ((fSlow1 * fRec8[i-1]) + (fSlow0 * fRec9[i-1])); - fYec24[(fYec24_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec9[i])); - fRec8[i] = fYec24[(fYec24_idx+i-1617)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec8_perm[i]=fRec8_tmp[count+i]; - fYec24_idx_save = count; - for (int i=0; i<4; i++) fRec9_perm[i]=fRec9_tmp[count+i]; - - // LOOP 0x101377dc0 - // pre processing - for (int i=0; i<4; i++) fRec59_tmp[i]=fRec59_perm[i]; - fYec25_idx = (fYec25_idx+fYec25_idx_save)&4095; - for (int i=0; i<4; i++) fRec58_tmp[i]=fRec58_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec59[i] = ((fSlow1 * fRec58[i-1]) + (fSlow0 * fRec59[i-1])); - fYec25[(fYec25_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec59[i])); - fRec58[i] = fYec25[(fYec25_idx+i-1557)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec58_perm[i]=fRec58_tmp[count+i]; - fYec25_idx_save = count; - for (int i=0; i<4; i++) fRec59_perm[i]=fRec59_tmp[count+i]; - - // LOOP 0x101379900 - // pre processing - for (int i=0; i<4; i++) fRec61_tmp[i]=fRec61_perm[i]; - fYec26_idx = (fYec26_idx+fYec26_idx_save)&4095; - for (int i=0; i<4; i++) fRec60_tmp[i]=fRec60_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec61[i] = ((fSlow1 * fRec60[i-1]) + (fSlow0 * fRec61[i-1])); - fYec26[(fYec26_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec61[i])); - fRec60[i] = fYec26[(fYec26_idx+i-1491)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec60_perm[i]=fRec60_tmp[count+i]; - fYec26_idx_save = count; - for (int i=0; i<4; i++) fRec61_perm[i]=fRec61_tmp[count+i]; - - // LOOP 0x10137b480 - // pre processing - for (int i=0; i<4; i++) fRec63_tmp[i]=fRec63_perm[i]; - fYec27_idx = (fYec27_idx+fYec27_idx_save)&4095; - for (int i=0; i<4; i++) fRec62_tmp[i]=fRec62_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec63[i] = ((fSlow1 * fRec62[i-1]) + (fSlow0 * fRec63[i-1])); - fYec27[(fYec27_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec63[i])); - fRec62[i] = fYec27[(fYec27_idx+i-1422)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec62_perm[i]=fRec62_tmp[count+i]; - fYec27_idx_save = count; - for (int i=0; i<4; i++) fRec63_perm[i]=fRec63_tmp[count+i]; - - // LOOP 0x10137d000 - // pre processing - for (int i=0; i<4; i++) fRec65_tmp[i]=fRec65_perm[i]; - fYec28_idx = (fYec28_idx+fYec28_idx_save)&4095; - for (int i=0; i<4; i++) fRec64_tmp[i]=fRec64_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec65[i] = ((fSlow1 * fRec64[i-1]) + (fSlow0 * fRec65[i-1])); - fYec28[(fYec28_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec65[i])); - fRec64[i] = fYec28[(fYec28_idx+i-1356)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec64_perm[i]=fRec64_tmp[count+i]; - fYec28_idx_save = count; - for (int i=0; i<4; i++) fRec65_perm[i]=fRec65_tmp[count+i]; - - // LOOP 0x10137eb80 - // pre processing - for (int i=0; i<4; i++) fRec67_tmp[i]=fRec67_perm[i]; - fYec29_idx = (fYec29_idx+fYec29_idx_save)&4095; - for (int i=0; i<4; i++) fRec66_tmp[i]=fRec66_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec67[i] = ((fSlow1 * fRec66[i-1]) + (fSlow0 * fRec67[i-1])); - fYec29[(fYec29_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec67[i])); - fRec66[i] = fYec29[(fYec29_idx+i-1277)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec66_perm[i]=fRec66_tmp[count+i]; - fYec29_idx_save = count; - for (int i=0; i<4; i++) fRec67_perm[i]=fRec67_tmp[count+i]; - - // LOOP 0x101380700 - // pre processing - for (int i=0; i<4; i++) fRec69_tmp[i]=fRec69_perm[i]; - fYec30_idx = (fYec30_idx+fYec30_idx_save)&4095; - for (int i=0; i<4; i++) fRec68_tmp[i]=fRec68_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec69[i] = ((fSlow1 * fRec68[i-1]) + (fSlow0 * fRec69[i-1])); - fYec30[(fYec30_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec69[i])); - fRec68[i] = fYec30[(fYec30_idx+i-1188)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec68_perm[i]=fRec68_tmp[count+i]; - fYec30_idx_save = count; - for (int i=0; i<4; i++) fRec69_perm[i]=fRec69_tmp[count+i]; - - // LOOP 0x101382280 - // pre processing - for (int i=0; i<4; i++) fRec71_tmp[i]=fRec71_perm[i]; - fYec31_idx = (fYec31_idx+fYec31_idx_save)&4095; - for (int i=0; i<4; i++) fRec70_tmp[i]=fRec70_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec71[i] = ((fSlow1 * fRec70[i-1]) + (fSlow0 * fRec71[i-1])); - fYec31[(fYec31_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec71[i])); - fRec70[i] = fYec31[(fYec31_idx+i-1116)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec70_perm[i]=fRec70_tmp[count+i]; - fYec31_idx_save = count; - for (int i=0; i<4; i++) fRec71_perm[i]=fRec71_tmp[count+i]; - - // LOOP 0x101389fc0 - // pre processing - for (int i=0; i<4; i++) fRec81_tmp[i]=fRec81_perm[i]; - fYec36_idx = (fYec36_idx+fYec36_idx_save)&4095; - for (int i=0; i<4; i++) fRec80_tmp[i]=fRec80_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec81[i] = ((fSlow1 * fRec80[i-1]) + (fSlow0 * fRec81[i-1])); - fYec36[(fYec36_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec81[i])); - fRec80[i] = fYec36[(fYec36_idx+i-1640)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec80_perm[i]=fRec80_tmp[count+i]; - fYec36_idx_save = count; - for (int i=0; i<4; i++) fRec81_perm[i]=fRec81_tmp[count+i]; - - // LOOP 0x10138bc10 - // pre processing - for (int i=0; i<4; i++) fRec83_tmp[i]=fRec83_perm[i]; - fYec37_idx = (fYec37_idx+fYec37_idx_save)&4095; - for (int i=0; i<4; i++) fRec82_tmp[i]=fRec82_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec83[i] = ((fSlow1 * fRec82[i-1]) + (fSlow0 * fRec83[i-1])); - fYec37[(fYec37_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec83[i])); - fRec82[i] = fYec37[(fYec37_idx+i-1580)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec82_perm[i]=fRec82_tmp[count+i]; - fYec37_idx_save = count; - for (int i=0; i<4; i++) fRec83_perm[i]=fRec83_tmp[count+i]; - - // LOOP 0x10138d7b0 - // pre processing - for (int i=0; i<4; i++) fRec85_tmp[i]=fRec85_perm[i]; - fYec38_idx = (fYec38_idx+fYec38_idx_save)&4095; - for (int i=0; i<4; i++) fRec84_tmp[i]=fRec84_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec85[i] = ((fSlow1 * fRec84[i-1]) + (fSlow0 * fRec85[i-1])); - fYec38[(fYec38_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec85[i])); - fRec84[i] = fYec38[(fYec38_idx+i-1514)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec84_perm[i]=fRec84_tmp[count+i]; - fYec38_idx_save = count; - for (int i=0; i<4; i++) fRec85_perm[i]=fRec85_tmp[count+i]; - - // LOOP 0x10138f330 - // pre processing - for (int i=0; i<4; i++) fRec87_tmp[i]=fRec87_perm[i]; - fYec39_idx = (fYec39_idx+fYec39_idx_save)&4095; - for (int i=0; i<4; i++) fRec86_tmp[i]=fRec86_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec87[i] = ((fSlow1 * fRec86[i-1]) + (fSlow0 * fRec87[i-1])); - fYec39[(fYec39_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec87[i])); - fRec86[i] = fYec39[(fYec39_idx+i-1445)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec86_perm[i]=fRec86_tmp[count+i]; - fYec39_idx_save = count; - for (int i=0; i<4; i++) fRec87_perm[i]=fRec87_tmp[count+i]; - - // LOOP 0x101390eb0 - // pre processing - for (int i=0; i<4; i++) fRec89_tmp[i]=fRec89_perm[i]; - fYec40_idx = (fYec40_idx+fYec40_idx_save)&4095; - for (int i=0; i<4; i++) fRec88_tmp[i]=fRec88_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec89[i] = ((fSlow1 * fRec88[i-1]) + (fSlow0 * fRec89[i-1])); - fYec40[(fYec40_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec89[i])); - fRec88[i] = fYec40[(fYec40_idx+i-1379)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec88_perm[i]=fRec88_tmp[count+i]; - fYec40_idx_save = count; - for (int i=0; i<4; i++) fRec89_perm[i]=fRec89_tmp[count+i]; - - // LOOP 0x101392a30 - // pre processing - for (int i=0; i<4; i++) fRec91_tmp[i]=fRec91_perm[i]; - fYec41_idx = (fYec41_idx+fYec41_idx_save)&4095; - for (int i=0; i<4; i++) fRec90_tmp[i]=fRec90_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec91[i] = ((fSlow1 * fRec90[i-1]) + (fSlow0 * fRec91[i-1])); - fYec41[(fYec41_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec91[i])); - fRec90[i] = fYec41[(fYec41_idx+i-1300)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec90_perm[i]=fRec90_tmp[count+i]; - fYec41_idx_save = count; - for (int i=0; i<4; i++) fRec91_perm[i]=fRec91_tmp[count+i]; - - // LOOP 0x1013945b0 - // pre processing - for (int i=0; i<4; i++) fRec93_tmp[i]=fRec93_perm[i]; - fYec42_idx = (fYec42_idx+fYec42_idx_save)&4095; - for (int i=0; i<4; i++) fRec92_tmp[i]=fRec92_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec93[i] = ((fSlow1 * fRec92[i-1]) + (fSlow0 * fRec93[i-1])); - fYec42[(fYec42_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec93[i])); - fRec92[i] = fYec42[(fYec42_idx+i-1211)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec92_perm[i]=fRec92_tmp[count+i]; - fYec42_idx_save = count; - for (int i=0; i<4; i++) fRec93_perm[i]=fRec93_tmp[count+i]; - - // LOOP 0x101396130 - // pre processing - for (int i=0; i<4; i++) fRec95_tmp[i]=fRec95_perm[i]; - fYec43_idx = (fYec43_idx+fYec43_idx_save)&4095; - for (int i=0; i<4; i++) fRec94_tmp[i]=fRec94_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fRec95[i] = ((fSlow1 * fRec94[i-1]) + (fSlow0 * fRec95[i-1])); - fYec43[(fYec43_idx+i)&4095] = (fZec5[i] + (fSlow2 * fRec95[i])); - fRec94[i] = fYec43[(fYec43_idx+i-1139)&4095]; - } - // post processing - for (int i=0; i<4; i++) fRec94_perm[i]=fRec94_tmp[count+i]; - fYec43_idx_save = count; - for (int i=0; i<4; i++) fRec95_perm[i]=fRec95_tmp[count+i]; - - // SECTION : 11 - // LOOP 0x10134b3b0 - // exec code - for (int i=0; i<count; i++) { - fZec6[i] = (((((((fRec70[i] + fRec68[i]) + fRec66[i]) + fRec64[i]) + fRec62[i]) + fRec60[i]) + fRec58[i]) + fRec8[i]); - } - - // LOOP 0x101389ec0 - // exec code - for (int i=0; i<count; i++) { - fZec7[i] = (((((((fRec94[i] + fRec92[i]) + fRec90[i]) + fRec88[i]) + fRec86[i]) + fRec84[i]) + fRec82[i]) + fRec80[i]); - } - - // SECTION : 12 - // LOOP 0x10134acd0 - // pre processing - fYec32_idx = (fYec32_idx+fYec32_idx_save)&2047; - for (int i=0; i<4; i++) fRec6_tmp[i]=fRec6_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec32[(fYec32_idx+i)&2047] = (fZec6[i] + (0.5f * fRec6[i-1])); - fRec6[i] = fYec32[(fYec32_idx+i-556)&2047]; - fRec7[i] = (0 - (fZec6[i] - fRec6[i-1])); - } - // post processing - for (int i=0; i<4; i++) fRec6_perm[i]=fRec6_tmp[count+i]; - fYec32_idx_save = count; - - // LOOP 0x1013897e0 - // pre processing - fYec44_idx = (fYec44_idx+fYec44_idx_save)&2047; - for (int i=0; i<4; i++) fRec78_tmp[i]=fRec78_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec44[(fYec44_idx+i)&2047] = (fZec7[i] + (0.5f * fRec78[i-1])); - fRec78[i] = fYec44[(fYec44_idx+i-579)&2047]; - fRec79[i] = (0 - (fZec7[i] - fRec78[i-1])); - } - // post processing - for (int i=0; i<4; i++) fRec78_perm[i]=fRec78_tmp[count+i]; - fYec44_idx_save = count; - - // SECTION : 13 - // LOOP 0x10134a5f0 - // pre processing - fYec33_idx = (fYec33_idx+fYec33_idx_save)&2047; - for (int i=0; i<4; i++) fRec4_tmp[i]=fRec4_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec33[(fYec33_idx+i)&2047] = (fRec7[i] + (0.5f * fRec4[i-1])); - fRec4[i] = fYec33[(fYec33_idx+i-441)&2047]; - fRec5[i] = (fRec4[i-1] - fRec7[i]); - } - // post processing - for (int i=0; i<4; i++) fRec4_perm[i]=fRec4_tmp[count+i]; - fYec33_idx_save = count; - - // LOOP 0x101389100 - // pre processing - fYec45_idx = (fYec45_idx+fYec45_idx_save)&2047; - for (int i=0; i<4; i++) fRec76_tmp[i]=fRec76_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec45[(fYec45_idx+i)&2047] = (fRec79[i] + (0.5f * fRec76[i-1])); - fRec76[i] = fYec45[(fYec45_idx+i-464)&2047]; - fRec77[i] = (fRec76[i-1] - fRec79[i]); - } - // post processing - for (int i=0; i<4; i++) fRec76_perm[i]=fRec76_tmp[count+i]; - fYec45_idx_save = count; - - // SECTION : 14 - // LOOP 0x101349f10 - // pre processing - fYec34_idx = (fYec34_idx+fYec34_idx_save)&2047; - for (int i=0; i<4; i++) fRec2_tmp[i]=fRec2_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec34[(fYec34_idx+i)&2047] = (fRec5[i] + (0.5f * fRec2[i-1])); - fRec2[i] = fYec34[(fYec34_idx+i-341)&2047]; - fRec3[i] = (fRec2[i-1] - fRec5[i]); - } - // post processing - for (int i=0; i<4; i++) fRec2_perm[i]=fRec2_tmp[count+i]; - fYec34_idx_save = count; - - // LOOP 0x101388a20 - // pre processing - fYec46_idx = (fYec46_idx+fYec46_idx_save)&2047; - for (int i=0; i<4; i++) fRec74_tmp[i]=fRec74_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec46[(fYec46_idx+i)&2047] = (fRec77[i] + (0.5f * fRec74[i-1])); - fRec74[i] = fYec46[(fYec46_idx+i-364)&2047]; - fRec75[i] = (fRec74[i-1] - fRec77[i]); - } - // post processing - for (int i=0; i<4; i++) fRec74_perm[i]=fRec74_tmp[count+i]; - fYec46_idx_save = count; - - // SECTION : 15 - // LOOP 0x101349700 - // pre processing - fYec35_idx = (fYec35_idx+fYec35_idx_save)&2047; - for (int i=0; i<4; i++) fRec0_tmp[i]=fRec0_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec35[(fYec35_idx+i)&2047] = (fRec3[i] + (0.5f * fRec0[i-1])); - fRec0[i] = fYec35[(fYec35_idx+i-225)&2047]; - fRec1[i] = (fRec0[i-1] - fRec3[i]); - } - // post processing - for (int i=0; i<4; i++) fRec0_perm[i]=fRec0_tmp[count+i]; - fYec35_idx_save = count; - - // LOOP 0x1013883a0 - // pre processing - fYec47_idx = (fYec47_idx+fYec47_idx_save)&2047; - for (int i=0; i<4; i++) fRec72_tmp[i]=fRec72_perm[i]; - // exec code - for (int i=0; i<count; i++) { - fYec47[(fYec47_idx+i)&2047] = (fRec75[i] + (0.5f * fRec72[i-1])); - fRec72[i] = fYec47[(fYec47_idx+i-248)&2047]; - fRec73[i] = (fRec72[i-1] - fRec75[i]); - } - // post processing - for (int i=0; i<4; i++) fRec72_perm[i]=fRec72_tmp[count+i]; - fYec47_idx_save = count; - - // SECTION : 16 - // LOOP 0x101349600 - // exec code - for (int i=0; i<count; i++) { - output0[i] = (FAUSTFLOAT)((fSlow4 * fZec2[i]) + (fSlow3 * fRec1[i])); - } - - // LOOP 0x1013881d0 - // exec code - for (int i=0; i<count; i++) { - output1[i] = (FAUSTFLOAT)((fSlow4 * fZec4[i]) + (fSlow3 * fRec73[i])); - } - - } - } -}; - -mydsp DSP; - -/****************************************************************************** -******************************************************************************* - - COREAUDIO INTERFACE - -******************************************************************************* -*******************************************************************************/ - -#define MAX_CHANNELS 256 -#define OPEN_ERR -1 -#define NO_ERR 0 - -class TiPhoneCoreAudioRenderer -{ - - private: - - AudioUnit fAUHAL; - - int fDevNumInChans; - int fDevNumOutChans; - - float* fInChannel[MAX_CHANNELS]; - float* fOutChannel[MAX_CHANNELS]; - - static OSStatus Render(void *inRefCon, - AudioUnitRenderActionFlags *ioActionFlags, - const AudioTimeStamp *inTimeStamp, - UInt32 inBusNumber, - UInt32 inNumberFrames, - AudioBufferList *ioData); - - static void InterruptionListener(void *inClientData, UInt32 inInterruption); - - public: - - TiPhoneCoreAudioRenderer(int input, int output) - :fDevNumInChans(input), fDevNumOutChans(output) - { - for (int i = 0; i < fDevNumInChans; i++) { - fInChannel[i] = new float[8192]; - } - - for (int i = 0; i < fDevNumOutChans; i++) { - fOutChannel[i] = new float[8192]; - } - } - virtual ~TiPhoneCoreAudioRenderer() - { - for (int i = 0; i < fDevNumInChans; i++) { - delete[] fInChannel[i]; - } - - for (int i = 0; i < fDevNumOutChans; i++) { - delete[] fOutChannel[i]; - } - } - - long Open(long bufferSize, long sampleRate); - long Close(); - - long Start(); - long Stop(); - -}; - -typedef TiPhoneCoreAudioRenderer * TiPhoneCoreAudioRendererPtr; - -static void PrintStreamDesc(AudioStreamBasicDescription *inDesc) -{ - printf("- - - - - - - - - - - - - - - - - - - -\n"); - printf(" Sample Rate:%f\n", inDesc->mSampleRate); - printf(" Format ID:%.*s\n", (int) sizeof(inDesc->mFormatID), (char*)&inDesc->mFormatID); - printf(" Format Flags:%lX\n", inDesc->mFormatFlags); - printf(" Bytes per Packet:%ld\n", inDesc->mBytesPerPacket); - printf(" Frames per Packet:%ld\n", inDesc->mFramesPerPacket); - printf(" Bytes per Frame:%ld\n", inDesc->mBytesPerFrame); - printf(" Channels per Frame:%ld\n", inDesc->mChannelsPerFrame); - printf(" Bits per Channel:%ld\n", inDesc->mBitsPerChannel); - printf("- - - - - - - - - - - - - - - - - - - -\n"); -} - -static void printError(OSStatus err) -{ - switch (err) { - case kAudioConverterErr_FormatNotSupported: - printf("error code : kAudioConverterErr_FormatNotSupported\n"); - break; - case kAudioConverterErr_OperationNotSupported: - printf("error code : kAudioConverterErr_OperationNotSupported\n"); - break; - case kAudioConverterErr_PropertyNotSupported: - printf("error code : kAudioConverterErr_PropertyNotSupported\n"); - break; - case kAudioConverterErr_InvalidInputSize: - printf("error code : kAudioConverterErr_InvalidInputSize\n"); - break; - case kAudioConverterErr_InvalidOutputSize: - printf("error code : kAudioConverterErr_InvalidOutputSize\n"); - break; - case kAudioConverterErr_UnspecifiedError: - printf("error code : kAudioConverterErr_UnspecifiedError\n"); - break; - case kAudioConverterErr_BadPropertySizeError: - printf("error code : kAudioConverterErr_BadPropertySizeError\n"); - break; - case kAudioConverterErr_RequiresPacketDescriptionsError: - printf("error code : kAudioConverterErr_RequiresPacketDescriptionsError\n"); - break; - case kAudioConverterErr_InputSampleRateOutOfRange: - printf("error code : kAudioConverterErr_InputSampleRateOutOfRange\n"); - break; - case kAudioConverterErr_OutputSampleRateOutOfRange: - printf("error code : kAudioConverterErr_OutputSampleRateOutOfRange\n"); - break; - default: - printf("error code : unknown\n"); - break; - } -} - -st::HardwareClock my_clock; - -OSStatus TiPhoneCoreAudioRenderer::Render(void *inRefCon, - AudioUnitRenderActionFlags *ioActionFlags, - const AudioTimeStamp *inTimeStamp, - UInt32, - UInt32 inNumberFrames, - AudioBufferList *ioData) -{ - TiPhoneCoreAudioRendererPtr renderer = (TiPhoneCoreAudioRendererPtr)inRefCon; - my_clock.Update(); - //printf("TiPhoneCoreAudioRenderer::Render 0 %d\n", inNumberFrames); - - AudioUnitRender(renderer->fAUHAL, ioActionFlags, inTimeStamp, 1, inNumberFrames, ioData); - - float coef = 1.f/32768.f; - /* - for (int chan = 0; chan < fDevNumInChans; chan++) { - for (int frame = 0; frame < inNumberFrames; frame++) { - fInChannel[chan][frame] = float(((long*)ioData->mBuffers[chan].mData)[frame]) / 32768.f; - fInChannel[chan][frame] = float(((long*)ioData->mBuffers[chan].mData)[frame]) / 32768.f; - } - } - */ - - for (int frame = 0; frame < inNumberFrames; frame++) { - float sample = float(((long*)ioData->mBuffers[0].mData)[frame]) * coef; - renderer->fInChannel[0][frame] = sample; - renderer->fInChannel[1][frame] = sample; - } - - //printf("TiPhoneCoreAudioRenderer::Render 1 %d\n", inNumberFrames); - - DSP.compute((int)inNumberFrames, renderer->fInChannel, renderer->fOutChannel); - - for (int chan = 0; chan < renderer->fDevNumOutChans; chan++) { - for (int frame = 0; frame < inNumberFrames; frame++) { - ((long*)ioData->mBuffers[chan].mData)[frame] = long(renderer->fOutChannel[chan][frame] * 32768.f); - } - } - - my_clock.Update(); - const float dt = my_clock.GetDeltaTime(); - printf("Normal: %f s\n", dt); - - //printf("TiPhoneCoreAudioRenderer::Render 3 %d\n", inNumberFrames); - return 0; -} - -void TiPhoneCoreAudioRenderer::InterruptionListener(void *inClientData, UInt32 inInterruption) -{ - printf("Session interrupted! --- %s ---", inInterruption == kAudioSessionBeginInterruption ? "Begin Interruption" : "End Interruption"); - - TiPhoneCoreAudioRenderer *obj = (TiPhoneCoreAudioRenderer*)inClientData; - - if (inInterruption == kAudioSessionEndInterruption) { - // make sure we are again the active session - AudioSessionSetActive(true); - AudioOutputUnitStart(obj->fAUHAL); - } - - if (inInterruption == kAudioSessionBeginInterruption) { - AudioOutputUnitStop(obj->fAUHAL); - } -} - -long TiPhoneCoreAudioRenderer::Open(long bufferSize, long samplerate) -{ - OSStatus err1; - UInt32 outSize; - UInt32 enableIO; - Boolean isWritable; - AudioStreamBasicDescription srcFormat, dstFormat; - - printf("Open fDevNumInChans = %ld fDevNumOutChans = %ld bufferSize = %ld samplerate = %ld\n", fDevNumInChans, fDevNumOutChans, bufferSize, samplerate); - - // Initialize and configure the audio session - err1 = AudioSessionInitialize(NULL, NULL, InterruptionListener, this); - if (err1 != noErr) { - printf("Couldn't initialize audio session\n"); - printError(err1); - return OPEN_ERR; - } - - err1 = AudioSessionSetActive(true); - if (err1 != noErr) { - printf("Couldn't set audio session active\n"); - printError(err1); - return OPEN_ERR; - } - - UInt32 audioCategory = kAudioSessionCategory_PlayAndRecord; - err1 = AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(audioCategory), &audioCategory); - if (err1 != noErr) { - printf("Couldn't set audio category\n"); - printError(err1); - return OPEN_ERR; - } - - //err1 = AudioSessionAddPropertyListener(kAudioSessionProperty_AudioRouteChange, propListener, self), "couldn't set property listener"); - - Float64 hwSampleRate; - outSize = sizeof(hwSampleRate); - err1 = AudioSessionGetProperty(kAudioSessionProperty_CurrentHardwareSampleRate, &outSize, &hwSampleRate); - if (err1 != noErr) { - printf("Couldn't get hw sample rate\n"); - printError(err1); - return OPEN_ERR; - } else { - printf("Get hw sample rate %f\n", hwSampleRate); - } - - Float32 hwBufferSize; - outSize = sizeof(hwBufferSize); - err1 = AudioSessionGetProperty(kAudioSessionProperty_CurrentHardwareIOBufferDuration, &outSize, &hwBufferSize); - if (err1 != noErr) { - printf("Couldn't get hw buffer duration\n"); - printError(err1); - return OPEN_ERR; - } else { - printf("Get hw buffer duration %f\n", hwBufferSize); - } - - UInt32 hwInput; - outSize = sizeof(hwInput); - err1 = AudioSessionGetProperty(kAudioSessionProperty_CurrentHardwareInputNumberChannels, &outSize, &hwInput); - if (err1 != noErr) { - printf("Couldn't get hw input channels\n"); - printError(err1); - return OPEN_ERR; - } else { - printf("Get hw input channels %d\n", hwInput); - } - - UInt32 hwOutput; - outSize = sizeof(hwOutput); - err1 = AudioSessionGetProperty(kAudioSessionProperty_CurrentHardwareOutputNumberChannels, &outSize, &hwOutput); - if (err1 != noErr) { - printf("Couldn't get hw output channels\n"); - printError(err1); - return OPEN_ERR; - } else { - printf("Get hw output channels %d\n", hwOutput); - } - - Float32 preferredBufferSize = float(bufferSize) / float(samplerate); - printf("preferredBufferSize %f \n", preferredBufferSize); - - err1 = AudioSessionSetProperty(kAudioSessionProperty_PreferredHardwareIOBufferDuration, sizeof(preferredBufferSize), &preferredBufferSize); - if (err1 != noErr) { - printf("Couldn't set i/o buffer duration\n"); - printError(err1); - return OPEN_ERR; - } - - Float64 preferredSamplerate = float(samplerate); - err1 = AudioSessionSetProperty(kAudioSessionProperty_PreferredHardwareSampleRate, sizeof(preferredSamplerate), &preferredSamplerate); - if (err1 != noErr) { - printf("Couldn't set i/o sample rate\n"); - printError(err1); - return OPEN_ERR; - } - - // AUHAL - AudioComponentDescription cd = {kAudioUnitType_Output, kAudioUnitSubType_RemoteIO, kAudioUnitManufacturer_Apple, 0, 0}; - AudioComponent HALOutput = AudioComponentFindNext(NULL, &cd); - - err1 = AudioComponentInstanceNew(HALOutput, &fAUHAL); - if (err1 != noErr) { - printf("Error calling OpenAComponent\n"); - printError(err1); - goto error; - } - - enableIO = 1; - err1 = AudioUnitSetProperty(fAUHAL, kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Output, 0, &enableIO, sizeof(enableIO)); - if (err1 != noErr) { - printf("Error calling AudioUnitSetProperty - kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Output\n"); - printError(err1); - goto error; - } - - enableIO = 1; - err1 = AudioUnitSetProperty(fAUHAL, kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Input, 1, &enableIO, sizeof(enableIO)); - if (err1 != noErr) { - printf("Error calling AudioUnitSetProperty - kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Input\n"); - printError(err1); - goto error; - } - - - UInt32 maxFPS; - outSize = sizeof(maxFPS); - err1 = AudioUnitGetProperty(fAUHAL, kAudioUnitProperty_MaximumFramesPerSlice, kAudioUnitScope_Global, 0, &maxFPS, &outSize); - if (err1 != noErr) { - printf("Couldn't get kAudioUnitProperty_MaximumFramesPerSlice\n"); - printError(err1); - goto error; - } else { - printf("Get kAudioUnitProperty_MaximumFramesPerSlice %d\n", maxFPS); - } - - err1 = AudioUnitSetProperty(fAUHAL, kAudioUnitProperty_MaximumFramesPerSlice, kAudioUnitScope_Global, 1, (UInt32*)&bufferSize, sizeof(UInt32)); - if (err1 != noErr) { - printf("Error calling AudioUnitSetProperty - kAudioUnitProperty_MaximumFramesPerSlice\n"); - printError(err1); - goto error; - } - - err1 = AudioUnitSetProperty(fAUHAL, kAudioUnitProperty_MaximumFramesPerSlice, kAudioUnitScope_Global, 0, (UInt32*)&bufferSize, sizeof(UInt32)); - if (err1 != noErr) { - printf("Error calling AudioUnitSetProperty - kAudioUnitProperty_MaximumFramesPerSlice\n"); - printError(err1); - goto error; - } - - - err1 = AudioUnitInitialize(fAUHAL); - if (err1 != noErr) { - printf("Cannot initialize AUHAL unit\n"); - printError(err1); - goto error; - } - - // Setting format - - if (fDevNumInChans > 0) { - outSize = sizeof(AudioStreamBasicDescription); - err1 = AudioUnitGetProperty(fAUHAL, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 1, &srcFormat, &outSize); - if (err1 != noErr) { - printf("Error calling AudioUnitGetProperty - kAudioUnitProperty_StreamFormat kAudioUnitScope_Output\n"); - printError(err1); - } - PrintStreamDesc(&srcFormat); - - srcFormat.mFormatID = kAudioFormatLinearPCM; - srcFormat.mFormatFlags = kAudioFormatFlagsCanonical | kLinearPCMFormatFlagIsNonInterleaved; - srcFormat.mBytesPerPacket = sizeof(AudioUnitSampleType); - srcFormat.mFramesPerPacket = 1; - srcFormat.mBytesPerFrame = sizeof(AudioUnitSampleType); - srcFormat.mChannelsPerFrame = fDevNumInChans; - srcFormat.mBitsPerChannel = 32; - - PrintStreamDesc(&srcFormat); - - err1 = AudioUnitSetProperty(fAUHAL, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 1, &srcFormat, sizeof(AudioStreamBasicDescription)); - if (err1 != noErr) { - printf("Error calling AudioUnitSetProperty - kAudioUnitProperty_StreamFormat kAudioUnitScope_Output\n"); - printError(err1); - } - - } - - if (fDevNumOutChans > 0) { - outSize = sizeof(AudioStreamBasicDescription); - err1 = AudioUnitGetProperty(fAUHAL, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &dstFormat, &outSize); - if (err1 != noErr) { - printf("Error calling AudioUnitGetProperty - kAudioUnitProperty_StreamFormat kAudioUnitScope_Input\n"); - printError(err1); - } - PrintStreamDesc(&dstFormat); - - dstFormat.mFormatID = kAudioFormatLinearPCM; - dstFormat.mFormatFlags = kAudioFormatFlagsCanonical | kLinearPCMFormatFlagIsNonInterleaved; - dstFormat.mBytesPerPacket = sizeof(AudioUnitSampleType); - dstFormat.mFramesPerPacket = 1; - dstFormat.mBytesPerFrame = sizeof(AudioUnitSampleType); - dstFormat.mChannelsPerFrame = fDevNumOutChans; - dstFormat.mBitsPerChannel = 32; - - PrintStreamDesc(&dstFormat); - - err1 = AudioUnitSetProperty(fAUHAL, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &dstFormat, sizeof(AudioStreamBasicDescription)); - if (err1 != noErr) { - printf("Error calling AudioUnitSetProperty - kAudioUnitProperty_StreamFormat kAudioUnitScope_Input\n"); - printError(err1); - } - } - - if (fDevNumInChans > 0 && fDevNumOutChans == 0) { - AURenderCallbackStruct output; - output.inputProc = Render; - output.inputProcRefCon = this; - err1 = AudioUnitSetProperty(fAUHAL, kAudioOutputUnitProperty_SetInputCallback, kAudioUnitScope_Global, 0, &output, sizeof(output)); - if (err1 != noErr) { - printf("Error calling AudioUnitSetProperty - kAudioUnitProperty_SetRenderCallback 1\n"); - printError(err1); - goto error; - } - } else { - AURenderCallbackStruct output; - output.inputProc = Render; - output.inputProcRefCon = this; - err1 = AudioUnitSetProperty(fAUHAL, kAudioUnitProperty_SetRenderCallback, kAudioUnitScope_Input, 0, &output, sizeof(output)); - if (err1 != noErr) { - printf("Error calling AudioUnitSetProperty - kAudioUnitProperty_SetRenderCallback 0\n"); - printError(err1); - goto error; - } - } - - return NO_ERR; - -error: - AudioUnitUninitialize(fAUHAL); - AudioComponentInstanceDispose(fAUHAL); - return OPEN_ERR; -} - -long TiPhoneCoreAudioRenderer::Close() -{ - AudioUnitUninitialize(fAUHAL); - AudioComponentInstanceDispose(fAUHAL); - return NO_ERR; -} - -long TiPhoneCoreAudioRenderer::Start() -{ - AudioSessionSetActive(true); - OSStatus err = AudioOutputUnitStart(fAUHAL); - - if (err != noErr) { - printf("Error while opening device : device open error \n"); - return OPEN_ERR; - } else { - return NO_ERR; - } -} - -long TiPhoneCoreAudioRenderer::Stop() -{ - OSStatus err = AudioOutputUnitStop(fAUHAL); - - if (err != noErr) { - printf("Error while closing device : device close error \n"); - return OPEN_ERR; - } else { - return NO_ERR; - } -} - -/****************************************************************************** -******************************************************************************* - - MAIN PLAY THREAD - -******************************************************************************* -*******************************************************************************/ - -long lopt(char *argv[], const char *name, long def) -{ - int i; - for (i = 0; argv[i]; i++) if (!strcmp(argv[i], name)) return atoi(argv[i + 1]); - return def; -} - -//------------------------------------------------------------------------- -// MAIN -//------------------------------------------------------------------------- - -int main(int argc, char *argv[]) -{ - UI* interface = new CMDUI(argc, argv); - TiPhoneCoreAudioRenderer audio_device(DSP.getNumInputs(), DSP.getNumOutputs()); - - long srate = (long)lopt(argv, "--frequency", 44100); - int fpb = lopt(argv, "--buffer", 512); - - DSP.init(long(srate)); - DSP.buildUserInterface(interface); - - if (audio_device.Open(fpb, srate) < 0) { - printf("Cannot open CoreAudio device\n"); - return 0; - } - - if (audio_device.Start() < 0) { - printf("Cannot start CoreAudio device\n"); - return 0; - } - - printf("inchan = %d, outchan = %d, freq = %ld\n", DSP.getNumInputs(), DSP.getNumOutputs(), srate); - interface->run(); - - audio_device.Stop(); - audio_device.Close(); - return 0; -} - diff --git a/macosx/iphone/main_master.mm b/macosx/iphone/main_master.mm deleted file mode 100644 index ae71f227..00000000 --- a/macosx/iphone/main_master.mm +++ /dev/null @@ -1,155 +0,0 @@ -// -// main.m -// iPhoneNet -// -// Created by Stéphane LETZ on 16/02/09. -// Copyright Grame 2009. All rights reserved. -// - -#import <UIKit/UIKit.h> -#include <jack/net.h> - -#include "TiPhoneCoreAudioRenderer.h" - -#define NUM_INPUT 2 -#define NUM_OUTPUT 2 - -jack_net_master_t* net; -jack_adapter_t* adapter; - -float** audio_input_buffer = NULL; -float** audio_output_buffer = NULL; - -int buffer_size = 1024; -int sample_rate = 22050; -//int sample_rate = 32000; - -jack_master_t request = { -1, -1, -1, -1, buffer_size, sample_rate, "master" }; -jack_slave_t result; - -static void MixAudio(float** dst, float** src1, float** src2, int channels, int buffer_size) -{ - for (int chan = 0; chan < channels; chan++) { - for (int frame = 0; frame < buffer_size; frame++) { - dst[chan][frame] = src1[chan][frame] + src2[chan][frame]; - } - } -} - -static void MasterAudioCallback(int frames, float** inputs, float** outputs, void* arg) -{ - int i; - - // Copy from iPod input to network buffers - for (i = 0; i < result.audio_input; i++) { - memcpy(audio_input_buffer[i], inputs[i], buffer_size * sizeof(float)); - } - - /* - // Copy from network out buffers to network in buffers (audio thru) - for (i = 0; i < result.audio_input; i++) { - memcpy(audio_input_buffer[i], audio_output_buffer[i], buffer_size * sizeof(float)); - } - */ - - // Mix iPod input and network in buffers to network out buffers - //MixAudio(audio_input_buffer, inputs, audio_output_buffer, result.audio_input, buffer_size); - - // Send network buffers - if (jack_net_master_send(net, result.audio_input, audio_input_buffer, 0, NULL) < 0) { - printf("jack_net_master_send error..\n"); - } - - // Recv network buffers - if (jack_net_master_recv(net, result.audio_output, audio_output_buffer, 0, NULL) < 0) { - printf("jack_net_master_recv error..\n"); - } - - // Copy from network buffers to iPod output - for (i = 0; i < result.audio_output; i++) { - memcpy(outputs[i], audio_output_buffer[i], buffer_size * sizeof(float)); - } -} - -int main(int argc, char *argv[]) { - - NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; - int i; - - if ((net = jack_net_master_open(DEFAULT_MULTICAST_IP, DEFAULT_PORT, "iPhone", &request, &result)) == 0) { - printf("jack_net_master_open error..\n"); - return -1; - } - - TiPhoneCoreAudioRenderer audio_device(result.audio_input, result.audio_output); - - // Allocate buffers - if (result.audio_input > 0) { - audio_input_buffer = (float**)calloc(result.audio_input, sizeof(float*)); - for (i = 0; i < result.audio_input; i++) { - audio_input_buffer[i] = (float*)(calloc(buffer_size, sizeof(float))); - } - } - - if (result.audio_output > 0) { - audio_output_buffer = (float**)calloc(result.audio_output, sizeof(float*)); - for (i = 0; i < result.audio_output; i++) { - audio_output_buffer[i] = (float*)(calloc(buffer_size, sizeof(float))); - } - } - - if (audio_device.Open(buffer_size, sample_rate) < 0) { - return -1; - } - - audio_device.SetAudioCallback(MasterAudioCallback, NULL); - - if (audio_device.Start() < 0) { - return -1; - } - - /* - // Quite brutal way, the application actually does not start completely, the netjack audio processing loop is used instead... - // Run until interrupted - - int wait_usec = (unsigned long)((((float)buffer_size) / ((float)sample_rate)) * 1000000.0f); - - while (1) { - - // Copy input to output - for (i = 0; i < result.audio_input; i++) { - memcpy(audio_output_buffer[i], audio_input_buffer[i], buffer_size * sizeof(float)); - } - - if (jack_net_master_send(net, result.audio_output, audio_output_buffer, 0, NULL) < 0) { - printf("jack_net_master_send error..\n"); - } - - if (jack_net_master_recv(net, result.audio_input, audio_input_buffer, 0, NULL) < 0) { - printf("jack_net_master_recv error..\n"); - } - usleep(wait_usec); - }; - */ - - int retVal = UIApplicationMain(argc, argv, nil, nil); - - audio_device.Stop(); - audio_device.Close(); - - // Wait for application end - jack_net_master_close(net); - - for (i = 0; i < result.audio_input; i++) { - free(audio_input_buffer[i]); - } - free(audio_input_buffer); - - for (i = 0; i < result.audio_output; i++) { - free(audio_output_buffer[i]); - } - free(audio_output_buffer); - - [pool release]; - return retVal; -} diff --git a/macosx/iphone/main_slave.mm b/macosx/iphone/main_slave.mm deleted file mode 100644 index b9875c32..00000000 --- a/macosx/iphone/main_slave.mm +++ /dev/null @@ -1,114 +0,0 @@ -// -// main.m -// iPhoneNet -// -// Created by Stéphane LETZ on 16/02/09. -// Copyright Grame 2009. All rights reserved. -// - -#import <UIKit/UIKit.h> -#include <jack/net.h> - -#include "TiPhoneCoreAudioRenderer.h" - -#define NUM_INPUT 0 -#define NUM_OUTPUT 2 - -jack_net_slave_t* net = NULL; -jack_adapter_t* adapter = NULL; - -int buffer_size; -int sample_rate; - -static int net_process(jack_nframes_t buffer_size, - int audio_input, - float** audio_input_buffer, - int midi_input, - void** midi_input_buffer, - int audio_output, - float** audio_output_buffer, - int midi_output, - void** midi_output_buffer, - void* data) -{ - jack_adapter_pull_and_push(adapter, audio_output_buffer, audio_input_buffer, buffer_size); - - // Process input, produce output - if (audio_input == audio_output) { - // Copy net input to net output - for (int i = 0; i < audio_input; i++) { - memcpy(audio_output_buffer[i], audio_input_buffer[i], buffer_size * sizeof(float)); - } - } - return 0; -} - -static void net_shutdown(void *arg) -{ - if (adapter) - jack_flush_adapter(adapter); -} - -static void SlaveAudioCallback(int frames, float** inputs, float** outputs, void* arg) -{ - jack_adapter_push_and_pull(adapter, inputs, outputs, frames); -} - -//http://www.securityfocus.com/infocus/1884 - -#define WIFI_MTU 1500 - -int main(int argc, char *argv[]) { - - NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; - - jack_slave_t request = { NUM_OUTPUT, NUM_INPUT, 0, 0, WIFI_MTU, -1, JackCeltEncoder, 128, 2 }; - jack_master_t result; - - //if ((net = jack_net_slave_open("169.254.112.119", DEFAULT_PORT, "iPhone", &request, &result)) == 0) { - if ((net = jack_net_slave_open(DEFAULT_MULTICAST_IP, DEFAULT_PORT, "iPod", &request, &result)) == 0) { - printf("jack_net_slave_open error...\n"); - return -1; - } - - if ((adapter = jack_create_adapter(NUM_INPUT, - NUM_OUTPUT, - result.buffer_size, - result.sample_rate, - result.buffer_size, - result.sample_rate)) == 0) { - return -1; - } - - TiPhoneCoreAudioRenderer audio_device(NUM_INPUT, NUM_OUTPUT); - - jack_set_net_slave_process_callback(net, net_process, NULL); - jack_set_net_slave_shutdown_callback(net, net_shutdown, NULL); - - if (jack_net_slave_activate(net) != 0) { - printf("Cannot activate slave client\n"); - return -1; - } - - if (audio_device.Open(result.buffer_size, result.sample_rate) < 0) { - return -1; - } - - audio_device.SetAudioCallback(SlaveAudioCallback, NULL); - - if (audio_device.Start() < 0) { - return -1; - } - - int retVal = UIApplicationMain(argc, argv, nil, nil); - [pool release]; - - audio_device.Stop(); - audio_device.Close(); - - // Wait for application end - jack_net_slave_deactivate(net); - jack_net_slave_close(net); - jack_destroy_adapter(adapter); - return retVal; -} diff --git a/macosx/libaften_pcm.a b/macosx/libaften_pcm.a Binary files differdeleted file mode 100644 index 9fb3da30..00000000 --- a/macosx/libaften_pcm.a +++ /dev/null diff --git a/macosx/libaften_static.a b/macosx/libaften_static.a Binary files differdeleted file mode 100644 index b5769919..00000000 --- a/macosx/libaften_static.a +++ /dev/null diff --git a/macosx/libcelt.a b/macosx/libcelt.a Binary files differdeleted file mode 100644 index e5e7de16..00000000 --- a/macosx/libcelt.a +++ /dev/null diff --git a/macosx/libopus.a b/macosx/libopus.a Binary files differdeleted file mode 100644 index fc90e6e3..00000000 --- a/macosx/libopus.a +++ /dev/null diff --git a/macosx/libportaudio.a b/macosx/libportaudio.a Binary files differdeleted file mode 100644 index cbf792a9..00000000 --- a/macosx/libportaudio.a +++ /dev/null |