Skip to content

numChansIn and numChansOut not updated #42

@stephanschulz

Description

@stephanschulz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions