From 086644237c0ed96383be68d4772623332d860473 Mon Sep 17 00:00:00 2001 From: Mick Grierson Date: Mon, 31 Oct 2011 17:10:28 +0000 Subject: ofxMaxim Examples updated. Tested on XCode 4 with ofxiPhone 007 and iOS 5 - everything works. --- ofxMaxim/ofxMaximiPhone007Example/src/testApp.h | 43 +++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 ofxMaxim/ofxMaximiPhone007Example/src/testApp.h (limited to 'ofxMaxim/ofxMaximiPhone007Example/src/testApp.h') diff --git a/ofxMaxim/ofxMaximiPhone007Example/src/testApp.h b/ofxMaxim/ofxMaximiPhone007Example/src/testApp.h new file mode 100755 index 0000000..0bf924f --- /dev/null +++ b/ofxMaxim/ofxMaximiPhone007Example/src/testApp.h @@ -0,0 +1,43 @@ +#pragma once + +#include "ofMain.h" +#include "ofxiPhone.h" +#include "ofxiPhoneExtras.h" +#include "ofxMaxim.h" + + +class testApp : public ofxiPhoneApp { + +public: + ~testApp(); + void setup(); + void update(); + void draw(); + void exit(); + + void touchDown(ofTouchEventArgs &touch); + void touchMoved(ofTouchEventArgs &touch); + void touchUp(ofTouchEventArgs &touch); + void touchDoubleTap(ofTouchEventArgs &touch); + void touchCancelled(ofTouchEventArgs &touch); + + void lostFocus(); + void gotFocus(); + void gotMemoryWarning(); + void deviceOrientationChanged(int newOrientation); + + void audioReceived( float * input, int bufferSize, int nChannels ); + void audioRequested( float * output, int bufferSize, int nChannels ); + + int initialBufferSize; + int sampleRate; + + + ofxMaxiOsc myOsc1; + ofxMaxiSample sample1; + double patch1,sample,outputs1[2]; + ofxMaxiMix channel1; + +}; + + -- cgit v1.3