aboutsummaryrefslogtreecommitdiff
path: root/common/system.h
diff options
context:
space:
mode:
authorAlejandro Marzini2010-06-09 20:09:57 +0000
committerAlejandro Marzini2010-06-09 20:09:57 +0000
commite991cd8c53ad21af037df1e0a16816aeea2d0fe2 (patch)
treef647f636fc3898c150db61de50c3522056a65d17 /common/system.h
parent4177a1e16df7712c081e41a8eabf0b7d4694230b (diff)
downloadscummvm-rg350-e991cd8c53ad21af037df1e0a16816aeea2d0fe2.tar.gz
scummvm-rg350-e991cd8c53ad21af037df1e0a16816aeea2d0fe2.tar.bz2
scummvm-rg350-e991cd8c53ad21af037df1e0a16816aeea2d0fe2.zip
- Revised abstract AudioCDManager.
- Removed AudioCDManager Singleton, and changed code for using AudioCDManager in OSystem. - Added initialization code for new AudioCDManager in BaseBackend and OSystem_SDL. svn-id: r49548
Diffstat (limited to 'common/system.h')
-rw-r--r--common/system.h42
1 files changed, 6 insertions, 36 deletions
diff --git a/common/system.h b/common/system.h
index 60cea49f87..8037f8f396 100644
--- a/common/system.h
+++ b/common/system.h
@@ -33,6 +33,8 @@
#include "graphics/pixelformat.h"
+#include "backends/audiocd/abstract-audiocd.h"
+
namespace Audio {
class Mixer;
}
@@ -926,46 +928,14 @@ public:
- /**
- * @name Audio CD
- * The methods in this group deal with Audio CD playback.
- * The default implementation simply does nothing.
- * This is the lower level implementation as provided by the
- * backends. The engines should use the Audio::AudioCDManager
- * class instead of using it directly.
- */
+ /** @name Audio CD */
//@{
/**
- * Initialise the specified CD drive for audio playback.
- * @return true if the CD drive was inited succesfully
- */
- virtual bool openCD(int drive);
-
- /**
- * Poll CD status.
- * @return true if CD audio is playing
- */
- virtual bool pollCD();
-
- /**
- * Start audio CD playback.
- * @param track the track to play.
- * @param num_loops how often playback should be repeated (-1 = infinitely often).
- * @param start_frame the frame at which playback should start (75 frames = 1 second).
- * @param duration the number of frames to play.
- */
- virtual void playCD(int track, int num_loops, int start_frame, int duration) {}
-
- /**
- * Stop audio CD playback.
- */
- virtual void stopCD() {}
-
- /**
- * Update cdrom audio status.
+ * Return the audio cd manager. For more information, refer to the
+ * AudioCDManager documentation.
*/
- virtual void updateCD() {}
+ virtual AudioCDManager *getAudioCD() = 0;
//@}