Re: [LAD] Session Handlers and 'level 1' support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linux Audio Developers <linux-audio-dev@...>
Date: Friday, January 8, 2010 - 12:55 pm

Regarding LADI Level 1...

On Fri, 8 Jan 2010, rosea grammostola wrote:

>> In signal handler function, a global variable can be set to mark that

This totally confused me at first. "You're sending me a
UNIX signal... but then I'm supposed to answer back by
allocating a global variable? How do I do that?"

I think what you mean is to indicate that saving doesn't
have to happen in realtime, but that it can happen (for
instance) as part of the program's normal event loop. The
stuff about the global variable (or even an event loop) is
an implementation detail.

I suggest the wording be changed to say something like this:

"The application, after receiving the signal, should
save as soon as possible. However, the saving does
not have to happen in the signal-handler function
itself. (For example, you can push a 'Save Event' to
your normal event loop.)

>> Save of the internal state can be made in a fixed file path, but it is

This is also confusing wording (to me). Who is setting this
file path? And the commandline?? I thought we were
handling a signal.

May I suggest the following wording:

"The application is free to save state however it
sees fit (e.g. saving files to a fixed file path).
When the application is started, some means of
restoring the state needs to be given to the user,
preferably from the commandline. For example,
when the signal is received, the application will
give a string id (such as a file path) to the
user. This id may then be used as a commandline
argument to restore the state."

I think this is a good idea (Nedko or whoever dreamed it
up), and I'm willing to add it to my applications.

Peace,
Gabriel
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] Session Handlers and 'level 1' support, rosea grammostola, (Mon Jan 4, 12:05 pm)
Re: [LAD] Session Handlers and 'level 1' support, Chris Cannam, (Fri Jan 8, 9:35 am)
Re: [LAD] Session Handlers and 'level 1' support, Rui Nuno Capela, (Fri Jan 8, 9:54 pm)
Re: [LAD] Session Handlers and 'level 1' support, Nedko Arnaudov, (Fri Jan 8, 9:57 pm)
Re: [LAD] Session Handlers and 'level 1' support, Nedko Arnaudov, (Fri Jan 8, 10:37 am)
Re: [LAD] Session Handlers and 'level 1' support, Chris Cannam, (Fri Jan 8, 10:41 am)
Re: [LAD] Session Handlers and 'level 1' support, Nedko Arnaudov, (Fri Jan 8, 11:01 am)
Re: [LAD] Session Handlers and 'level 1' support, Chris Cannam, (Fri Jan 8, 11:09 am)
Re: [LAD] Session Handlers and 'level 1' support, Nedko Arnaudov, (Fri Jan 8, 11:19 am)
Re: [LAD] Session Handlers and 'level 1' support, Chris Cannam, (Fri Jan 8, 11:27 am)
Re: [LAD] Session Handlers and 'level 1' support, Nedko Arnaudov, (Fri Jan 8, 11:51 am)
Re: [LAD] Session Handlers and 'level 1' support, Chris Cannam, (Fri Jan 8, 12:01 pm)
Re: [LAD] Session Handlers and 'level 1' support, Nedko Arnaudov, (Fri Jan 8, 12:07 pm)
Re: [LAD] Session Handlers and 'level 1' support, Chris Cannam, (Fri Jan 8, 1:03 pm)
Re: [LAD] Session Handlers and 'level 1' support, Nedko Arnaudov, (Fri Jan 8, 1:37 pm)
Re: [LAD] Session Handlers and 'level 1' support, Chris Cannam, (Fri Jan 8, 1:46 pm)
Re: [LAD] Session Handlers and 'level 1' support, rosea grammostola, (Fri Jan 8, 12:27 pm)
Re: [LAD] Session Handlers and 'level 1' support, Nedko Arnaudov, (Fri Jan 8, 12:32 pm)
Re: [LAD] Session Handlers and 'level 1' support, rosea grammostola, (Fri Jan 8, 12:57 pm)
Re: [LAD] Session Handlers and 'level 1' support, rosea grammostola, (Fri Jan 8, 9:31 am)
Re: [LAD] Session Handlers and 'level 1' support, Gabriel M. Beddingfield, (Fri Jan 8, 12:55 pm)
Re: [LAD] Session Handlers and 'level 1' support, Nedko Arnaudov, (Fri Jan 8, 1:47 pm)
Re: [LAD] Session Handlers and 'level 1' support, Gabriel M. Beddingfield, (Fri Jan 8, 2:03 pm)
Re: [LAD] Session Handlers and 'level 1' support, Chris Cannam, (Fri Jan 8, 1:50 pm)
Re: [LAD] Session Handlers and 'level 1' support, Gabriel M. Beddingfield, (Fri Jan 8, 2:06 pm)
Re: [LAD] Session Handlers and 'level 1' support, Chris Cannam, (Fri Jan 8, 2:16 pm)
Re: [LAD] Session Handlers and 'level 1' support, Gabriel M. Beddingfield, (Fri Jan 8, 3:31 pm)