Re: [gtk-list] Re: Software design question (pthread or special widget)?
- From: "David Given" <david_given tao co uk>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Software design question (pthread or special widget)?
- Date: Fri, 05 Mar 1999 18:17:36 +0000
[...]
>But I still need to fork (or pthread) off a new process to do the MIDI
>polling. No?
>
>I was wondering if there's a way to link up with whatever kind of
>poller/scheduler/event handler that GTK has ... but for MIDI events
>instead of screen/X events. A GtkMIDI widget would be pretty darn cool!
[...]
Can't you just open an fd to your MIDI device, and attach a callback to it? So
that every time data arrives at the fd, your routine gets called?
--
+- David Given ---------------McQ-+ "There does not now, nor will there ever,
| Work: dg@tao-group.com | exist a programming language in which it is
| Play: dgiven@iname.com | the least bit hard to write bad programs."
+- http://wired.st-and.ac.uk/~dg -+ --- Flon's Axiom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]