aboutsummaryrefslogtreecommitdiff
path: root/sound/vag.h
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-07 17:04:01 +0000
committerJohannes Schickel2010-01-07 17:04:01 +0000
commita597e5fef93523436e60eca18997fb5ca5196345 (patch)
tree673cc525c81033c28ccbc4e5a7163f00e941f59b /sound/vag.h
parent771867fd1bd96470d788644072f4f6ad8beca640 (diff)
downloadscummvm-rg350-a597e5fef93523436e60eca18997fb5ca5196345.tar.gz
scummvm-rg350-a597e5fef93523436e60eca18997fb5ca5196345.tar.bz2
scummvm-rg350-a597e5fef93523436e60eca18997fb5ca5196345.zip
Make VagStream a RewindableAudioStream.
svn-id: r47132
Diffstat (limited to 'sound/vag.h')
-rw-r--r--sound/vag.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/vag.h b/sound/vag.h
index 3bbda156e7..bd3b174729 100644
--- a/sound/vag.h
+++ b/sound/vag.h
@@ -38,21 +38,20 @@
namespace Audio {
-class VagStream : public Audio::AudioStream {
+class VagStream : public Audio::RewindableAudioStream {
public:
- VagStream(Common::SeekableReadStream *stream, bool loop = false, int rate = 11025);
+ VagStream(Common::SeekableReadStream *stream, int rate = 11025);
~VagStream();
bool isStereo() const { return false; }
bool endOfData() const { return _stream->pos() == _stream->size(); }
int getRate() const { return _rate; }
int readBuffer(int16 *buffer, const int numSamples);
- void rewind();
+ bool rewind();
private:
Common::SeekableReadStream *_stream;
- bool _loop;
byte _predictor;
double _samples[28];
byte _samplesRemaining;