event
Class UDPMetronomeBroadcaster

java.lang.Object
  extended by event.UDPMetronomeBroadcaster
All Implemented Interfaces:
MetronomeListener

public class UDPMetronomeBroadcaster
extends java.lang.Object
implements MetronomeListener

A MetronomeListener that can be used to broadcast Metronome ticks over UDP

See Also:
"The Design and Implementation of Multimedia Software © 2011"

Constructor Summary
UDPMetronomeBroadcaster(int port)
          Explicit Value Constructor
 
Method Summary
 void handleTick(int millis)
          Handle a Metronome tick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDPMetronomeBroadcaster

public UDPMetronomeBroadcaster(int port)
                        throws java.io.IOException
Explicit Value Constructor

Parameters:
port - The UDP port to broadcast to
Throws:
java.io.IOException
Method Detail

handleTick

public void handleTick(int millis)
Description copied from interface: MetronomeListener
Handle a Metronome tick

Specified by:
handleTick in interface MetronomeListener
Parameters:
millis - The number of milliseconds since the Metronome started


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers