Package org.deepsymmetry.beatlink
Interface FaderStartListener
-
public interface FaderStartListener
The listener interface for receiving fader start commands. Classes that are interested in knowing when the mixer broadcasts commands telling players to start or stop can implement this interface. The listener object created is then registered usingBeatFinder.addFaderStartListener(FaderStartListener)
. Whenever a relevant message is received, thefadersChanged(Set, Set)
method in the listener object is invoked.- Author:
- James Elliott
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fadersChanged(Set<Integer> playersToStart, Set<Integer> playersToStop)
Invoked when we have received a message telling us which players should start and stop playing.
-
-
-
Method Detail
-
fadersChanged
void fadersChanged(Set<Integer> playersToStart, Set<Integer> playersToStop)
Invoked when we have received a message telling us which players should start and stop playing.To reduce latency, on-air updates are delivered to listeners directly on the thread that is receiving them them from the network, so if you want to interact with user interface objects in this method, you need to use
javax.swing.SwingUtilities.invokeLater(Runnable)
to do so on the Event Dispatch Thread. Even if you are not interacting with user interface objects, any code in this method must finish quickly, or it will add latency for other listeners, and beat announcements will back up. If you want to perform lengthy processing of any sort, do so on another thread.- Parameters:
playersToStart
- contains the device numbers of all players that should start playingplayersToStop
- contains the device numbers of all players that should stop playing
-
-