ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

The SDL audio cd manager. More...

#include <sdl-audiocd.h>

Inheritance diagram for SdlAudioCDManager:
Collaboration diagram for SdlAudioCDManager:

List of all members.

Public Member Functions

 SdlAudioCDManager ()
virtual ~SdlAudioCDManager ()
virtual bool open ()
 Initialize the specified CD drive for audio playback.
virtual void close ()
 Close the currently open CD drive.
virtual bool play (int track, int numLoops, int startFrame, int duration, bool onlyEmulate=false)
virtual void stop ()
 Stop audio playback.
virtual bool isPlaying () const
 Get if audio is being played.
virtual void update ()
 Update audio status.

Protected Member Functions

virtual bool openCD (int drive)
 Open a CD using the specified drive index.

Protected Attributes

SDL_CD * _cdrom
int _cdTrack
int _cdNumLoops
int _cdStartFrame
int _cdDuration
uint32 _cdEndTime
uint32 _cdStopTime

Detailed Description

The SDL audio cd manager.

Implements real audio cd playback.

Definition at line 35 of file sdl-audiocd.h.


Constructor & Destructor Documentation

SdlAudioCDManager::SdlAudioCDManager (  ) 

Definition at line 33 of file sdl-audiocd.cpp.

SdlAudioCDManager::~SdlAudioCDManager (  )  [virtual]

Definition at line 45 of file sdl-audiocd.cpp.


Member Function Documentation

void SdlAudioCDManager::close (  )  [virtual]

Close the currently open CD drive.

Reimplemented from DefaultAudioCDManager.

Definition at line 76 of file sdl-audiocd.cpp.

bool SdlAudioCDManager::isPlaying (  )  const [virtual]

Get if audio is being played.

Returns:
true if CD audio is playing

Reimplemented from DefaultAudioCDManager.

Definition at line 126 of file sdl-audiocd.cpp.

bool SdlAudioCDManager::open (  )  [virtual]

Initialize the specified CD drive for audio playback.

Returns:
true if the CD drive was inited successfully

Reimplemented from DefaultAudioCDManager.

Definition at line 49 of file sdl-audiocd.cpp.

bool SdlAudioCDManager::openCD ( int  drive  )  [protected, virtual]

Open a CD using the specified drive index.

Parameters:
drive The index of the drive
Note:
The index is implementation-defined, but 0 is always the best choice

Reimplemented from DefaultAudioCDManager.

Definition at line 58 of file sdl-audiocd.cpp.

bool SdlAudioCDManager::play ( int  track,
int  numLoops,
int  startFrame,
int  duration,
bool  onlyEmulate = false 
) [virtual]

Definition at line 94 of file sdl-audiocd.cpp.

void SdlAudioCDManager::stop (  )  [virtual]

Stop audio playback.

Reimplemented from DefaultAudioCDManager.

Definition at line 86 of file sdl-audiocd.cpp.

void SdlAudioCDManager::update (  )  [virtual]

Update audio status.

Reimplemented from DefaultAudioCDManager.

Definition at line 136 of file sdl-audiocd.cpp.


Member Data Documentation

Definition at line 51 of file sdl-audiocd.h.

Definition at line 52 of file sdl-audiocd.h.

Definition at line 51 of file sdl-audiocd.h.

SDL_CD* SdlAudioCDManager::_cdrom [protected]

Definition at line 50 of file sdl-audiocd.h.

Definition at line 51 of file sdl-audiocd.h.

Definition at line 52 of file sdl-audiocd.h.

int SdlAudioCDManager::_cdTrack [protected]

Definition at line 51 of file sdl-audiocd.h.


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


Generated on Sat Jan 12 2019 05:03:25 for ResidualVM by doxygen 1.7.1
curved edge   curved edge