Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

ofxPD and Audiobus

$
0
0

One thing I found regarding blocksize issue with audiobus is that audiobus apps seem to force ofxpd's ticksPerBuffer to be multiplied 4 times of the original.

So for example, if you set ticksPerBuffer as 16, and setup the ofSoundStream.

int ticksPerBuffer = 16;
ofSoundStreamSetup(2, 1, this, 44100, ofxPd::blockSize()*ticksPerBuffer, 3);

and then if you initialize ofxPd with 1/4 of ticksPerBuffer which is 4 as below,

if(!pd.init(2, 1, 44100, ticksPerBuffer/4, false)) {
OF_EXIT_APP(1);
}

It no longer seemed to cause the blocksize mismatching issue.
But it works only if you have other audiobus compatible apps opened. without any other audiobus apps opened, it will still cause blocksize mismatching problem.

I really don't know what is causing this and I'm still trying to fix this.
I would rather like ofxPd to not be affected by the other audiobus apps if there's a simple way to do it.


Viewing all articles
Browse latest Browse all 40524

Trending Articles