ofxAudioAnalyzer icon indicating copy to clipboard operation
ofxAudioAnalyzer copied to clipboard

Deprecation warnings in all examples

Open alexdmiller opened this issue 5 years ago • 1 comments

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.

alexdmiller avatar Feb 04 '20 17:02 alexdmiller

    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
    );

hamoid avatar Mar 15 '22 13:03 hamoid