| 123456789101112131415161718192021222324252627282930 |
- // Advanced CD-ROM drive emulation.
- // Adds a few capabilities on top of the SCSI2SD CD-ROM emulation:
- //
- // - bin/cue support for support of multiple tracks
- // - on the fly image switching
- #pragma once
- #include "BlueSCSI_disk.h"
- // Called by scsi.c from SCSI2SD
- extern "C" int scsiCDRomCommand(void);
- // Reinsert ejected CD-ROM and restart from first image
- void cdromReinsertFirstImage(image_config_t &img);
- // Switch to next CD-ROM image if multiple have been configured
- bool cdromSwitchNextImage(image_config_t &img);
- // Check if the currently loaded cue sheet for the image can be parsed
- // and print warnings about unsupported track types
- bool cdromValidateCueSheet(image_config_t &img);
- // Audio playback status
- enum CDROMAudioPlaybackStatus {
- CDROMAudio_Stopped = 0,
- CDROMAudio_Playing = 1,
- CDROMAudio_Paused = 2
- };
- void cdromGetAudioPlaybackStatus(CDROMAudioPlaybackStatus *status, uint32_t *current_lba);
|