diff options
Diffstat (limited to 'backends/platform/sdl/sdl-common.h')
-rw-r--r-- | backends/platform/sdl/sdl-common.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/backends/platform/sdl/sdl-common.h b/backends/platform/sdl/sdl-common.h index 093e7950f9..aeb9c5bf37 100644 --- a/backends/platform/sdl/sdl-common.h +++ b/backends/platform/sdl/sdl-common.h @@ -33,6 +33,15 @@ #include "backends/intern.h" +namespace Audio { + class Mixer; +} + +namespace Common { + class SaveFileManager; + class TimerManager; +} + #if !defined(_WIN32_WCE) && !defined(__SYMBIAN32__) // Uncomment this to enable the 'on screen display' code. #define USE_OSD 1 @@ -124,9 +133,10 @@ public: virtual bool pollEvent(Event &event); // overloaded by CE backend // Set function that generates samples + typedef void (*SoundProc)(void *param, byte *buf, int len); virtual bool setSoundCallback(SoundProc proc, void *param); // overloaded by CE backend - void clearSoundCallback(); + virtual Audio::Mixer *getMixer(); // Poll CD status // Returns true if cd audio is playing @@ -146,7 +156,9 @@ public: // Add a callback timer + typedef int (*TimerProc)(int interval); void setTimerCallback(TimerProc callback, int timer); + virtual Common::TimerManager *getTimerManager(); // Mutex handling MutexRef createMutex(); @@ -187,6 +199,8 @@ public: void displayMessageOnOSD(const char *msg); #endif + virtual Common::SaveFileManager *getSavefileManager(); + protected: bool _inited; @@ -357,6 +371,12 @@ protected: MutexRef _graphicsMutex; + Common::SaveFileManager *_savefile; + Audio::Mixer *_mixer; + Common::TimerManager *_timer; + + + void addDirtyRgnAuto(const byte *buf); void makeChecksums(const byte *buf); |