com.groovemanager.spi.asio
Class ASIOClockSourceControl

java.lang.Object
  extended by javax.sound.sampled.Control
      extended by javax.sound.sampled.EnumControl
          extended by com.groovemanager.spi.asio.ASIOClockSourceControl

public class ASIOClockSourceControl
extends EnumControl

This class is an implementation of JavaSound Controls to let the user select the ASIOClockSource

Author:
Manu Robledo

Nested Class Summary
protected static class ASIOClockSourceControl.Type
           
 
Field Summary
(package private)  ASIODataLine dataLine
          The ASIODataLine to which this Control belongs
(package private)  ASIOClockSource[] sources
          The possible clock sources
 
Constructor Summary
ASIOClockSourceControl(ASIODataLine line)
          Constructs a new ASIOClockSourceControl for the given ASIODataLine with "internal" as the only selectable option.
ASIOClockSourceControl(ASIODataLine line, ASIOClockSource[] sources)
          Constructs a new ASIOClockSourceControl for the given ASIODataLine with the given sources as selectable options
 
Method Summary
 void setValue(Object value)
          Set the clock source of the DataLine to the given value
 String toString()
           
 
Methods inherited from class javax.sound.sampled.EnumControl
getValue, getValues
 
Methods inherited from class javax.sound.sampled.Control
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sources

ASIOClockSource[] sources
The possible clock sources


dataLine

ASIODataLine dataLine
The ASIODataLine to which this Control belongs

Constructor Detail

ASIOClockSourceControl

ASIOClockSourceControl(ASIODataLine line,
                       ASIOClockSource[] sources)
Constructs a new ASIOClockSourceControl for the given ASIODataLine with the given sources as selectable options

Parameters:
line - The ASIODataLine instance to which this Control belongs
sources - The selectable clock sources

ASIOClockSourceControl

ASIOClockSourceControl(ASIODataLine line)
Constructs a new ASIOClockSourceControl for the given ASIODataLine with "internal" as the only selectable option. Will be used if the query to ASIOGetClockSources fails for some reason.

Parameters:
line - The ASIODataLine instance to which this Control belongs
Method Detail

setValue

public void setValue(Object value)
Set the clock source of the DataLine to the given value

Overrides:
setValue in class EnumControl
See Also:
EnumControl.setValue(java.lang.Object)

toString

public String toString()
Overrides:
toString in class EnumControl
See Also:
EnumControl.toString()