diff data/fileio/AudioFileReaderFactory.cpp @ 265:e08f486e8d8c

* Enable threaded decoding for Ogg and MP3 files. Needs some work on reducing updates to the overview widget
author Chris Cannam
date Wed, 06 Jun 2007 16:24:55 +0000
parents 71dfc6ab3b54
children 9c447d664275
line wrap: on
line diff
--- a/data/fileio/AudioFileReaderFactory.cpp	Fri Jun 01 13:56:35 2007 +0000
+++ b/data/fileio/AudioFileReaderFactory.cpp	Wed Jun 06 16:24:55 2007 +0000
@@ -74,7 +74,7 @@
         if (extensions.find(ext) != extensions.end()) {
             reader = new MP3FileReader
                 (path,
-                 MP3FileReader::DecodeAtOnce,
+                 MP3FileReader::DecodeThreaded,
                  MP3FileReader::CacheInTemporaryFile);
         }
     }
@@ -87,7 +87,7 @@
         if (extensions.find(ext) != extensions.end()) {
             reader = new OggVorbisFileReader
                 (path, 
-                 OggVorbisFileReader::DecodeAtOnce,
+                 OggVorbisFileReader::DecodeThreaded,
                  OggVorbisFileReader::CacheInTemporaryFile);
         }
     }
@@ -124,7 +124,7 @@
 #ifdef HAVE_FISHSOUND
     reader = new OggVorbisFileReader
         (path,
-         OggVorbisFileReader::DecodeAtOnce,
+         OggVorbisFileReader::DecodeThreaded,
          OggVorbisFileReader::CacheInTemporaryFile);
     if (reader->isOK()) return reader;
     if (reader->getError() != "") {
@@ -141,7 +141,7 @@
 #ifdef HAVE_MAD
     reader = new MP3FileReader
         (path,
-         MP3FileReader::DecodeAtOnce,
+         MP3FileReader::DecodeThreaded,
          MP3FileReader::CacheInTemporaryFile);
     if (reader->isOK()) return reader;
     if (reader->getError() != "") {