INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Adjust volume with command line  (Read 907 times)

Cast0077

  • Recent member
  • *
  • Posts: 18
Adjust volume with command line
« on: May 27, 2011, 10:30:05 pm »

I need to be able to adjust the volume of a zone by 1 percent at a time. This mc16.exe /Command VolumeUp 1 will up the volume by 1 but that controls whatever zone is active at the time. I also found on this page http://wiki.jriver.com/index.php/Media_Center_Core_Commands /MCC 1018, 67108869 ... That controls zone 4 but by 5%.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Adjust volume with command line
« Reply #1 on: May 28, 2011, 01:10:24 am »

From the example on the page, 16777221 Decimal is 0x1000005 in Hexidecimal.

Each number in Hex is 4 bits.  The first 24 bits (i.e. bits 0 to 23, or 6 hex digits worth) are the parameter, which will be the volume.

Most of the bits after that are the zone, with 0 meaning the current zone, so 0x1000005 broken down into the parameter's 6 digits and the zone's digits will look like

   0x1 000005

Notice the parameter is 5.  That's the volume percent.  Change it to 1.  So now you have 0x1 000001.   

But 0x1 is zone 0.  You want the current zone, which is 0x0, so your final value will be:

0x0000001

or just 1 in Decimal.
Logged
The opinions I express represent my own folly.

Cast0077

  • Recent member
  • *
  • Posts: 18
Re: Adjust volume with command line
« Reply #2 on: May 28, 2011, 09:25:12 am »

Thanks works great now.
Logged
Pages: [1]   Go Up