You should convert gainL/gainR to and integer using the table, apply the
gain adjustment to that value then use it as the index in the table to
find to correct fixed point value.

So for lets say volume is set to 96 and balance is 5, gainL would be
52224 and gain adjustment would be (25-5)/25 = 0.80.  Find 52224 in the
table which will give you and index of 96.  Multiply 96 by 0.80 to get
76.8.  I usually just floor the value to 76.  Then use 76 as the index
to get value in the table which is 16640.



--------------
Squeezebox apps for webOS, Android and Windows Phone,
http://www.angrygoatapps.com
------------------------------------------------------------------------
wt0's Profile: http://forums.slimdevices.com/member.php?userid=18760
View this thread: http://forums.slimdevices.com/showthread.php?t=114010

_______________________________________________
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to