Skip to content

PacketProtocol.md

Shirasawa edited this page Jan 7, 2022 · 14 revisions

PacketProtocol

一个包有两部分组成:

  1. 包ID (int8)
  2. 包内容

Serverbound

0 - Reply

Field Name Field Type Notes
ID int32 用于记录本次事件
包体 ... 真正的封包内容

1 - Get Explorer Data - Reply

导航栏读取

Field Name Field Type Notes
类型 int8 类型如下表
路径 string 表示客户端当前要读取的路径

客户端收到回复:

Field Name Field Type Notes
目录数量 int32
n个目录... string[]
文件数量 int32
n个文件... string[]

导航栏类型:

  1. 收藏
  2. 插件

2 - 新增轨道

请求同步轨道信息

Field Name Field Type Notes
序号 uint8 表示在哪个轨道前面添加轨道
VST标识 string 如为空则不加载

Clientbound

1 - Project Info

项目信息

Field Name Field Type Notes
端序 int16 直接为 1 (short int)

2 - Sync Track Info

同步轨道信息

Field Name Field Type Notes
轨道数 uint8 接下来会有这么多个轨道
UUID string
名字 string
颜色 string
音量 uint8
是否静音 boolean
是否独奏 boolean

Clone this wiki locally