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

Question around void audioIn(ofSoundBuffer& buffer)

$
0
0

@firmread wrote:

So I've been playing around with Kyle's ofxFft and trying to update the examples to compatible with master version. Since audioIn now depreciated old void audioIn(float* input, int bufferSize, int nChannels) for void audioIn(ofSoundBuffer& buffer) I just want to see how to translate from the old one to new ofSoundBuffer.

In some case, I was able to simply replace index with buffer right away. But I'm having problem with this example which involve using memcpy When I replace input with &buffer it compiles just fine but won't get the right output. I'm guessing it had something to do with sizeof(float) but I'm at my wit ends how to fix it.

Any suggestion? Thx!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles