|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groovemanager.spi.asio.NativeClass com.groovemanager.spi.asio.ASIOSampleRate
final class ASIOSampleRate
This is a wrapper class for the native ASIOSampleRate struct
Constructor Summary | |
---|---|
ASIOSampleRate()
Constructs a new ASIOSampleRate and creates a corresponding native instance |
|
ASIOSampleRate(double value)
Constructs a new ASIOSampleRate and creates a corresponding native instance with the given value |
|
ASIOSampleRate(long pointer)
Constructs a new ASIOSampleRate that corresponds to an existing native instance, which is specified by the pointer |
Method Summary | |
---|---|
protected void |
cleanUp()
Delete the corresponding native instance to this class |
private static void |
convertBack(ByteBuffer buffer,
double value)
Convert from double to a native representation |
private static double |
convertToDouble(ByteBuffer buffer)
Convert from an 8 byte DirectByteBuffer to a double value |
protected long |
createClass()
Create a new native instance and return its address |
(package private) double |
doubleValue()
Get the value of this SampleRate |
(package private) void |
setValue(double d)
Set the value of this sample rate |
Methods inherited from class com.groovemanager.spi.asio.NativeClass |
---|
finalize, getPointer |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ASIOSampleRate()
public ASIOSampleRate(long pointer)
pointer
- The native address of the native
ASIOSampleRate instancepublic ASIOSampleRate(double value)
Method Detail |
---|
protected long createClass()
NativeClass
createClass
in class NativeClass
protected void cleanUp()
NativeClass
cleanUp
in class NativeClass
double doubleValue()
void setValue(double d)
d
- The new valueprivate static double convertToDouble(ByteBuffer buffer)
buffer
- The DirectByteBuffer created in native code
private static void convertBack(ByteBuffer buffer, double value)
buffer
- The buffer to copy the value tovalue
- The double value to be converted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |