Re: [Jack-Devel] Segmentation fault using jackctl_server_start

PrevNext  Index
DateThu, 20 Oct 2011 20:04:38 +0200
From Stéphane Letz <[hidden] at grame dot fr>
ToRoyi Freifeld <[hidden] at gmail dot com>
CcJack Developers <[hidden] at lists dot jackaudio dot org>
Follow-UpRoyi Freifeld Re: [Jack-Devel] Segmentation fault using jackctl_server_start
It seems that you are using an old version of control API.

Try with latest SVN tree (http://jackaudio.org/download)

Stéphane


Le 20 oct. 2011 à 19:35, Royi Freifeld a écrit :

> I have managed to narrow it down to the part where I set the server to be real-time. I know that real-time mode is the default but I wonder why didn't it work??
> In the .cpp file:
> line 221-222 is where I set the realtime status
> set_parameter method is line 188
> jackctl_get_parameter is a function I created, not one of  the control API (line 95).
> 
> The testing main function :
> #include <unistd.h>
> int main()
> {
>   JackServerManager* jsm = new JackServerManager();
>   jsm->start_server();
>   sleep(30);
>   jsm->stop_server();
>   delete jsm;
> }
> 
> The program crashes after trying to run jackctl_server_start on line 70. When I remove lines 221-222 It works.
> 
> Thnx
> 
> On Thu, Oct 20, 2011 at 2:34 PM, Stéphane Letz <[hidden]> wrote:
> Can you send your code?
> 
> Thanks.
> 
> Stéphane
> 
> Le 19 oct. 2011 à 16:24, Royi Freifeld a écrit :
> 
> > I need to configure the server and connect unknown number of clients to it.
> > Once everything is connected and running, nothing is changed until some stop button is pressed. I can stop all clients and send a close command (jackctl_server_stop), and basically exit the program.
> > Can I do it differently, without using the control API?
> >
> > On Wed, Oct 19, 2011 at 4:02 PM, Stéphane Letz <[hidden]> wrote:
> > Why are you using the control API (which jackctl_server_start is port of) in the first place?
> >
> > Stéphane
> >
> > Le 19 oct. 2011 à 15:54, Royi Freifeld a écrit :
> >
> > > It's not a client and JackNoStartServer is passed to each new client being opened.
> > > I must configure the server before creating and connecting any client
> > >
> > > On Wed, Oct 19, 2011 at 2:35 PM, Adrian Knoth <[hidden]> wrote:
> > > On Wed, Oct 19, 2011 at 02:26:18PM +0200, Royi Freifeld wrote:
> > >
> > > > Hey all,
> > >
> > > Hi!
> > >
> > > > I'm developing an application using JACK (alsa as backend).
> > > > After setting all parameters, the jackctl_server_start function is being
> > > > called, the JACK outputs:
> > >
> > > Is it a client? If so, there's no need to explicitly start the server,
> > > you can always assume it is running.
> > >
> > > And if not, jack_client_open() would start the server unless
> > > JackNoStartServer is passed.
> > >
> > >
> > > Cheers
> > > 
> > > Jack-Devel mailing list
> > > [hidden]
> > > http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
> > >
> > >
> > >
> > > --
> > > Carpe Diem
> > > 
> > > Jack-Devel mailing list
> > > [hidden]
> > > http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
> >
> >
> >
> >
> > --
> > Carpe Diem
> 
> 
> 
> 
> -- 
> Carpe Diem
> 
> <JackServerManager.hpp><JackServerManager.cpp>
PrevNext  Index

1319133897.9122_0.ltw:2,a <CD38F140-C0C2-4B68-8A2F-118126061621 at grame dot fr>