INTERACT FORUM
More => Old Versions => JRiver Media Center 21 for Windows => Topic started by: drmimosa on January 28, 2016, 10:13:29 am
-
How do I stop all playback on a specific zone from the command line (when that zone is not active in MC21)?
I've tried these and they don't seem to work:
mc21.exe /Stop|Zone=1
mc21.exe /MCC 10002:1
I think I am making a mistake in syntax order.
-
To issue MCC_STOP to a specific zone, here's the comment:
// To issue playback commands to a specific zone, mask these values with the parameter:
// Current Zone: 0
// Zone Index 0: 16777216 (or 0x1000000 hex)
// Zone Index 1: 33554432 (or 0x2000000 hex)
// Zone Index 2: 50331648 (or 0x3000000 hex)
// Zone Index 3: 67108864 (or 0x4000000 hex)
// Zone Index 4: 83886080 (or 0x5000000 hex)
// Zone Index 5: 100663296 (or 0x6000000 hex)
// etc... (keep adding 16777216 (or 2^24)) (up to Zone Index 31)
//
// for the geeks, this is the top 6 bits of the 32-bit parameter
// the lower 24 bits are used for the rest of the parameter (see the C++ macros below if you like)
// if bit 32 is set, we assume someone passed in a simple negative number, so discard the zone portion
//
// for parameters >= 0: zone number + parameter
// for parameters < 0: zone number + (16777216 + parameter)
// example: parameter -1 to zone 3: 67108864 + (16777216 + -1) = 83886079
-
Thanks. This worked:
mc21.exe /MCC 10002,33554432
Does "mask these values with the parameter" always mean "add a comma and a number at the end"?
Thanks again. I'm having too much fun with my house radio system.