wt0 wrote:
> I'm not talking about what you see in the browser. I'm talking about
> what the player actually receives from server. I'm trying to add
> balance support to SB Player and noticed that when the balance is not
> zero, the gain value of the "audg" command of one of the channels is no
> longer a fixed point value between 0 and 1.0 (which is an integer value
> between 0 and 65536). Instead it changes to a fixed point value between
> 0 and 24 (integer value between 0 and 1572864)
Yes I'm sure, I'm logging the raw values that I'm getting from the
server. With volume set to 100 and a balance setting of 1, gainL is
1572864 and gainR is 65536. I even used Wireshark to sniff the network
packets just to be sure. Here's hex dump + ascii from the audg packet:
Code:
--------------------
0000 10 7b 44 68 cc 37 00 d8 61 d3 20 a2 08 00 45 00 .{Dh.7..a. ...E.
0010 00 44 a5 9c 00 00 80 06 00 00 c0 a8 14 72 c0 a8 .D...........r..
0020 14 67 0d 9b e3 d8 5a fa 44 36 7d 3b 3e db 50 18 .g....Z.D6};>.P.
0030 04 02 e0 3a 00 00 00 1a 61 75 64 67 00 00 0c 00 ...:....audg....
0040 00 00 00 80 01 ff 00 18 00 00 00 01 00 00 00 00 ................
0050 00 00 ..
--------------------
The hex value for gainL is "00 18 00 00" which is 1572864.
Am I just not interpreting the data correctly?
--------------
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
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss