com.groovemanager.spi.asio
Class ASIOClockSourceControl
java.lang.Object
javax.sound.sampled.Control
javax.sound.sampled.EnumControl
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
sources
ASIOClockSource[] sources
- The possible clock sources
dataLine
ASIODataLine dataLine
- The ASIODataLine to which this Control belongs
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 belongssources
- 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
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()