Jump to content

Develop a Multi-Room Music Audio Driver With Some Problem

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 ,
    C4:UpdateProperty('Zone ID',tempID)
    rev = {}

function GetMapInput()
    gMapInput = {
       [0] = gZone1Id,
       [1] = gZone2Id,
       [2] = gZone3Id,
       [3] = gZone4Id,
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!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now