com.groovemanager.spi.rex
Class REXInfo

java.lang.Object
  extended by com.groovemanager.spi.rex.NativeClass
      extended by com.groovemanager.spi.rex.REXInfo

final class REXInfo
extends NativeClass

This class is a wrapper class for the native REXInfo struct

Author:
Manu Robledo

Field Summary
(package private)  REXHandle handle
           
 
Constructor Summary
REXInfo(long pointer, REXHandle handle)
          Create a new REXInfo that is connected to an already existing native instance which is defined by the given pointer.
REXInfo(REXHandle handle)
          Create a new REXInfo instance.
 
Method Summary
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 fBitDepth()
          The bit depth in which this file was stored.
(package private)  int fChannels()
          The number of channels of this file (1 or 2)
(package private)  int fPPQLength()
          The length of this file in Pulses Per Quarter (PPQ)
(package private)  int fSampleRate()
          The sample rate of this file
(package private)  int fSliceCount()
          The number of slices contained inside this file
(package private)  int fTempo()
          The tempo of this file in bpm multiplied by 1000
(package private)  int fTimeSigDenom()
          The denominator of this file´s time signature
(package private)  int fTimeSigNom()
          The nominator of this file´s time signature
(package private)  REXAudioFormat getAudioFormat()
          Get the information of this object packed in an AudioFormat object
(package private)  int getFrameLength()
          Calculate the frame length of this file out of the given information
 
Methods inherited from class com.groovemanager.spi.rex.NativeClass
finalize, getPointer
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handle

final REXHandle handle
Constructor Detail

REXInfo

REXInfo(long pointer,
        REXHandle handle)
Create a new REXInfo that is connected to an already existing native instance which is defined by the given pointer.

Parameters:
pointer - The address of the native REXInfo instance
handle - The REXHandle to which this info object bleongs.

REXInfo

REXInfo(REXHandle handle)
Create a new REXInfo instance. A new native instance will also be created.

Parameters:
handle - The REXHandle to which this info object bleongs.
Method Detail

cleanUp

protected void cleanUp()
Description copied from class: NativeClass
Delete the corresponding native instance to this class

Specified by:
cleanUp in class NativeClass

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

fBitDepth

int fBitDepth()
The bit depth in which this file was stored. Has nothing to do with the constant 32 bit used for output rendering

Returns:
The bit depth in which this file was stored

fChannels

int fChannels()
The number of channels of this file (1 or 2)

Returns:
The number of channels of this file (1 or 2)

fPPQLength

int fPPQLength()
The length of this file in Pulses Per Quarter (PPQ)

Returns:
The length of this file in Pulses Per Quarter (PPQ)

fSampleRate

int fSampleRate()
The sample rate of this file

Returns:
The sample rate of this file

fSliceCount

int fSliceCount()
The number of slices contained inside this file

Returns:
The number of slices contained inside this file

fTempo

int fTempo()
The tempo of this file in bpm multiplied by 1000

Returns:
The tempo of this file in bpm multiplied by 1000

fTimeSigDenom

int fTimeSigDenom()
The denominator of this file´s time signature

Returns:
The denominator of this file´s time signature

fTimeSigNom

int fTimeSigNom()
The nominator of this file´s time signature

Returns:
The nominator of this file´s time signature

getAudioFormat

REXAudioFormat getAudioFormat()
Get the information of this object packed in an AudioFormat object

Returns:
An AudioFormat object describing this file´s audio format.

getFrameLength

int getFrameLength()
Calculate the frame length of this file out of the given information

Returns:
The length of this file in sample frames