com.groovemanager.spi.asio
Class ASIOChannelInfo

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

final class ASIOChannelInfo
extends NativeClass

This is a wrapper class for the native ASIOChannelInfo struct

Author:
Manu Robledo

Constructor Summary
ASIOChannelInfo()
          Constructs a new ASIOChannelInfo and creates a corresponding native instance
ASIOChannelInfo(long pointer)
          Constructs a new ASIOChannelInfo that corresponds to an existing native instance, which is specified by the pointer
 
Method Summary
(package private)  int channel()
          The index of the channel that this info is about.
(package private)  int channelGroup()
          The channelGroup-Attribute of the ASIOChannelinfo-struct
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 isActive()
          The isActive-Attribute of the ASIOChannelInfo-struct
(package private)  boolean isInput()
          Tell whether this info object describes an input or output channel
(package private)  String name()
          The type-Attribute of the ASIOChannelInfo-struct
(package private)  void setChannel(int channel)
          Set the channel-Attribute
(package private)  void setIsInput(boolean isInput)
          Set the isInput-Attribute
 String toString()
           
(package private)  int type()
          The type-Attribute of the ASIOChannelInfo-struct
 
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

ASIOChannelInfo

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


ASIOChannelInfo

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

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

channel

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

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

isInput

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

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

isActive

boolean isActive()
The isActive-Attribute of the ASIOChannelInfo-struct

Returns:
ASIO says: true if the channel is active as it was installed by ASIOCreateBuffers(), false otherwise

channelGroup

int channelGroup()
The channelGroup-Attribute of the ASIOChannelinfo-struct

Returns:
ASIO says: the channel group that this channel belongs to. For drivers which support different types of channels, like analog, S/PDIF, AES/EBU, ADAT etc. interfaces, there should be a reasonable grouping of these types. Groups are always independent from a channel index, that is a channel index always counts from 0 to numInputs/numOutputs regardless of the group it may belong to. There will always be at least one group (group 0).

type

int type()
The type-Attribute of the ASIOChannelInfo-struct

Returns:
The ASIOSympleType constant describing the AudioFormat of this channel.

name

String name()
The type-Attribute of the ASIOChannelInfo-struct

Returns:
A name describing the type of channel in question. Used to allow for user selection and enabling of specific channels.

setChannel

void setChannel(int channel)
Set the channel-Attribute

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

setIsInput

void setIsInput(boolean isInput)
Set the isInput-Attribute

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

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