Skip to content

Commit

Permalink
synthesize onAir status (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzoschke authored Aug 16, 2024
1 parent d27743e commit 3d77872
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/net/mixable/vizlink/VizLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,10 @@ public void channelsOnAir(Set<Integer> audibleChannels) {
continue;
}

// synthesize latest onAir status for all players
CDJ p = new CDJ((CdjStatus) du);
p.onAir = onAirChannels.contains(p.player);

io.out(OM.string(new Message(p, "cdj")));
}
}
Expand Down Expand Up @@ -551,8 +554,8 @@ public void masterChanged(DeviceUpdate update) {
continue;
}

// synthesize latest master status for all players
CDJ p = new CDJ((CdjStatus) du);

if (p.player != master) {
p.master = false;
}
Expand Down

0 comments on commit 3d77872

Please sign in to comment.