javax.sound.midi
Class Sequencer.SyncMode

java.lang.Object
  extended by javax.sound.midi.Sequencer.SyncMode
Enclosing interface:
Sequencer

public static class Sequencer.SyncMode
extends Object

A SyncMode object represents the mechanism by which a MIDI sequencer synchronizes time with a master or slave device.


Field Summary
static Sequencer.SyncMode INTERNAL_CLOCK
          A master sync mode indicating the use of an internal sequencer clock.
static Sequencer.SyncMode MIDI_SYNC
          A master or slave sync mode indicating the use of MIDI clock messages.
static Sequencer.SyncMode MIDI_TIME_CODE
          A master or slave sync mode indicating the use of MIDI Time Code messages.
static Sequencer.SyncMode NO_SYNC
          A slave sync mode indicating that no timing info will be transmitted.
 
Constructor Summary
protected Sequencer.SyncMode(String name)
          Create a new SyncMode object
 
Method Summary
 boolean equals(Object o)
          SyncMode objects are only equal when identical.
 int hashCode()
          SyncMode objects use the Object hashCode.
 String toString()
          Use the SyncMode name as the string representation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INTERNAL_CLOCK

public static final Sequencer.SyncMode INTERNAL_CLOCK
A master sync mode indicating the use of an internal sequencer clock.


MIDI_SYNC

public static final Sequencer.SyncMode MIDI_SYNC
A master or slave sync mode indicating the use of MIDI clock messages.


MIDI_TIME_CODE

public static final Sequencer.SyncMode MIDI_TIME_CODE
A master or slave sync mode indicating the use of MIDI Time Code messages.


NO_SYNC

public static final Sequencer.SyncMode NO_SYNC
A slave sync mode indicating that no timing info will be transmitted.

Constructor Detail

Sequencer.SyncMode

protected Sequencer.SyncMode(String name)
Create a new SyncMode object

Parameters:
name - the SyncMode name
Method Detail

equals

public final boolean equals(Object o)
SyncMode objects are only equal when identical.

Overrides:
equals in class Object
Parameters:
o - the Object to compare to
Returns:
whether this Object is semantically equal to another
See Also:
Object.hashCode()

hashCode

public final int hashCode()
SyncMode objects use the Object hashCode.

Overrides:
hashCode in class Object
Returns:
the hash code for this Object
See Also:
Object.equals(Object), System.identityHashCode(Object)

toString

public final String toString()
Use the SyncMode name as the string representation.

Overrides:
toString in class Object
Returns:
the String representing this Object, which may be null
See Also:
Object.toString()