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 javax.sound.sampled.EnumControl
This class is an implementation of JavaSound Controls to let the user
select the ASIOClockSource
- Author:
- Manu Robledo
|
Method Summary |
void |
setValue(java.lang.Object value)
Set the clock source of the DataLine to the given value |
java.lang.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 |
dataLine
ASIODataLine dataLine
- The ASIODataLine to which this Control belongs
sources
ASIOClockSource[] sources
- The possible 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
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
setValue
public void setValue(java.lang.Object value)
- Set the clock source of the DataLine to the given value
- Overrides:
setValue in class javax.sound.sampled.EnumControl
- See Also:
EnumControl.setValue(java.lang.Object)
toString
public java.lang.String toString()
- Overrides:
toString in class javax.sound.sampled.EnumControl
- See Also:
EnumControl.toString()