[Clam-devel] Demo today report

Xavier Amatriain xavier at create.ucsb.edu
Tue Jun 5 14:45:58 PDT 2007


I have unsuccessfully tried to figure out what the problem is but I
can't find any reason. I am attaching the "offending" processing class.
Apart from that all I did was add it to the ProcessingTree and tried to
r'n'r ;)


On Tue, 2007-06-05 at 15:53 +0200, Pau Arumi wrote:
> En/na Xavier Amatriain ha escrit:
> 
> > 2) When I added the new processing in the NetworkEditor I could not 
> > connect the ports! This
> > is new to me, I have done this many times before and never experienced 
> > that behavior. Maybe
> > it was a silly coding mistake but everything was pretty straightforward 
> > (Audio ports). I will look
> > into the code on Monday but maybe somebody has some idea what might have 
> > gone wrong.
> 
> did you find the reason? send a patch if not. i'm curious about it.

-- 
/*********************************
 *       Xavier Amatriain        *
 *  Associate Director - MATi    *
 *  Research Director - CREATE   *
 *    UCSB, Santa Barbara CA     *
 *      1-(805)- 893 83 52       *
 ********************************/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EmptyProcessing.cxx
Type: text/x-c++src
Size: 700 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070605/38c54d2e/attachment-0004.cxx>
-------------- next part --------------
#ifndef RingModulator_hxx
#define RingModulator_hxx

#include <CLAM/InPort.hxx>
#include <CLAM/OutPort.hxx>
#include <CLAM/Processing.hxx>

// Those two configuration types could be the ones you choose.
// Your own ones or any type already in CLAM.
#include "Audio.hxx"
#include "Spectrum.hxx"
#include "InControl.hxx"
#include "OutControl.hxx"

namespace CLAM {

class RingModulator : public CLAM::Processing
{ 
	CLAM::InPort<Audio> mIn;
	CLAM::InPort<Audio> mIn2;
	
	CLAM::OutPort<Audio> mOut;
	
	CLAM::InControl mInControl;      
public:
	const char* GetClassName() const { return "RingModulator"; }
	RingModulator(const Config& config );
 
	bool Do();

	bool Do(const Audio& in,const Audio& in2, Audio& out);
};

};

#endif // RingModulator_hxx


More information about the clam-devel mailing list