ofxAudioAnalyzer
ofxAudioAnalyzer copied to clipboard
Deprecation warnings in all examples
All examples use the following style setup:
soundStream.setup(this, outChannels, inChannels, sampleRate, bufferSize, 3);
Apparently this setup function is deprecated, but I can't find any example or documentation on how to properly use ofSoundStreamSettings
. An example selecting a specific audio device would be useful.
ofSoundStreamSettings settings;
settings.setInListener(this);
settings.setOutListener(this);
settings.numOutputChannels = 0;
settings.numInputChannels = 2;
settings.sampleRate = 44100;
settings.bufferSize = 512;
settings.numBuffers = 3;
// setup the sound stream
soundStream.setup(settings);
//setup ofxAudioAnalyzer with the SAME PARAMETERS
audioAnalyzer.setup(
settings.sampleRate,
settings.bufferSize,
settings.numInputChannels
);