diff options
author | Matthew Hoops | 2011-04-08 17:04:29 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-04-08 17:04:29 -0400 |
commit | faee277978c54ccb3dcccfedc75ddb31f44e630f (patch) | |
tree | beee5c5b3ff3439b67076e58dc49246e9c4bdc9f /audio/decoders/quicktime.h | |
parent | 88ebf13077a072ac0b3100e54f2949db46960e5e (diff) | |
download | scummvm-rg350-faee277978c54ccb3dcccfedc75ddb31f44e630f.tar.gz scummvm-rg350-faee277978c54ccb3dcccfedc75ddb31f44e630f.tar.bz2 scummvm-rg350-faee277978c54ccb3dcccfedc75ddb31f44e630f.zip |
COMMON: Add a DisposeAfterUse flag to QuickTimeParser
Diffstat (limited to 'audio/decoders/quicktime.h')
-rw-r--r-- | audio/decoders/quicktime.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/audio/decoders/quicktime.h b/audio/decoders/quicktime.h index 9e2e95b705..be4d1097da 100644 --- a/audio/decoders/quicktime.h +++ b/audio/decoders/quicktime.h @@ -50,13 +50,13 @@ public: * Load a QuickTime audio file * @param filename the filename to load */ - bool loadFile(const Common::String &filename); + bool loadAudioFile(const Common::String &filename); /** * Load a QuickTime audio file from a SeekableReadStream * @param stream the stream to load */ - bool loadStream(Common::SeekableReadStream *stream); + bool loadAudioStream(Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeFileHandle); protected: struct AudioSampleDesc : public Common::QuickTimeParser::SampleDesc { @@ -93,6 +93,16 @@ protected: */ SeekableAudioStream *makeQuickTimeStream(const Common::String &filename); +/** + * Try to load a QuickTime sound file from the given seekable stream and create a SeekableAudioStream + * from that data. + * + * @param stream the SeekableReadStream from which to read the data + * @param disposeAfterUse whether to delete the stream after use + * @return a new SeekableAudioStream, or NULL, if an error occurred + */ +SeekableAudioStream *makeQuickTimeStream(Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse = DisposeAfterUse::YES); + } // End of namespace Audio #endif |