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

numChansIn and numChansOut not updated #42

Open
stephanschulz opened this issue May 12, 2022 · 0 comments
Open

numChansIn and numChansOut not updated #42

stephanschulz opened this issue May 12, 2022 · 0 comments

Comments

@stephanschulz
Copy link

I made this change to get numChansIn and numChansOut updated even when not calling draw();

new code:

void ofxSoundMatrixMixerRenderer::drawStatus(float x, float y){
    
    if(obj != nullptr){

        if(numChansIn != obj->getNumInputChannels() ||
           numChansOut != obj->getNumOutputChannels()){
            numChansIn = obj->getNumInputChannels();
            numChansOut = obj->getNumOutputChannels();
        }
    }
	std::stringstream ss;
	ss << "Num Output Channels : " << numChansOut << std::endl;
	ss << "Num Input Channels  : " << numChansIn << std::endl;
	ss << "Num Input Objects   : " << obj->inObjects.size() << std::endl;
	
	ofDrawBitmapStringHighlight(ss.str(), x, y);
}

current code:

void ofxSoundMatrixMixerRenderer::drawStatus(float x, float y){

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

1 participant