diff options
author | Walter van Niftrik | 2009-06-12 23:46:23 +0000 |
---|---|---|
committer | Walter van Niftrik | 2009-06-12 23:46:23 +0000 |
commit | 1fb78d577f5240db9fb0a5103bc9e7cb61dc39cd (patch) | |
tree | f4fa7ffeb9ea4fe48a13987023a9dc54c44a5319 /engines/sci/resource.h | |
parent | 019be026d948e91f0ac25921f7f2151ea967cc6c (diff) | |
download | scummvm-rg350-1fb78d577f5240db9fb0a5103bc9e7cb61dc39cd.tar.gz scummvm-rg350-1fb78d577f5240db9fb0a5103bc9e7cb61dc39cd.tar.bz2 scummvm-rg350-1fb78d577f5240db9fb0a5103bc9e7cb61dc39cd.zip |
SCI: Moved audio code from AudioResource to the sfx core.
svn-id: r41486
Diffstat (limited to 'engines/sci/resource.h')
-rw-r--r-- | engines/sci/resource.h | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/engines/sci/resource.h b/engines/sci/resource.h index e1a7dda921..77c92840ee 100644 --- a/engines/sci/resource.h +++ b/engines/sci/resource.h @@ -378,50 +378,6 @@ protected: int guessSciVersion(); }; -/** - * Used for lip and animation syncing in CD talkie games - */ -class ResourceSync : public Resource { -public: - ResourceSync() {} - ~ResourceSync() {} - - void startSync(EngineState *s, reg_t obj); - void nextSync(EngineState *s, reg_t obj); - void stopSync(); - -protected: - uint16 *_ptr; - int16 _syncTime, _syncCue; - //bool _syncStarted; // not used -}; - -/** - * Used for speech playback and digital music playback - * in CD talkie games - */ -class AudioResource { -public: - AudioResource(ResourceManager *resMgr, int sciVersion); - - void setAudioRate(uint16 audioRate) { _audioRate = audioRate; } - - Audio::SoundHandle* getAudioHandle() { return &_audioHandle; } - int getAudioPosition(); - - Audio::AudioStream* getAudioStream(uint32 audioNumber, uint32 volume, int *sampleLen); - - void stop() { g_system->getMixer()->stopHandle(_audioHandle); } - void pause() { g_system->getMixer()->pauseHandle(_audioHandle, true); } - void resume() { g_system->getMixer()->pauseHandle(_audioHandle, false); } - -private: - Audio::SoundHandle _audioHandle; - uint16 _audioRate; - ResourceManager *_resMgr; - int _sciVersion; -}; - } // End of namespace Sci #endif // SCI_SCICORE_RESOURCE_H |