org.tritonus.lowlevel.cdda.cooked_ioctl
Class CookedIoctl
java.lang.Object
org.tritonus.lowlevel.cdda.cooked_ioctl.CookedIoctl
- public class CookedIoctl
- extends Object
Reading audio CDs using the 'cooked ioctl' interface.
Method Summary |
void |
close()
Closes the device. |
int |
readFrame(int nFrame,
int nCount,
byte[] abData)
Reads one or more raw frames from the CD. |
int |
readTOC(int[] anValues,
int[] anStartFrame,
int[] anLength,
int[] anType,
boolean[] abCopy,
boolean[] abPre,
int[] anChannels)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CookedIoctl
public CookedIoctl(String strDevice)
close
public void close()
- Closes the device.
readTOC
public int readTOC(int[] anValues,
int[] anStartFrame,
int[] anLength,
int[] anType,
boolean[] abCopy,
boolean[] abPre,
int[] anChannels)
readFrame
public int readFrame(int nFrame,
int nCount,
byte[] abData)
- Reads one or more raw frames from the CD.
This call reads
nCount
frames starting at
lba position nFrame
.
abData
has to be big enough to hold the
amount of data requested (2352 * nCount
bytes).