diff options
Diffstat (limited to 'sound/vorbis.cpp')
-rw-r--r-- | sound/vorbis.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sound/vorbis.cpp b/sound/vorbis.cpp index be15039aca..668cdf4fc7 100644 --- a/sound/vorbis.cpp +++ b/sound/vorbis.cpp @@ -266,23 +266,6 @@ void VorbisInputStream::refill() { #pragma mark - -AudioStream *makeVorbisStream(Common::File *file, uint32 size) { - assert(file); - - // FIXME: For now, just read the whole data into memory, and be done - // with it. Of course this is in general *not* a nice thing to do... - - // If no size was specified, read the whole remainder of the file - if (!size) - size = file->size() - file->pos(); - - // Read 'size' bytes of data into a MemoryReadStream - Common::MemoryReadStream *stream = file->readStream(size); - - // .. and create a VorbisInputStream from all this - return new VorbisInputStream(stream, true); -} - AudioStream *makeVorbisStream( Common::SeekableReadStream *stream, bool disposeAfterUse, |