PDA

View Full Version : Volume display



barniestu
April 28th, 2005, 01:34 PM
Hi, i have been having a play with girder and tonto for a little while now and have come up with a ccf and GML comb which allows me to control Power DVD, WinTV and Windows media player. I have a 5.1 speaker system connected to my Sound Blaster Audigy. I control the volume of this by adjusting the master volume from net remote using a Girder command. I have been trying to get the volume level fed back to netremote as a percentage. I have succeded in creating a variable called "VolumeLevel" which is generated by a Get Volume command and the following LUA script

VolumeLevel = floor(volLevel_left / 65535 * 100)

This variable works perfectly with XPOSD, showing the volume as a percentage on my PC monitor. However when i use the send.able command to send this variable to a frame on my CCF on NetRemote called {VolumeLevel} nothing is displayed


NetRemote.SendLabel("VolumeLevel")

Could you please help me correct this problem

Promixis
April 28th, 2005, 02:11 PM
Hi, remove the quotes!

Rob H
April 28th, 2005, 02:29 PM
Not quite, Mike!

That should be

NetRemote.SendLabel("VolumeLevel", VolumeLevel)

Promixis
April 28th, 2005, 03:49 PM
Right :D

Good thing you are doing the conversion and not me :P

Rob H
April 28th, 2005, 04:21 PM
LOL!

barniestu
April 28th, 2005, 05:41 PM
Thanks alot both of you for replying so quickly, will try it out straight away!! :D