Now it works!
Thanks Harry, Pedro and Paul!
I hope I'll write something useful sooner or later...
Alessandro
-----Original Message-----
From: Paul Davis <paul@email-addr-hidden>
To: Pedro Lopez-Cabanillas <pedro.lopez.cabanillas@email-addr-hidden>
Cc: linux-audio-dev@email-addr-hidden
Subject: Re: [LAD] help with RtMidi and gtkmm
Date: Sun, 5 Feb 2012 16:07:05 -0500
On Sun, Feb 5, 2012 at 2:46 PM, Pedro Lopez-Cabanillas
<pedro.lopez.cabanillas@email-addr-hidden> wrote:
> Qt requires that all GUI updates be called from the main program's thread, the
GTK (and thus gtkmm) is exactly the same.
> I don't care about Gtkmm, but in Qt the solution is very easy. You only need
> to create custom events (QEvent subclass) in the RtMIDI callback function for
> each received MIDI message, and invoke QCoreApplication::postEvent() to add
in gtk just use gtk_idle_add(); in gtkmm, use
Glib::signal_idle().connect (YOUR_FUNCTOR);
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Tue Feb 7 00:15:04 2012
This archive was generated by hypermail 2.1.8 : Tue Feb 07 2012 - 00:15:04 EET