com.groovemanager.spi.asio
Class ASIODriverInfo

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

final class ASIODriverInfo
extends NativeClass

This is a wrapper class for the native ASOPDriverInfo struct

Author:
Manu Robledo

Constructor Summary
ASIODriverInfo()
          Constructs a new ASIODriverInfo and creates a corresponding native instance
ASIODriverInfo(long pointer)
          Constructs a new ASIODriverInfo that corresponds to an existing native instance, which is specified by the pointer
 
Method Summary
(package private)  int asioVersion()
          The asio version
protected  void cleanUp()
          Delete the corresponding native instance to this class
protected  long createClass()
          Create a new native instance and return its address
(package private)  int driverVersion()
          The driver version
(package private)  String errorMessage()
          Should contain a user message describing the type of error that occured during ASIOInit() ifa ny
(package private)  String name()
          The driverīs name.
private  void setAsioVersion(int v)
          Set the asio version
private  void setSysRef(long l)
          Set the sysRef.
(package private)  long sysRef()
          The sysRef.
 String toString()
           
 
Methods inherited from class com.groovemanager.spi.asio.NativeClass
finalize, getPointer
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASIODriverInfo

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


ASIODriverInfo

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

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

setAsioVersion

private void setAsioVersion(int v)
Set the asio version

Parameters:
v - the asio version. sould always be 2

setSysRef

private void setSysRef(long l)
Set the sysRef. On windows systems this should be the applicationīs main window handle. On Mac, 0 is used. 0 works on windwos too.

Parameters:
l - The main application window handle (on windows) or 0.

asioVersion

int asioVersion()
The asio version

Returns:
The asio version. Should always be 2.

driverVersion

int driverVersion()
The driver version

Returns:
The driver version (format is driver specific)

name

String name()
The driverīs name.

Returns:
The driverīs name

errorMessage

String errorMessage()
Should contain a user message describing the type of error that occured during ASIOInit() ifa ny

Returns:
The user message of an error that occured during ASIOInit() if any

sysRef

long sysRef()
The sysRef. On windows systems this should be the applicationīs main window handle. On Mac, 0 is used. 0 works on windwos too.

Returns:
The main application window handle (on windows) or 0.

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