#include <audiocd.h>
Classes | |
struct | Status |
Public Member Functions | |
virtual bool | open ()=0 |
virtual void | close ()=0 |
virtual bool | play (int track, int numLoops, int startFrame, int duration, bool onlyEmulate=false, Audio::Mixer::SoundType soundType=Audio::Mixer::kMusicSoundType)=0 |
virtual bool | playAbsolute (int startFrame, int numLoops, int duration, bool onlyEmulate=false, Audio::Mixer::SoundType soundType=Audio::Mixer::kMusicSoundType, const char *cuesheet="disc.cue")=0 |
virtual bool | isPlaying () const =0 |
virtual void | setVolume (byte volume)=0 |
virtual void | setBalance (int8 balance)=0 |
virtual void | stop ()=0 |
virtual void | update ()=0 |
virtual Status | getStatus () const =0 |
virtual bool | existExtractedCDAudioFiles (uint track)=0 |
virtual bool | isDataAndCDAudioReadFromSameCD ()=0 |
Abstract Audio CD manager class. Subclasses implement the actual functionality.
|
pure virtual |
Initialize the specified CD drive for audio playback.
Implemented in DefaultAudioCDManager, and SdlAudioCDManager.
|
pure virtual |
Close the currently open CD drive
Implemented in DefaultAudioCDManager, and SdlAudioCDManager.
|
pure virtual |
Start audio CD playback
track | the track to play. |
numLoops | how often playback should be repeated (<=0 means infinitely often). |
startFrame | the frame at which playback should start (75 frames = 1 second). |
duration | the number of frames to play. |
onlyEmulate | determines if the track should be emulated only |
soundType | What sound type to play as. By default, it's as music |
onlyEmulate
parameter is deprecated. true
if the track started playing, false
otherwise Implemented in DCCDManager, DefaultAudioCDManager, and SdlAudioCDManager.
|
pure virtual |
Start audio CD playback at a specific absolute timestamp
startFrame | the frame at which playback should start (75 frames = 1 second). |
numLoops | how often playback should be repeated (<=0 means infinitely often). |
duration | the number of frames to play. |
onlyEmulate | determines if the track should be emulated only |
soundType | What sound type to play as. By default, it's as music |
cuesheet | The name of the cuesheet to use for timing data |
onlyEmulate
parameter is deprecated. true
if the track started playing, false
otherwise Implemented in DefaultAudioCDManager.
|
pure virtual |
Get if audio is being played.
Implemented in DCCDManager, DefaultAudioCDManager, and SdlAudioCDManager.
|
pure virtual |
Set the audio volume
Implemented in DefaultAudioCDManager.
|
pure virtual |
Set the speakers balance
Implemented in DefaultAudioCDManager.
|
pure virtual |
Stop audio playback.
Implemented in DCCDManager, DefaultAudioCDManager, and SdlAudioCDManager.
|
pure virtual |
Update audio status.
Implemented in DefaultAudioCDManager, and SdlAudioCDManager.
|
pure virtual |
Get the playback status.
Implemented in DefaultAudioCDManager.
|
pure virtual |
Checks whether the extracted audio cd tracks exists as files in the search paths.
Implemented in DefaultAudioCDManager.
|
pure virtual |
Checks if game data are read from the same CD drive which should also play game CD audio.
Implemented in DefaultAudioCDManager.