Re: [linux-audio-dev] LAAGA app client question

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] LAAGA app client question
From: Maarten de Boer (maarten.deboer_AT_iua.upf.es)
Date: Wed Jul 25 2001 - 19:28:33 EEST


On Thu, 12 Jul 2001 17:50:38 -0400
pbd_AT_op.net wrote:

> >I'm looking at how to write LAGGA clients, the command line one is pretty
> >straightforward, but what if I want to use GTK (say)?
>
> in the sample client, there is:
>
> main () {
>
> laaga_client_t = laaga_open ("myname");
> ... setup laaga ...
> laaga_activate (client);
> sleep (N);
> laaga_close (client);
> }
>
> for GTK:
>
> main () {
>
> ...setup GTK...
> laaga_client_t = laaga_open ("myname");
> ... setup laaga ...
> laaga_activate (client);
> gtk_run ();
> laaga_close (client);
> }

Paul, I am trying to use FLTK instead of GTK, but I don't get it to work...
It crashed inside X11 functions. I have seen this before, and it always
was related to multithreading and FLTK not being threadsafe, but I don't
understand how that could be a problem, since I run all fltk stuff in the
main thread.

main()
{
        ... setup fltk, e.g Fl_Window w(200,200); w.show();
        laaga_client_t = laaga_open ("myname");
        ... setup laaga ...
        laaga_activate (client);
        Fl::run ();
        laaga_close (client);
}

Any suggestions?

Maarten


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Jul 25 2001 - 19:23:06 EEST