untitled.cpp
static dsp* createDSPSequencer(dsp* dsp1, dsp* dsp2, std::string& error)
{
    if (dsp1->getNumOutputs() != dsp2->getNumInputs()) {
        std::stringstream error_aux;
        error_aux << "Connection error int dsp_sequencer : the number of outputs ("
                  << dsp1->getNumOutputs() << ") of A "
                  << "must be equal to the number of inputs (" << dsp2->getNumInputs() << ") of B" << std::endl;
        error = error_aux.str();
        return nullptr;
    } else {
        return new dsp_sequencer(dsp1, dsp2);
    }
}
// DSP algebra API
/*
 Each operation takes two DSP as parameters, returns the combined DSPs, or null if failure with an error message.
 */
DSP algebra API
Each operation takes two DSP as parameters, returns the combined DSPs, or null if failure with an error message.
DSP algebra API Each operation takes two DSP as parameters returns the combined DSPs or null if failure with an error message .
static dsp* createDSPSequencer(dsp* dsp1, dsp* dsp2, std::string& error)
{
    if (dsp1->getNumOutputs() != dsp2->getNumInputs()) {
        std::stringstream error_aux;
        error_aux << "Connection error int dsp_sequencer : the number of outputs ("
                  << dsp1->getNumOutputs() << ") of A "
                  << "must be equal to the number of inputs (" << dsp2->getNumInputs() << ") of B" << std::endl;
        error = error_aux.str();
        return nullptr;
    } else {
        return new dsp_sequencer(dsp1, dsp2);
    }
}
static dsp * createDSPSequencer ( dsp * dsp1 , dsp * dsp2 , std :: string & error ) { if ( dsp1 -> getNumOutputs ( ) != dsp2 -> getNumInputs ( ) ) { std :: stringstream error_aux ; error_aux << " " << dsp1 -> getNumOutputs ( ) << " " << " " << dsp2 -> getNumInputs ( ) << " " << std :: endl ; error = error_aux . str ( ) ; return nullptr ; } else { return new dsp_sequencer ( dsp1 , dsp2 ) ; } }
DSP algebra API
Each operation takes two DSP as parameters, returns the combined DSPs, or null if failure with an error message.
DSP algebra API Each operation takes two DSP as parameters returns the combined DSPs or null if failure with an error message .