admsyn / ofxAudioUnit

An openFrameworks addon which makes it easy to work with Audio Units on OSX and iOS
MIT License
120 stars 24 forks source link

ofxAudioUnitTap cannot be connected to ofxAudioUnitFftNode #9

Closed jasonlevine closed 10 years ago

jasonlevine commented 10 years ago

Hello,

I'm a currently trying to get the waveform and FFT from a fileplayer.

Given: ofxAudioUnitFilePlayer player; ofxAudioUnitTap tap; ofxAudioUnitFftNode fft; ofxAudioUnitOutput output;

player.connectTo(fft).connectTo(output); and player.connectTo(tap).connectTo(output); work perfectly.

but player.connectTo(tap).connectTo(fft).connectTo(output); gives the error: /Users/jasonlevine/Code/of_v0.8.0_osx_release/apps/myApps/fileplayertest/src/testApp.cpp:10:19: Non-const lvalue reference to type 'ofxAudioUnit' cannot bind to a value of unrelated type 'ofxAudioUnitFftNode'

and player.connectTo(fft).connectTo(tap).connectTo(output); give the error: /Users/jasonlevine/Code/of_v0.8.0_osx_release/apps/myApps/fileplayertest/src/testApp.cpp:10:19: Non-const lvalue reference to type 'ofxAudioUnit' cannot bind to a value of unrelated type 'ofxAudioUnitTap'

admsyn commented 10 years ago

Hey @jasonlevine, I just added a connectTo() which can hook up DSP nodes to each other, let me know if this works for you!