com.groovemanager.spi.asio
Class ASIOBufferInfo

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

final class ASIOBufferInfo
extends NativeClass

This is a wrapper class for the native ASIOBufferInfo struct

Author:
Manu Robledo

Constructor Summary
ASIOBufferInfo()
          Constructs a new ASIOBufferInfo and creates a corresponding native instance
ASIOBufferInfo(long pointer)
          Constructs a new ASIOBufferInfo that corresponds to an existing native instance, which is specified by the pointer
 
Method Summary
(package private)  long[] buffers()
          The native addresses of the two ASIO buffer halfes
(package private)  int channelNum()
          The index of the channel that this info is about.
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)  boolean isInput()
          Tell whether this info object describes an input or output buffer
(package private)  void setChannelNum(int num)
          Set the channelNum-Attribute
(package private)  void setIsInput(boolean isInput)
          Set the isInput-Attribute
 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

ASIOBufferInfo

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


ASIOBufferInfo

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

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

isInput

boolean isInput()
Tell whether this info object describes an input or output buffer

Returns:
true if it descibes an input buffer, false otherwise

setIsInput

void setIsInput(boolean isInput)
Set the isInput-Attribute

Parameters:
isInput - true if this info should descibe an input buffer, false otherwise

channelNum

int channelNum()
The index of the channel that this info is about.

Returns:
The index of the channel that this info is about starting from 0.

setChannelNum

void setChannelNum(int num)
Set the channelNum-Attribute

Parameters:
num - The index of the channel this info should describe starting from 0.

buffers

long[] buffers()
The native addresses of the two ASIO buffer halfes

Returns:
An Array of size 2 containing the native addresses of the two ASIO buffer halfes

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