From 6ca0570fe3bb3f3765677ff8cd3f9e0cbf062d6b Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 10 Jan 2010 15:20:14 +0000 Subject: - Add a SubLoopingAudioStream, which loops a nested part of a stream and thus features the same looping capabilites as LinearMemoryStream and LinearDiskStream. - Remove custom looping code from LinearMemoryStream and LinearDiskStream. - Adapt various client code to the changes. svn-id: r47226 --- sound/voc.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sound/voc.h') diff --git a/sound/voc.h b/sound/voc.h index 44bef758f3..e16d8169f9 100644 --- a/sound/voc.h +++ b/sound/voc.h @@ -93,7 +93,12 @@ extern byte *loadVOCFromStream(Common::ReadStream &stream, int &size, int &rate) * * This function uses loadVOCFromStream() internally. */ -SeekableAudioStream *makeVOCStream(Common::SeekableReadStream &stream, byte flags = 0, uint loopStart = 0, uint loopEnd = 0, bool takeOwnershipOfStream = false); +AudioStream *makeVOCStream(Common::SeekableReadStream &stream, byte flags = 0, uint loopStart = 0, uint loopEnd = 0, bool takeOwnershipOfStream = false); + +/** + * This does not use any of the looping features from VOC files! + */ +SeekableAudioStream *makeVOCStream(Common::SeekableReadStream &stream, byte flags, bool takeOwnershipOfStream); } // End of namespace Audio -- cgit v1.2.3