Re: [Jack-Devel] Jack session save/restore work-flow

PrevNext  Index
DateThu, 08 Sep 2011 19:12:21 +0200
From torbenh <[hidden] at gmx dot de>
ToFabrice Lebas <[hidden] at gmail dot com>
CcJACK <[hidden] at lists dot jackaudio dot org>
In-Reply-ToFabrice Lebas [Jack-Devel] Jack session save/restore work-flow
On Thu, Sep 08, 2011 at 11:00:17AM +0200, Fabrice Lebas wrote:
> Good day everyone,
> 
> I am implementing support for jack session for my client meterec and
> have a few queries.
> 
> In my opinion, when saving a session, 3 type of data should be stored:
> - command line options (extracted from current application invocation)
> - generated in the session callback in my client
> - configuration file (extracted from current application state) -
> generated in the session callback
> - audio data (generated during this invocation or previous invocation
> of the application) - symlink to that data created in the session
> callback

dont use the callback for disk io please.
signal your main thread, and use jack_session_reply() from there.

> I read somewhere the session folder should contain all these data or
> link to them so it can be packed, and sent over to someone else to
> work with. I also learned (with pain:) that the session folder content
> is erased before storing the session data (qjackctl at least).
> 
> If the above is true, once unpacked, the user of the session will lose
> all audio data when session is saved again...
> 
> Where should I store my data to avoid this situation?
> Am I misinterpreting the usage of session?

this issue is pretty much unsolved.
there were thoughts about an import/export event, which would do this
kind of stuff.

you could add some logic, which remembered whether the files were
sitting inside a session directory, and then hardlink them into the new
session directory, before its removed.

(but this implies, that the SM doesnt delte the old directory, before
the save is complete, iirc qjackctl does it now, and pyjacksm was doing
that nayways)

> 
> Thanks,
> Fabrice.
> 
> Jack-Devel mailing list
> [hidden]
> http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org

-- 
torben Hohn
PrevNext  Index

1315501960.26882_0.ltw:2,a <20110908171221.GB16989 at siel dot b>