diff options
| author | mick grierson <mickgrierson@gmail.com> | 2015-07-27 01:07:41 +0100 |
|---|---|---|
| committer | mick grierson <mickgrierson@gmail.com> | 2015-07-27 01:07:41 +0100 |
| commit | 1100fc8c462d9a17731340596e7d9c07adb3fe54 (patch) | |
| tree | 91ed36c7a767f2819289409899ef305b358cf0f4 /ofxMaxim/examples/iOS/ofxMaximiPhone007Example/src | |
| parent | 68ee8eba9c3834604d220f4bf56e7e9d506a77a7 (diff) | |
More major repair work. New OS X 10.10 SDK example project. New project structure. New Tutorials / Examples.
Diffstat (limited to 'ofxMaxim/examples/iOS/ofxMaximiPhone007Example/src')
3 files changed, 0 insertions, 172 deletions
diff --git a/ofxMaxim/examples/iOS/ofxMaximiPhone007Example/src/main.mm b/ofxMaxim/examples/iOS/ofxMaximiPhone007Example/src/main.mm deleted file mode 100644 index a0b6b4c..0000000 --- a/ofxMaxim/examples/iOS/ofxMaximiPhone007Example/src/main.mm +++ /dev/null @@ -1,8 +0,0 @@ -#include "ofMain.h" -#include "testApp.h" - -int main(){ - ofSetupOpenGL(1024,768, OF_FULLSCREEN); // <-------- setup the GL context - - ofRunApp(new testApp); -} diff --git a/ofxMaxim/examples/iOS/ofxMaximiPhone007Example/src/testApp.h b/ofxMaxim/examples/iOS/ofxMaximiPhone007Example/src/testApp.h deleted file mode 100755 index 0bf924f..0000000 --- a/ofxMaxim/examples/iOS/ofxMaximiPhone007Example/src/testApp.h +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once - -#include "ofMain.h" -#include "ofxiPhone.h" -#include "ofxiPhoneExtras.h" -#include "ofxMaxim.h" - - -class testApp : public ofxiPhoneApp { - -public: - ~testApp(); - void setup(); - void update(); - void draw(); - void exit(); - - void touchDown(ofTouchEventArgs &touch); - void touchMoved(ofTouchEventArgs &touch); - void touchUp(ofTouchEventArgs &touch); - void touchDoubleTap(ofTouchEventArgs &touch); - void touchCancelled(ofTouchEventArgs &touch); - - void lostFocus(); - void gotFocus(); - void gotMemoryWarning(); - void deviceOrientationChanged(int newOrientation); - - void audioReceived( float * input, int bufferSize, int nChannels ); - void audioRequested( float * output, int bufferSize, int nChannels ); - - int initialBufferSize; - int sampleRate; - - - ofxMaxiOsc myOsc1; - ofxMaxiSample sample1; - double patch1,sample,outputs1[2]; - ofxMaxiMix channel1; - -}; - - diff --git a/ofxMaxim/examples/iOS/ofxMaximiPhone007Example/src/testApp.mm b/ofxMaxim/examples/iOS/ofxMaximiPhone007Example/src/testApp.mm deleted file mode 100755 index ad2a865..0000000 --- a/ofxMaxim/examples/iOS/ofxMaximiPhone007Example/src/testApp.mm +++ /dev/null @@ -1,121 +0,0 @@ -#include "testApp.h" -#include "ofxMaxim.h" - -testApp::~testApp() { - - delete sample1.myData; - -} - - -//-------------------------------------------------------------- -void testApp::setup(){ - ofEnableAlphaBlending(); - // register touch events - ofRegisterTouchEvents(this); - - // initialize the accelerometer - ofxAccelerometer.setup(); - - //iPhoneAlerts will be sent to this. - ofxiPhoneAlerts.addListener(this); - - sampleRate = 44100; - initialBufferSize = 512; - - sample1.load(ofToDataPath("beat2.wav")); - - ofSoundStreamSetup(2,0,this, sampleRate, initialBufferSize, 4); - - //If you want a landscape oreintation - //iPhoneSetOrientation(OFXIPHONE_ORIENTATION_LANDSCAPE_RIGHT); - - ofBackground(255,255,255); -} - -//-------------------------------------------------------------- -void testApp::update(){ - -} - -//-------------------------------------------------------------- -void testApp::draw(){ - -} - -//-------------------------------------------------------------- -void testApp::exit(){ - -} - - -//-------------------------------------------------------------- -void testApp::audioRequested(float * output, int bufferSize, int nChannels){ - - if( initialBufferSize != bufferSize ){ - ofLog(OF_LOG_ERROR, "your buffer size was set to %i - but the stream needs a buffer size of %i", initialBufferSize, bufferSize); - return; - } - - for (int i = 0; i < bufferSize; i++){ - - sample=sample1.play(1.); - channel1.stereo(sample,outputs1,0.5); - - output[i*nChannels ] = outputs1[0]; - output[i*nChannels + 1] = outputs1[1]; - - } - -} - -//-------------------------------------------------------------- -void testApp::audioReceived(float * input, int bufferSize, int nChannels){ - -} - -//-------------------------------------------------------------- -void testApp::touchDown(ofTouchEventArgs &touch){ - -} - -//-------------------------------------------------------------- -void testApp::touchMoved(ofTouchEventArgs &touch){ - -} - -//-------------------------------------------------------------- -void testApp::touchUp(ofTouchEventArgs &touch){ - -} - -//-------------------------------------------------------------- -void testApp::touchDoubleTap(ofTouchEventArgs &touch){ - -} - -//-------------------------------------------------------------- -void testApp::lostFocus(){ - -} - -//-------------------------------------------------------------- -void testApp::gotFocus(){ - -} - -//-------------------------------------------------------------- -void testApp::gotMemoryWarning(){ - -} - -//-------------------------------------------------------------- -void testApp::deviceOrientationChanged(int newOrientation){ - -} - -//-------------------------------------------------------------- -void testApp::touchCancelled(ofTouchEventArgs& args){ - -} - |
