Re: [LAD] announcing envy24control, mudita (*) edition.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-dev@...>
Date: Saturday, July 31, 2010 - 7:19 pm

Hey gang. Took a break for a few days...

On July 28, 2010 09:10:32 pm Tim E. Real wrote:

Talk about whack-a-mole, gtk 2.20 has functions to determine those
exact spaces. However I don't have 2.20 on my one-year-old distro.
So I feel they're too new to use always, but I can put some #ifdef 's
in there to take advantage of them if available.

> However, if we're lucky, we may be able to keep page snaps by

Yes, of course, that was easy.
In envy24control.c connect all of the vscale slider objects
to a single key handler:

// Let us handle the page up/down snapping.
gtk_signal_connect(GTK_OBJECT(vscale), "key-press-event",
GTK_SIGNAL_FUNC(slider_key_handler),
0 );

The slider_key_handler() does all the rest of the work.
In the handler, gtk passes you the object which called it. Perfect.
Unlike QT, which sort of frowns upon that ("breaks modularity")
and requires you to ask what the object was.
I've got my handler done. Works just fine.
That is, I've got slider page up/down snaps, with no markers needed!

Just one problem:
For the ADC sliders, the top dB value is +18.5dB.
Therefore if we just 'blindly' move the slider 12 steps to the next
6dB positions, we get +12.5, +6.5, +0.5 dB etc.
That '.5' offset, all the way up and down the scale, is not good.

So my next step is to use the ALSA dB functions (_ask_dB)
to 'ask' what the corresponding integer values are for
+18.0, +12.0, +6.0, +0.0 etc. and these will then be the correct
positions to set our page stops.

I'm pretty sure, if I can finish this, it will be all you (we) wanted
originally, and more.

Niels do you have a new release or repo I can work with rather than
the original release, which may be too outdated to patch against by now?

Thanks. Tim.

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] announcing envy24control, mudita (*) edition., Niels Mayer, (Sun Jul 25, 7:10 pm)
Re: [LAD] announcing envy24control, mudita (*) edition., Ralf Mardorf, (Mon Jul 26, 10:13 am)
Re: [LAD] announcing envy24control, mudita (*) edition., James Morris, (Mon Jul 26, 10:52 am)
Re: [LAD] announcing envy24control, mudita (*) edition., Ralf Mardorf, (Mon Jul 26, 11:00 am)
Re: [LAD] announcing envy24control, mudita (*) edition., Ralf Mardorf, (Mon Jul 26, 10:34 am)
Re: [LAD] announcing envy24control, mudita (*) edition., Takashi Iwai, (Mon Jul 26, 8:47 am)
Re: [LAD] announcing envy24control, mudita (*) edition., Tim E. Real, (Sun Jul 25, 11:10 pm)
Re: [LAD] announcing envy24control, mudita (*) edition., Niels Mayer, (Mon Jul 26, 12:00 am)
Re: [LAD] announcing envy24control, mudita (*) edition., Tim E. Real, (Sun Jul 25, 11:22 pm)
Re: [LAD] announcing envy24control, mudita (*) edition., Niels Mayer, (Sun Jul 25, 11:55 pm)
Re: [LAD] announcing envy24control, mudita (*) edition., Tim E. Real, (Tue Jul 27, 11:09 pm)
Re: [LAD] announcing envy24control, mudita (*) edition., Niels Mayer, (Wed Jul 28, 12:04 am)
Re: [LAD] announcing envy24control, mudita (*) edition., Tim E. Real, (Thu Jul 29, 12:25 am)
Re: [LAD] announcing envy24control, mudita (*) edition., Tim E. Real, (Sat Jul 31, 7:19 pm)
[LAD] detention :), Jörn Nettingsmeier, (Wed Jul 28, 10:39 am)
Re: [LAD] detention :), Dominic Sacré, (Wed Jul 28, 12:05 pm)
Re: [LAD] detention :), Jörn Nettingsmeier, (Tue Aug 3, 6:41 pm)
Re: [LAD] detention :), Niels Mayer, (Tue Aug 3, 8:58 pm)
Re: [LAD] announcing envy24control, mudita (*) edition., James Morris, (Sun Jul 25, 9:16 pm)
Re: [LAD] announcing envy24control, mudita (*) edition., Niels Mayer, (Sun Jul 25, 11:16 pm)
Re: [LAD] announcing envy24control, mudita (*) edition., James Morris, (Mon Jul 26, 7:51 am)