Richard Bown wrote:
> On Tuesday 03 June 2003 10:13 am, Richard Bown wrote:
>
>>>> BTW - do we have to Doc::syncDevices() everytime we
>>>> App::setDocument?
>>>
>>> Yes.
>>
>> Why?  Surely if no new clients have become active (which we're
>> informed of) and we can't reconnect (because we're not allowed to)
>> then nothing will have changed since the last fetch?
>
> Oh - I s'pose we have to write our new document connections down to
> the sequencer too now of course don't we?

I'm not sure I follow what you're rambling on about here.  We have
to syncDevices because the Studio is part of the Document, so when
a new document is loaded it will have a new studio, and we have to
ensure that that studio contains any devices that already existed
in excess of the ones in the file being loaded, and that they're
correctly connected as appropriate.

The document loading code also relies on this sync to ensure that
any devices created when loading the file are propagated back to
the GUI (the act of creation itself is carried out at the sequencer
first -- it has to be, as only the sequencer can assign device IDs).


Chris



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Rosegarden-devel mailing list
[EMAIL PROTECTED] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to