diff options
author | Max Horn | 2005-01-09 03:15:59 +0000 |
---|---|---|
committer | Max Horn | 2005-01-09 03:15:59 +0000 |
commit | 32f0dbdcb291eef03d1bc031ba9d23b6a2fdebe6 (patch) | |
tree | b30f994afe51adb688eb520e341a9b00104fe87e /scumm/sound.h | |
parent | bc44b5ec15e7d7f933e455e46c2f603e2800cd82 (diff) | |
download | scummvm-rg350-32f0dbdcb291eef03d1bc031ba9d23b6a2fdebe6.tar.gz scummvm-rg350-32f0dbdcb291eef03d1bc031ba9d23b6a2fdebe6.tar.bz2 scummvm-rg350-32f0dbdcb291eef03d1bc031ba9d23b6a2fdebe6.zip |
Moving AppendableAudioStream into SCUMM engine, as it is only used there
svn-id: r16494
Diffstat (limited to 'scumm/sound.h')
-rw-r--r-- | scumm/sound.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scumm/sound.h b/scumm/sound.h index 6bbff1dfe2..16d1e7b738 100644 --- a/scumm/sound.h +++ b/scumm/sound.h @@ -22,6 +22,7 @@ #define SOUND_H #include "common/scummsys.h" +#include "sound/audiostream.h" #include "sound/mixer.h" class File; @@ -129,6 +130,19 @@ protected: bool isSoundInQueue(int sound) const; }; +/** + * An audio stream to which additional data can be appended on-the-fly. + * Used by SMUSH and iMuseDigital. + */ +class AppendableAudioStream : public AudioStream { +public: + virtual void append(const byte *data, uint32 len) = 0; + virtual void finish() = 0; +}; + +AppendableAudioStream *makeAppendableAudioStream(int rate, byte _flags, uint32 len); + + } // End of namespace Scumm #endif |