diff options
author | Filippos Karapetis | 2009-05-26 10:02:25 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-05-26 10:02:25 +0000 |
commit | 780899fb0e0be87bd87386fc5f6aeffb4bc30c42 (patch) | |
tree | 75c43c31d900466648eb8b0c99f012b39363c662 /engines/sci/resource.h | |
parent | 9900cbcb70859741e1df6fd26064a82cbc303302 (diff) | |
download | scummvm-rg350-780899fb0e0be87bd87386fc5f6aeffb4bc30c42.tar.gz scummvm-rg350-780899fb0e0be87bd87386fc5f6aeffb4bc30c42.tar.bz2 scummvm-rg350-780899fb0e0be87bd87386fc5f6aeffb4bc30c42.zip |
Rewrote the Audio stream parser. The introduction of KQ6 should work more correctly now (apart from Cassima's speech)
svn-id: r40904
Diffstat (limited to 'engines/sci/resource.h')
-rw-r--r-- | engines/sci/resource.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/engines/sci/resource.h b/engines/sci/resource.h index 6f527645a7..60f3ea1d26 100644 --- a/engines/sci/resource.h +++ b/engines/sci/resource.h @@ -304,7 +304,7 @@ protected: class AudioResource { public: - AudioResource(); + AudioResource(ResourceManager *resMgr, int sciVersion); ~AudioResource(); void setAudioRate(uint16 audioRate) { _audioRate = audioRate; } @@ -313,11 +313,7 @@ public: Audio::SoundHandle* getAudioHandle() { return &_audioHandle; } int getAudioPosition(); - // TODO: these need better names - Audio::AudioStream* getAudioStreamKQ5CD(uint16 audioNumber, int* sampleLen); - Audio::AudioStream* getAudioStreamKQ5CD(Resource* audioRes, int* sampleLen); - Audio::AudioStream* getAudioStreamKQ6Floppy(uint16 audioNumber, int* sampleLen); - Audio::AudioStream* getAudioStreamKQ6Floppy(Resource* audioRes, int* sampleLen); + Audio::AudioStream* getAudioStream(uint16 audioNumber, int *sampleLen); void stop() { g_system->getMixer()->stopHandle(_audioHandle); } void pause() { g_system->getMixer()->pauseHandle(_audioHandle, true); } @@ -327,11 +323,13 @@ private: Audio::SoundHandle _audioHandle; uint16 _audioRate; int16 _lang; - byte *_audioMap; + byte *_audioMapSCI1; + Resource *_audioMapSCI11; + ResourceManager *_resMgr; + int _sciVersion; - // TODO: these need better names - bool findAudEntryKQ5CD(uint16 audioNumber, byte& volume, uint32& offset, uint32& size); - bool findAudEntryKQ6Floppy(uint16 audioNumber, uint32& offset); + bool findAudEntrySCI1(uint16 audioNumber, byte &volume, uint32 &offset, uint32 &size); + bool findAudEntrySCI11(uint16 audioNumber, uint32 &offset); }; } // End of namespace Sci |