More > JRiver Media Center 33 for Windows
Can't get MCC Command MCC_PLAY_PAUSE to only work for a specific Zone
Matt:
The launcher does accept param commands in this format:
[value]:[zone]
And all that does is add the top six bits like the note says:
#define MAKE_MCC_PLAYBACK_PARAM(PARAM, ZONE_INDEX) (((ZONE_INDEX) == -1) ? ((PARAM) & 0x00FFFFFF) : ((((ZONE_INDEX) + 1) << 24) & 0xFF000000) | ((PARAM) & 0x00FFFFFF))
Matt:
I think you would want [value]:-1 for the default zone. But that's the same as just not specifying a zone I think.
zybex:
--- Quote from: Matt on October 16, 2024, 02:00:43 pm ---I think you would want [value]:-1 for the default zone.
--- End quote ---
Right, I see your code is adding +1 to the specified zone. So actually it's not possible with that code to target zone 0, it's either -1 or 1. Isn't that a bug?
Matt:
--- Quote from: zybex on October 16, 2024, 02:02:17 pm ---Right, I see your code is adding +1 to the specified zone. So actually it's not possible with that code to target zone 0, it's either -1 or 1. Isn't that a bug?
--- End quote ---
Targetting zone zero should work.
MAKE_MCC_PLAYBACK_PARAM(0, 0)
Outputs:
16777216
If you look at the notes I posted:
Zone Index 0: 16777216 (or 0x1000000 hex)
zybex:
0:-1 -> adds 0x00FFFFFF (default? zone 0?)
0:0 -> adds 0x1000000, which is zone index 0 (zone 1?)
0:1 -> adds 0x2000000, which is zone index 1 (zone 2?)
I don't see a way of specifying 0x00000000 using this syntax.
Is there a "zone 0" or do zone numbers start at 1? Is zone 0 always the current zone? It's a bit confusing.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version