#include <default-audiocd.h>
Public Member Functions | |
| virtual bool | open () |
| virtual void | close () |
| virtual bool | play (int track, int numLoops, int startFrame, int duration, bool onlyEmulate=false, Audio::Mixer::SoundType soundType=Audio::Mixer::kMusicSoundType) |
| 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 | stop () |
| virtual bool | isPlaying () const |
| 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 () |
Protected Member Functions | |
| bool | openRealCD () |
| virtual bool | openCD (int drive) |
| virtual bool | openCD (const Common::Path &drive) |
Protected Attributes | |
| Audio::SoundHandle | _handle |
| bool | _emulating |
| Status | _cd |
| Audio::Mixer * | _mixer |
The default audio cd manager. Implements emulation of audio cd playback.
|
virtual |
Initialize the specified CD drive for audio playback.
Implements AudioCDManager.
Reimplemented in SdlAudioCDManager.
|
virtual |
|
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 Implements AudioCDManager.
Reimplemented in DCCDManager, and SdlAudioCDManager.
|
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 Implements AudioCDManager.
|
virtual |
Stop audio playback.
Implements AudioCDManager.
Reimplemented in DCCDManager, and SdlAudioCDManager.
|
virtual |
Get if audio is being played.
Implements AudioCDManager.
Reimplemented in DCCDManager, and SdlAudioCDManager.
|
virtual |
Set the audio volume
Implements AudioCDManager.
|
virtual |
Set the speakers balance
Implements AudioCDManager.
|
virtual |
|
virtual |
|
virtual |
Checks whether the extracted audio cd tracks exists as files in the search paths.
Implements AudioCDManager.
|
inlinevirtual |
Checks if game data are read from the same CD drive which should also play game CD audio.
Implements AudioCDManager.
|
protected |
Open a CD using the cdrom config variable
|
inlineprotectedvirtual |
Open a CD using the specified drive index
| drive | The index of the drive |
Reimplemented in SdlAudioCDManager.
|
inlineprotectedvirtual |
Open a CD from a specific drive
| drive | The name of the drive/path |