From 0a330814feeeca4feb53af18881df1fc962c6cea Mon Sep 17 00:00:00 2001 From: Mick Grierson Date: Wed, 24 Aug 2011 00:40:40 +0100 Subject: added ofxMaxim 007 example --- ofxMaxim/ofMaxim007Example/src/testApp.h | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 ofxMaxim/ofMaxim007Example/src/testApp.h (limited to 'ofxMaxim/ofMaxim007Example/src/testApp.h') diff --git a/ofxMaxim/ofMaxim007Example/src/testApp.h b/ofxMaxim/ofMaxim007Example/src/testApp.h new file mode 100644 index 0000000..ee11865 --- /dev/null +++ b/ofxMaxim/ofMaxim007Example/src/testApp.h @@ -0,0 +1,40 @@ +#pragma once + +#include "ofMain.h" +#include "ofxMaxim.h" + + +class testApp : public ofBaseApp{ + + public: + ~testApp();/* destructor is very useful */ + void setup(); + void update(); + void draw(); + + void keyPressed (int key); + void keyReleased(int key); + void mouseMoved(int x, int y ); + void mouseDragged(int x, int y, int button); + void mousePressed(int x, int y, int button); + void mouseReleased(int x, int y, int button); + void windowResized(int w, int h); + void dragEvent(ofDragInfo dragInfo); + void gotMessage(ofMessage msg); + + void audioRequested (float * input, int bufferSize, int nChannels); /* output method */ + void audioReceived (float * input, int bufferSize, int nChannels); /* input method */ + + int initialBufferSize; /* buffer size */ + int sampleRate; + + + /* stick you maximilian stuff below */ + + double wave,sample,outputs[2]; + ofxMaxiMix mymix; + ofxMaxiOsc sine1; + ofxMaxiSample beats,beat; + + +}; -- cgit v1.3