public interface BeatListener
BeatFinder.addBeatListener(BeatListener).
Whenever a new beat starts, the newBeat(Beat) method in the listener object is invoked with it.| Modifier and Type | Method and Description |
|---|---|
void |
newBeat(Beat beat)
Invoked when a beat is reported on the network.
|
void newBeat(Beat beat)
VirtualCdj.getLatestStatusFor(DeviceUpdate) to find the current detailed status for that device,
as long as the Virtual CDJ is active.
To reduce latency, beat announcements 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.
beat - the message which announced the start of the new beatCopyright © 2016 Deep Symmetry, LLC. All rights reserved.