Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Using ofSoundStream in my own class

$
0
0

@guardabrazo wrote:

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.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Latest Images

Trending Articles



Latest Images