On Dilluns 15 Desembre 2008 20:52:31 Stephane THOMAS wrote: > Hi, > > On Sun, 14 Dec 2008 19:04:50 +0100 > > David García Garzón <[email protected]> wrote: > > > Warning: 2 sinks were not fed, so could not send audio to the callback. > > > > This messages is also painless provided that it is only shown a couple of > > times. Normally it means that you have to execute the network a couple of > > times to produce the first output. But if the message displays all the > > time, then it could be a problem of unfeeded input which seems not > > likely. > > Yes the message is repeated all the time.
Then just check for configurability and playability after connecting the ports. There are some Network methods to know whether your network can be played and why not: IsReady, IsEmpty, HasMissconfiguredProcessings, HasUnconnectedInPorts, HasSyncSource, GetConfigurationErrors, and GetUnconnectedInPorts. http://clam.iua.upf.edu/doc/CLAM- doxygen/classCLAM_1_1FlattenedNetwork.html#2c6111cf545b75b8b88a98a5f8f1bd0a > > The memory management issue: notice that the network takes ownership of > > the added processings so you cannot make the processings automatic > > members of your objects. Anyway that should not cause the problem you > > were reporting. > > I'm not sure to understand. What do you call an "automatic member" ? An automatic member is an attribute that is not a pointer or a reference. Automatic members' constructors and destructors are implicitly called when the container class constructor and destructors are called. So if you delete your big class, the processings will be destroyed twice (by Network destructor and by big container class destructor) causing a crash, if you don delete your big class, as you are doing now, the program won't crash but you are having a memory leak. -- David García Garzón (Work) dgarcia at iua dot upf anotherdot es http://www.iua.upf.edu/~dgarcia _______________________________________________ CLAM mailing list [email protected] http://clam.iua.upf.edu
