jack_on_info_shutdown ... i dont see that in jack1... whats the point ?

View: New views
3 Messages — Rating Filter:   Alert me  

jack_on_info_shutdown ... i dont see that in jack1... whats the point ?

by torbenh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


why is jack_on_shutdown deprecated ?
i dont see a point.

why not add a call jack_get_shutdown_info ? or whatever ?
deprecating something where no alternative exists in jack1 is bad.

--
torben Hohn
_______________________________________________
Jack-Devel mailing list
Jack-Devel@...
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org

Re: jack_on_info_shutdown ... i dont see that in jack1... whats the point ?

by Paul Davis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Nov 4, 2009 at 10:57 AM, torbenh <torbenh@...> wrote:
>
> why is jack_on_shutdown deprecated ?
> i dont see a point.
>
> why not add a call jack_get_shutdown_info ? or whatever ?
> deprecating something where no alternative exists in jack1 is bad.

(as discussed on IRC :)

it is for setting up an alternative shutdown callback that will
provide info (as a string) to clients about why the JACK shutdown
occured (e.g. removal of firewire/USB device). a "get..() function
won't work for various reasons that i don't want to get into via
email.

however, i don't recall there being a decision to deprecate
on_shutdown(), since many clients (most!) don't care about the reason.
there's no reason that messages about it should be in the log/err
output.

--p
_______________________________________________
Jack-Devel mailing list
Jack-Devel@...
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org

Re: jack_on_info_shutdown ... i dont see that in jack1... whats the point ?

by Stéphane Letz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Le 4 nov. 2009 à 17:30, Paul Davis a écrit :

> On Wed, Nov 4, 2009 at 10:57 AM, torbenh <torbenh@...> wrote:
>>
>> why is jack_on_shutdown deprecated ?
>> i dont see a point.
>>
>> why not add a call jack_get_shutdown_info ? or whatever ?
>> deprecating something where no alternative exists in jack1 is bad.
>
> (as discussed on IRC :)
>
> it is for setting up an alternative shutdown callback that will
> provide info (as a string) to clients about why the JACK shutdown
> occured (e.g. removal of firewire/USB device). a "get..() function
> won't work for various reasons that i don't want to get into via
> email.
>
> however, i don't recall there being a decision to deprecate
> on_shutdown(), since many clients (most!) don't care about the reason.
> there's no reason that messages about it should be in the log/err
> output.
>
> --p


OK, incorrect change, reverted in SVN.

Stéphane
_______________________________________________
Jack-Devel mailing list
Jack-Devel@...
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org