com.groovemanager.spi.asio
Class ASIOClockSource

java.lang.Object
  extended by com.groovemanager.spi.asio.NativeClass
      extended by com.groovemanager.spi.asio.ASIOClockSource

final class ASIOClockSource
extends NativeClass

This is a wrapper class for the native ASIOClockSource struct

Author:
Manu Robledo

Constructor Summary
ASIOClockSource()
          Constructs a new ASIOClockSource and creates a corresponding native instance
ASIOClockSource(long pointer)
          Constructs a new ASIOClockSource that corresponds to an existing native instance, which is specified by the pointer
 
Method Summary
(package private)  int associatedChannel()
          The associatedChannel-Attirbute of the ASIOClockSource struct
(package private)  int associatedGroup()
          The associatedGroup-Attribute of the ASIOClockSource struct
protected  void cleanUp()
          Delete the corresponding native instance to this class
protected  long createClass()
          Create a new native instance and return its address
 boolean equals(Object obj)
           
(package private)  int index()
          The index-Attribute of the ASIOClockSource struct
(package private)  boolean isCurrentSource()
          The isCurrentClockSource-Attribute of the ASIOClockSource struct
(package private)  String name()
          The name of this clock source (for user selection)
 String toString()
           
 
Methods inherited from class com.groovemanager.spi.asio.NativeClass
finalize, getPointer
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASIOClockSource

ASIOClockSource()
Constructs a new ASIOClockSource and creates a corresponding native instance


ASIOClockSource

ASIOClockSource(long pointer)
Constructs a new ASIOClockSource that corresponds to an existing native instance, which is specified by the pointer

Parameters:
pointer - The native address of the native ASIOClockSource instance
Method Detail

index

int index()
The index-Attribute of the ASIOClockSource struct

Returns:
ASIO says: This is used to identify the clock sources when ASIOSetClockSource() is accessed, should be an index counting from zero.

associatedChannel

int associatedChannel()
The associatedChannel-Attirbute of the ASIOClockSource struct

Returns:
ASIO Says: The first channel of an associated input group, if any.

associatedGroup

int associatedGroup()
The associatedGroup-Attribute of the ASIOClockSource struct

Returns:
ASIO says: the group index of that channel. Groups of channels are defined to separate, for instance analog, S/PDIF, AES/EBU, ADAT connectors etc, when present simultaneously. Note that associated channel is enumerated according to numInputs/numOutputs, meaning it is independent from a group (see also ASIOGetChannelInfo()) inputs are associated to a clock if the physical connection transfers both data and clock (like S/PDIF, AES/EBU, or ADAT inputs). If there is no input channel associated with the clock source (like Word Clock, or internal oscillator), both associatedChannel and associatedGroup should be set to -1.

isCurrentSource

boolean isCurrentSource()
The isCurrentClockSource-Attribute of the ASIOClockSource struct

Returns:
true if this is the current clock source, false otherwise.

name

String name()
The name of this clock source (for user selection)

Returns:
The name of this clock source (for user selection)

createClass

protected long createClass()
Description copied from class: NativeClass
Create a new native instance and return its address

Specified by:
createClass in class NativeClass
Returns:
The address of the new created native instance

cleanUp

protected void cleanUp()
Description copied from class: NativeClass
Delete the corresponding native instance to this class

Specified by:
cleanUp in class NativeClass

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object