Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warnings in all examples #25

Open
alexdmiller opened this issue Feb 4, 2020 · 1 comment
Open

Deprecation warnings in all examples #25

alexdmiller opened this issue Feb 4, 2020 · 1 comment

Comments

@alexdmiller
Copy link

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.

@hamoid
Copy link

hamoid commented Mar 15, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants