|
| int | cdrom_set_sector_size (int size) |
| | Set the sector size for read sectors.
|
| |
| int | cdrom_exec_cmd (cd_cmd_code_t cmd, void *param) |
| | Execute a CD-ROM command.
|
| |
| int | cdrom_exec_cmd_timed (cd_cmd_code_t cmd, void *param, uint32_t timeout) |
| | Execute a CD-ROM command with timeout.
|
| |
| int | cdrom_abort_cmd (uint32_t timeout, bool abort_dma) |
| | Abort a CD-ROM command with timeout.
|
| |
| int | cdrom_get_status (int *status, int *disc_type) |
| | Get the status of the GD-ROM drive.
|
| |
| int | cdrom_change_datatype (cd_read_sec_part_t sector_part, int track_type, int sector_size) |
| | Change the datatype of disc.
|
| |
| int | cdrom_reinit (void) |
| | Re-initialize the GD-ROM drive.
|
| |
| int | cdrom_reinit_ex (cd_read_sec_part_t sector_part, int cdxa, int sector_size) |
| | Re-initialize the GD-ROM drive with custom parameters.
|
| |
| int | cdrom_read_toc (cd_toc_t *toc_buffer, bool high_density) |
| | Read the table of contents from the disc.
|
| |
| int | cdrom_read_sectors_ex (void *buffer, uint32_t sector, size_t cnt, bool dma) |
| | Read one or more sector from a CD-ROM.
|
| |
| int | cdrom_read_sectors (void *buffer, uint32_t sector, size_t cnt) |
| | Read one or more sector from a CD-ROM in PIO mode.
|
| |
| int | cdrom_stream_start (int sector, int cnt, bool dma) |
| | Start streaming from a CD-ROM.
|
| |
| int | cdrom_stream_stop (bool abort_dma) |
| | Stop streaming from a CD-ROM.
|
| |
| int | cdrom_stream_request (void *buffer, size_t size, bool block) |
| | Request stream transfer.
|
| |
| int | cdrom_stream_progress (size_t *size) |
| | Check requested stream transfer.
|
| |
| void | cdrom_stream_set_callback (cdrom_stream_callback_t callback, void *param) |
| | Setting up a callback for transfers.
|
| |
| int | cdrom_get_subcode (void *buffer, size_t buflen, cd_sub_type_t which) |
| | Read subcode data from the most recently read sectors.
|
| |
| uint32_t | cdrom_locate_data_track (cd_toc_t *toc) |
| | Locate the sector of the data track.
|
| |
| int | cdrom_cdda_play (uint32_t start, uint32_t end, uint32_t loops, int mode) |
| | Play CDDA audio tracks or sectors.
|
| |
| int | cdrom_cdda_pause (void) |
| | Pause CDDA audio playback.
|
| |
| int | cdrom_cdda_resume (void) |
| | Resume CDDA audio playback after a pause.
|
| |
| int | cdrom_spin_down (void) |
| | Spin down the CD.
|
| |
| void | cdrom_init (void) |
| | Initialize the GD-ROM for reading CDs.
|
| |
| void | cdrom_shutdown (void) |
| | Shutdown the CD reading system.
|
| |
CD access to the GD-ROM drive.
This file contains the interface to the Dreamcast's GD-ROM drive. It is simply called cdrom.h and cdrom.c because, by design, you cannot directly use this code to read the high-density area of GD-ROMs. This is the way it always has been, and always will be.
The way things are set up, as long as you're using fs_iso9660 to access the CD, it will automatically detect and react to disc changes for you.
This file only facilitates reading raw sectors and doing other fairly low- level things with CDs. If you're looking for higher-level stuff, like normal file reading, consult with the stuff for the fs and for fs_iso9660.
If you're looking for even lower level things with CDs, see the gdrom related syscalls or g1ata.
- Author
- Megan Potter
-
Donald Haase
-
Ruslan Rostovtsev
- See also
- kos/fs.h
-
dc/fs_iso9660.h
-
dc/syscalls.h
-
dc/g1ata.h