Hi, I’m trying to make an audio visualizer class and I wanted to separate the responsibilities between ofApp
and my class implementing ofSoundStream
only in the visualizer class.
I thought that this would work:
#include "AudioVizClass.h"
#include "ofApp.h"
AudioVizClass::AudioVizClass(){
//...
}
void AudioVizClass::setup(){
//...
soundStream.setup((ofApp*)ofGetAppPtr(), 0, 2, 44100, 256, 4);
}
//--------------------------------------------------------------
void AudioVizClass::audioIn(float * input, int bufferSize, int nChannels){
}
But the audioIn
function is not being called at all.