org.tritonus.lowlevel.cdda.cdparanoia
Class Cdparanoia

java.lang.Object
  extended by org.tritonus.lowlevel.cdda.cdparanoia.Cdparanoia

public class Cdparanoia
extends java.lang.Object

Reading audio CDs using libcdparanoia.


Constructor Summary
Cdparanoia(java.lang.String strDevice)
           
 
Method Summary
 void close()
          Closes the device.
 int prepareTrack(int nTrack)
           
 int readNextFrame(int nCount, byte[] abData)
          Reads one or more raw frames from the CD.
 int readTOC(int[] anValues, int[] anStartFrame, int[] anLength, int[] anType, boolean[] abAudio, boolean[] abCopy, boolean[] abPre, int[] anChannels)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cdparanoia

public Cdparanoia(java.lang.String strDevice)
Method Detail

close

public void close()
Closes the device. Calls cdda_close().


readTOC

public int readTOC(int[] anValues,
                   int[] anStartFrame,
                   int[] anLength,
                   int[] anType,
                   boolean[] abAudio,
                   boolean[] abCopy,
                   boolean[] abPre,
                   int[] anChannels)

prepareTrack

public int prepareTrack(int nTrack)

readNextFrame

public int readNextFrame(int nCount,
                         byte[] abData)
Reads one or more raw frames from the CD. This call reads nCount frames from the track that has been set by prepareTrack(). abData has to be big enough to hold the amount of data requested (2352 * nCount bytes).