#include <sdl-audiocd.h>
Public Member Functions | |
| bool | open () override |
| void | close () override |
| bool | play (int track, int numLoops, int startFrame, int duration, bool onlyEmulate, Audio::Mixer::SoundType soundType) override |
| void | stop () override |
| bool | isPlaying () const override |
| void | update () override |
Public Member Functions inherited from DefaultAudioCDManager | |
| 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 Status | getStatus () const |
| virtual bool | existExtractedCDAudioFiles (uint track) |
| virtual bool | isDataAndCDAudioReadFromSameCD () |
Protected Member Functions | |
| bool | openCD (int drive) override |
Protected Member Functions inherited from DefaultAudioCDManager | |
| bool | openRealCD () |
| virtual bool | openCD (const Common::Path &drive) |
Protected Attributes | |
| SDL_CD * | _cdrom |
| int | _cdTrack |
| int | _cdNumLoops |
| int | _cdStartFrame |
| int | _cdDuration |
| uint32 | _cdEndTime |
| uint32 | _cdStopTime |
Protected Attributes inherited from DefaultAudioCDManager | |
| Audio::SoundHandle | _handle |
| bool | _emulating |
| Status | _cd |
| Audio::Mixer * | _mixer |
The SDL audio cd manager. Implements real audio cd playback.
|
overridevirtual |
Initialize the specified CD drive for audio playback.
Reimplemented from DefaultAudioCDManager.
|
overridevirtual |
Close the currently open CD drive
Reimplemented from DefaultAudioCDManager.
|
overridevirtual |
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 Reimplemented from DefaultAudioCDManager.
|
overridevirtual |
Stop audio playback.
Reimplemented from DefaultAudioCDManager.
|
overridevirtual |
Get if audio is being played.
Reimplemented from DefaultAudioCDManager.
|
overridevirtual |
Update audio status.
Reimplemented from DefaultAudioCDManager.
|
overrideprotectedvirtual |
Open a CD using the specified drive index
| drive | The index of the drive |
Reimplemented from DefaultAudioCDManager.