danomatika / ofxPd

(maintained) a Pure Data addon for OpenFrameworks using libpd
Other
202 stars 45 forks source link

audioReceived & audioRequested deprecated #92

Closed Nejrup closed 11 months ago

Nejrup commented 1 year ago

Should pd.audioIn work with (ofSoundBuffer& buffer) instead of the deprecated (float * input, int bufferSize, int nChannels) ?

& audioReceived(float * input, int bufferSize, int nChannels) be replaced replaced with audioIn(ofSoundBuffer& buffer) in the examples (+ audioRequested -> audioOut) ?

Thanks for the great work btw!

danomatika commented 1 year ago

Probably. I would just have the ofSoundBuffer versions call the current audioReceived version. No need to replicate the stuff inside.

enohp ym morf tnes

Dan Wilcox danomatika.com robotcowboy.com

On Jan 19, 2023, at 12:31 PM, Nejrup @.***> wrote:

 Should pd.audioIn work with (ofSoundBuffer& buffer) instead of the deprecated (float * input, int bufferSize, int nChannels) ?

& audioReceived(float * input, int bufferSize, int nChannels) be replaced replaced with audioIn(ofSoundBuffer& buffer) in the examples (+ audioRequested -> audioOut) ?

Thanks for the great work btw!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

danomatika commented 11 months ago

ofSoundBuffer support is now added in the latest commits. I prefer to keep the original implementations with the raw buffer as a lower level option and not to break old projects.