org.tritonus.lowlevel.cdda.cooked_ioctl
Class CookedIoctl
java.lang.Object
org.tritonus.lowlevel.cdda.cooked_ioctl.CookedIoctl
public class CookedIoctl
- extends java.lang.Object
Reading audio CDs using the 'cooked ioctl' interface.
|
Constructor Summary |
CookedIoctl(java.lang.String strDevice)
|
|
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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CookedIoctl
public CookedIoctl(java.lang.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).