DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions
CDROM_Interface_SDL Class Reference

CD-ROM interface to SDL 1.x CD-ROM support. More...

#include <cdrom.h>

Inheritance diagram for CDROM_Interface_SDL:
CDROM_Interface

List of all members.

Public Member Functions

virtual bool SetDevice (char *path, int forceCD)
 Set the device associated with this interface, if supported by emulation.
virtual bool GetUPC (unsigned char &attr, char *upc)
 Get UPC string from the CD-ROM.
virtual bool GetAudioTracks (int &stTrack, int &end, TMSF &leadOut)
 Retrieve start and end tracks and lead out position.
virtual bool GetAudioTrackInfo (int track, TMSF &start, unsigned char &attr)
 Retrieve start and attributes for a specific track.
virtual bool GetAudioSub (unsigned char &attr, unsigned char &track, unsigned char &index, TMSF &relPos, TMSF &absPos)
 Get subchannel data of the sectors at the current position, and retrieve current position.
virtual bool GetAudioStatus (bool &playing, bool &pause)
 Get audio playback status.
virtual bool GetMediaTrayStatus (bool &mediaPresent, bool &mediaChanged, bool &trayOpen)
 Get media tray status.
virtual bool PlayAudioSector (unsigned long start, unsigned long len)
 Initiate audio playback starting at sector and for how many.
virtual bool PauseAudio (bool resume)
 Pause audio playback.
virtual bool StopAudio (void)
 Stop audio playback.
virtual void ChannelControl (TCtrl ctrl)
 Set channel control data (TODO: clarify)
virtual bool ReadSectors (PhysPt, bool, unsigned long, unsigned long)
 Read sector data into guest memory.
virtual bool ReadSectorsHost (void *buffer, bool raw, unsigned long sector, unsigned long num)
 Read sector data into host memory (for IDE emulation)
virtual bool LoadUnloadMedia (bool unload)
 Load (close/spin up) or unload (eject/spin down) media.

Detailed Description

CD-ROM interface to SDL 1.x CD-ROM support.

This connects CD-ROM emulation to the CD-ROM functions provided by SDL 1.x

Definition at line 183 of file cdrom.h.


The documentation for this class was generated from the following files: