PDA

View Full Version : Arithmetic possible in a PDL driver?


Hiller
11-07-2006, 12:51 PM
I need to convert a hex value to a number and vice versa for the volume on my B&K processor driver. It looks like this:

0h = Mute, 1h = -95 dB,... 60h = 0 dB, ... 6Fh = +15 dB

Is there an easy way to do this in PDL other than having to map every value from -95 to +15?

Thanks,
Steve

Dean Roddey
11-07-2006, 01:01 PM
There are math expressions. They are documented in the PDL reference section of the driver dev guide document.

Hiller
11-07-2006, 05:08 PM
Wow, I have no idea how I missed that. I'm going to blame it on working on that driver really late last night! :oops:

Sorry for wasting forum space!

Steve