[Clam-devel] Strange configure behaviour

David García Garzón dgarcia at iua.upf.edu
Sun Apr 20 04:28:59 PDT 2008


Yes, you are right, but no, it is not a bug. The configuration is run twice. 
This is because when the network editor adds a processing, the default 
configuration is applied on the default constructor. Then, the network editor 
configures it with the proper configuration.

On Dissabte 19 Abril 2008, Francisco Tufró wrote:
> I'm having a strange behaviour when i insert my processing in the
> NetworkEditor.
> It runs the configuration 2 times. (it always did it)
>
> I realised of this because i send some output to the console and it appears
> twice.
> see the code:
> .
> .
> void DefaultInit(){
>    AddAll();
>    UpdateData();
>    SetMidiDevice(-1);
>
>    // Device Listing on Console
>    for (int i = 0; i < Pm_CountDevices(); i++) {
>       const PmDeviceInfo *info = Pm_GetDeviceInfo(i);
>       if (info->input){
>          printf("%d: %s, %s", i, info->interf, info->name);
>          printf(" (input)");
>          printf("\n");
>        }
>    }
> }
>
> it works fine, only prints the list one time (i've tested it).
> but see the output when i insert the module:
>
> 0: CoreMIDI, NeON Port 1 (input)
> 1: CoreMIDI, NeON Port 2 (input)
> 0: CoreMIDI, NeON Port 1 (input)
> 1: CoreMIDI, NeON Port 2 (input)
>
> the DefaultInit() is executed twice.
> I don't know if this is a bug, or is like this for any reason, just wanted
> to notice it.
>
> :)



-- 
David García Garzón
(Work) dgarcia at iua dot upf anotherdot es
http://www.iua.upf.edu/~dgarcia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080420/1f476016/attachment.sig>


More information about the clam-devel mailing list