aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/resource.h
diff options
context:
space:
mode:
authorWalter van Niftrik2009-06-12 23:46:23 +0000
committerWalter van Niftrik2009-06-12 23:46:23 +0000
commit1fb78d577f5240db9fb0a5103bc9e7cb61dc39cd (patch)
treef4fa7ffeb9ea4fe48a13987023a9dc54c44a5319 /engines/sci/resource.h
parent019be026d948e91f0ac25921f7f2151ea967cc6c (diff)
downloadscummvm-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.h44
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