Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/ofxScene.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ class ofxScene{
virtual void mouseReleased(int x, int y, int button) {};
virtual void windowResized(int w, int h){};

//audio
virtual void audioOut(float * output, int bufferSize, int nChannels, int deviceID, long unsigned long tickCount) {};
virtual void audioOut(float * output, int bufferSize, int nChannels) {};
virtual void audioIn(float * input, int bufferSize, int nChannels, int deviceID, long unsigned long tickCount) {};
virtual void audioIn(float * input, int bufferSize, int nChannels) {};

//touch events - iphone
#ifdef TARGET_OF_IPHONE
virtual void touchDown(ofTouchEventArgs &touch){};
Expand Down
13 changes: 13 additions & 0 deletions src/ofxSceneManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,19 @@ void ofxSceneManager::windowResized (int w, int h){
}
}

void ofxSceneManager::audioOut(float * output, int bufferSize, int nChannels, int deviceID, long unsigned long tickCount){
if (currentScene != NULL) currentScene->audioOut(output, bufferSize, nChannels, deviceID, tickCount);
}
void ofxSceneManager::audioOut(float * output, int bufferSize, int nChannels){
if (currentScene != NULL) currentScene->audioOut(output, bufferSize, nChannels);
}
void ofxSceneManager::audioIn(float * input, int bufferSize, int nChannels, int deviceID, long unsigned long tickCount){
if (currentScene != NULL) currentScene->audioIn(input, bufferSize, nChannels, deviceID, tickCount);
}
void ofxSceneManager::audioIn(float * input, int bufferSize, int nChannels){
if (currentScene != NULL) currentScene->audioIn(input, bufferSize, nChannels);
}

#ifdef TARGET_OF_IPHONE
void ofxSceneManager::touchDown(ofTouchEventArgs &touch){
if (currentScene != NULL) currentScene->touchDown( touch );
Expand Down
6 changes: 6 additions & 0 deletions src/ofxSceneManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ class ofxSceneManager{
void mouseReleased(int x, int y, int button);
void windowResized(int w, int h);

//audio
void audioOut(float * output, int bufferSize, int nChannels, int deviceID, long unsigned long tickCount);
void audioOut(float * output, int bufferSize, int nChannels);
void audioIn(float * input, int bufferSize, int nChannels, int deviceID, long unsigned long tickCount);
void audioIn(float * input, int bufferSize, int nChannels);

//touch events - ios
#ifdef TARGET_OF_IPHONE
void touchDown(ofTouchEventArgs &touch);
Expand Down