Re: [Jack-Devel] Segmentation fault using jackctl_server_start

PrevNext  Index
DateThu, 20 Oct 2011 19:39:40 +0200
From Royi Freifeld <[hidden] at bgu dot ac dot il>
ToStéphane Letz <[hidden] at grame dot fr>
CcJack Developers <[hidden] at lists dot jackaudio dot org>
In-Reply-ToStéphane Letz Re: [Jack-Devel] Segmentation fault using jackctl_server_start
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

* Attachment: 'JackServerManager.cpp'
content-type: text/x-c++src
* Attachment: 'JackServerManager.hpp'
content-type: text/x-c++hdr
PrevNext  Index

1319132441.7668_0.ltw:2,a <CAD-ce505CVogweikf47fBcKk+uxQT3u0uPODJ3itoKxx7kJwxA at mail dot gmail dot com>