On Tue, February 12, 2013 12:15 am, James Warden wrote: > > > On Sun, Feb 10, 2013 at 11:36 PM, Patrick Shirkey > <[email protected]> wrote: > > >>On Mon, February 11, 2013 3:21 pm, Paul Davis wrote: >>> On Sun, Feb 10, 2013 at 11:16 PM, Patrick Shirkey < >>> [email protected]> wrote: >>> >>>> >>>> On Mon, February 11, 2013 9:47 am, Tristan Matthews wrote: >>>> > 2013/2/10 Patrick Shirkey <[email protected]> >>>> >>>> > Therè's this one: >>>> > >>>> https://github.com/sat-metalab/scenic/blob/master/src/vumeter/vumeter.cpp >>>> > https://github.com/sat-metalab/scenic/blob/master/src/include/vumeter.h >>>> > >>>> > It has only a few c++isms and could easily be purely in C. >>>> > >>>> >>>> Thanks. It does look useful. Seems to be written for gtk2 though. Have >>>> you >>>> compiled it with gtk3? >>>> >>> >>> at the very least, it would need a draw() method rather than an >>> expose() >>> method. >>> >>> plus, if i read it correctly it also redraws its entire self (subject >>> to >>> cairo clipping) on every expose. >>> >>> contrast with the the fastmeter in ardour3's libs/gtkmm2ext which draws >>> only the changed pixels per expose. >>> >> >>I would prefer to use that but it's in pure C++ as well as GTK2 so I have >>to convert it to c and gtk3 :-( >> >> >> > > Back in the days I had time to help Herman Meyer on his guitarix project, > I imported ardour's fast meters into C. Guitarix was using the C version > of gtk. You can look into the old guitarix code in sourceforge (that was a > long while back, maybe 3-4 years). >
Thanks for the tip. Will save me some braincells. Found it here: http://guitarix.sourcearchive.com/documentation/0.10.0-2/GtkFastMeter_8cpp-source.html http://guitarix.sourcearchive.com/documentation/0.10.0-2/GtkFastMeter_8h-source.html -- Patrick Shirkey Boost Hardware Ltd _______________________________________________ Linux-audio-dev mailing list [email protected] http://lists.linuxaudio.org/listinfo/linux-audio-dev
