Jump to content
C4 Forums | Control4

Develop a Multi-Room Music Audio Driver With Some Problem


abner007

Recommended Posts

function REV_CMD.GetHostRoomList(NetResponse)
    --local NetResponse = ParseCommand(string.sub(TotalData,5))
    gZone1Id = NetResponse.arg.roomList[1].roomId
    gZone2Id = NetResponse.arg.roomList[2].roomId
    gZone3Id = NetResponse.arg.roomList[3].roomId
    gZone4Id = NetResponse.arg.roomList[4].roomId
    local tempID = string.sub(gZone1Id,8,8)..string.sub(gZone2Id,8,8)..string.sub(gZone3Id,8,8)..string.sub(gZone4Id,8,8)
    print(gZone1Id ,
          gZone2Id ,
         gZone3Id ,
         gZone4Id)
    C4:UpdateProperty('Zone ID',tempID)
    GetMapInput()
    rev = {}
end

function GetMapInput()
    gMapInput = {
       [0] = gZone1Id,
       [1] = gZone2Id,
       [2] = gZone3Id,
       [3] = gZone4Id,
       }
end
Hello,there are some problem with my diver. Could you teach me about it,Now the problem is I don‘t know how to tell the diver which gzone id and roomid was in the same room!thanks a lot!

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.