ScummVM API documentation
DCCDManager Class Reference
Inheritance diagram for DCCDManager:
DefaultAudioCDManager AudioCDManager Common::NonCopyable

Public Member Functions

bool isPlaying () const override
 
bool play (int track, int numLoops, int startFrame, int duration, bool onlyEmulate=false, Audio::Mixer::SoundType soundType=Audio::Mixer::kMusicSoundType) override
 
void stop () override
 
- Public Member Functions inherited from DefaultAudioCDManager
virtual bool open ()
 
virtual void close ()
 
virtual bool playAbsolute (int startFrame, int numLoops, int duration, bool onlyEmulate=false, Audio::Mixer::SoundType soundType=Audio::Mixer::kMusicSoundType, const char *cuesheet="disc.cue")
 
virtual void setVolume (byte volume)
 
virtual void setBalance (int8 balance)
 
virtual void update ()
 
virtual Status getStatus () const
 
virtual bool existExtractedCDAudioFiles (uint track)
 
virtual bool isDataAndCDAudioReadFromSameCD ()
 

Additional Inherited Members

- Protected Member Functions inherited from DefaultAudioCDManager
bool openRealCD ()
 
virtual bool openCD (int drive)
 
virtual bool openCD (const Common::Path &drive)
 
- Protected Attributes inherited from DefaultAudioCDManager
Audio::SoundHandle _handle
 
bool _emulating
 
Status _cd
 
Audio::Mixer_mixer
 

Member Function Documentation

◆ isPlaying()

bool DCCDManager::isPlaying ( ) const
overridevirtual

Get if audio is being played.

Returns
true if CD audio is playing

Reimplemented from DefaultAudioCDManager.

◆ play()

bool DCCDManager::play ( int  track,
int  numLoops,
int  startFrame,
int  duration,
bool  onlyEmulate = false,
Audio::Mixer::SoundType  soundType = Audio::Mixer::kMusicSoundType 
)
overridevirtual

Start audio CD playback

Parameters
trackthe track to play.
numLoopshow often playback should be repeated (<=0 means infinitely often).
startFramethe frame at which playback should start (75 frames = 1 second).
durationthe number of frames to play.
onlyEmulatedetermines if the track should be emulated only
soundTypeWhat sound type to play as. By default, it's as music
Note
The onlyEmulate parameter is deprecated.
Returns
true if the track started playing, false otherwise

Reimplemented from DefaultAudioCDManager.

◆ stop()

void DCCDManager::stop ( )
overridevirtual

Stop audio playback.

Reimplemented from DefaultAudioCDManager.


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