org.tritonus.lowlevel.cdda
Interface CddaMidLevel

All Known Implementing Classes:
CdparanoiaMidLevel, CookedIoctlMidLevel

public interface CddaMidLevel

Mid-level interface definition for reading CDs


Field Summary
static int FRAME_SIZE
          Size of a cdda frame in bytes.
 
Method Summary
 String getDefaultDevice()
          Gives the default drive.
 Iterator getDevices()
          Gives the available CDROM devices.
 InputStream getTocAsXml(String strDevice)
           
 AudioInputStream getTrack(String strDevice, int nTrack)
           
 

Field Detail

FRAME_SIZE

static final int FRAME_SIZE
Size of a cdda frame in bytes.

See Also:
Constant Field Values
Method Detail

getDevices

Iterator getDevices()
Gives the available CDROM devices. The returned iteration should contain a list of Strings. Each String represents an internal name of a CDROM drive. This String should be considered implementation-specific. It may contain no useful information (however, most time it does). Currently, it is required that the String starts with exactely one '/'. Should only those drives returned that have an audio CD in?


getDefaultDevice

String getDefaultDevice()
Gives the default drive. A String should be returned that represents the default drive. The String has to follow the conventions described in getDevices(). The String returned by this method should also appear as one of the elements in the iteration returned by getDevices().


getTocAsXml

InputStream getTocAsXml(String strDevice)
                        throws IOException
Throws:
IOException

getTrack

AudioInputStream getTrack(String strDevice,
                          int nTrack)
                          throws IOException
Throws:
IOException