diff options
Diffstat (limited to 'sound/mp3.cpp')
-rw-r--r-- | sound/mp3.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sound/mp3.cpp b/sound/mp3.cpp index 642c2ba90a..16ea2d2834 100644 --- a/sound/mp3.cpp +++ b/sound/mp3.cpp @@ -302,23 +302,6 @@ int MP3InputStream::readBuffer(int16 *buffer, const int numSamples) { #pragma mark - -AudioStream *makeMP3Stream(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 an MP3InputStream from all this - return new MP3InputStream(stream, true); -} - AudioStream *makeMP3Stream( Common::SeekableReadStream *stream, bool disposeAfterUse, |