diff options
author | Johannes Schickel | 2006-02-10 16:39:56 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-02-10 16:39:56 +0000 |
commit | 5398ef1532fc5839d0ee4c4c15de0bc7c826476d (patch) | |
tree | 361252441a2a8a1f65ce3d05fe3d743867a8e714 /kyra/resource.h | |
parent | 410261e8b443f70c5d98bb16a11274d3778537cf (diff) | |
download | scummvm-rg350-5398ef1532fc5839d0ee4c4c15de0bc7c826476d.tar.gz scummvm-rg350-5398ef1532fc5839d0ee4c4c15de0bc7c826476d.tar.bz2 scummvm-rg350-5398ef1532fc5839d0ee4c4c15de0bc7c826476d.zip |
Added support for compressed speech in the engine (I only tried ogg and flac I guess mp3 should work too...)
Also changed some formatting.
svn-id: r20480
Diffstat (limited to 'kyra/resource.h')
-rw-r--r-- | kyra/resource.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/kyra/resource.h b/kyra/resource.h index 3355d6c819..1a479c0b73 100644 --- a/kyra/resource.h +++ b/kyra/resource.h @@ -43,11 +43,12 @@ class PAKFile { public: - PAKFile(const Common::String& file); + PAKFile(const Common::String &file); ~PAKFile(); - uint8* getFile(const char* file); - uint32 getFileSize(const char* file); + uint8* getFile(const char *file); + bool getFileHandle(const char *file, Common::File &filehandle); + uint32 getFileSize(const char *file); bool isValid(void) const { return (_filename != 0); } bool isOpen(void) const { return _open; } @@ -66,14 +67,18 @@ class VMContext; class Resource { public: - Resource(KyraEngine* engine); + Resource(KyraEngine *engine); ~Resource(); bool loadPakFile(const char *filename); void unloadPakFile(const char *filename); bool isInPakList(const char *filename); - uint8* fileData(const char* file, uint32* size); + uint8* fileData(const char *file, uint32 *size); + // it gives back a file handle (used for the speech player) + // it could be that the needed file is embedded in the returned + // handle + bool fileHandle(const char *file, uint32 *size, Common::File &filehandle); protected: struct PakFileEntry { |