@@ -58,6 +58,7 @@ public DeviceAnnouncement(DatagramPacket packet) {
5858 name = new String (packetBytes , 0x0c , 20 ).trim ();
5959 isOpusQuad = name .equals (OpusProvider .OPUS_NAME );
6060 isXdjAz = name .equals (OpusProvider .XDJ_AZ_NAME );
61+ isUsingDeviceLibraryPlus = isOpusQuad || isXdjAz ;
6162 number = Util .unsign (packetBytes [0x24 ]);
6263 }
6364
@@ -80,6 +81,7 @@ public DeviceAnnouncement(DatagramPacket packet, int deviceNumber) {
8081 name = new String (packetBytes , 0x0c , 20 ).trim ();
8182 isOpusQuad = name .equals (OpusProvider .OPUS_NAME );
8283 isXdjAz = name .equals (OpusProvider .XDJ_AZ_NAME );
84+ isUsingDeviceLibraryPlus = isOpusQuad || isXdjAz ;
8385 number = deviceNumber ;
8486 }
8587
@@ -184,17 +186,23 @@ public byte[] getPacketBytes() {
184186 }
185187
186188 /**
187- * Check whether a device update came from an Opus Quad, which behaves very differently from true Pro DJ Link hardware.
189+ * Indicates whether a device update came from an Opus Quad, which behaves very differently from true Pro DJ Link hardware.
188190 */
189191 @ API (status = API .Status .EXPERIMENTAL )
190192 public final boolean isOpusQuad ;
191193
192194 /**
193- * Check whether a device update came from an XDJ-AZ, which can also be in a weird, non-Pro DJ Link mode.
195+ * Indicates whether a device update came from an XDJ-AZ, which can also be in a weird, non-Pro DJ Link mode.
194196 */
195197 @ API (status = API .Status .EXPERIMENTAL )
196198 public final boolean isXdjAz ;
197199
200+ /**
201+ * Indicates whether the device that sent this update uses Device Library Plus (SQLite) track IDs rather than DeviceSQL IDs.
202+ */
203+ @ API (status = API .Status .EXPERIMENTAL )
204+ public final boolean isUsingDeviceLibraryPlus ;
205+
198206 @ Override
199207 public String toString () {
200208 return "DeviceAnnouncement[device:" + number + ", name:" + name + ", address:" + address .getHostAddress () +
0 commit comments