diff data/model/WaveFileModel.cpp @ 327:1d656dcda8ef

* some tweaks to improve usability of these classes in a console application
author Chris Cannam
date Fri, 02 Nov 2007 16:50:31 +0000
parents c324d410b096
children 1afaf98dbf11
line wrap: on
line diff
--- a/data/model/WaveFileModel.cpp	Thu Nov 01 16:02:01 2007 +0000
+++ b/data/model/WaveFileModel.cpp	Fri Nov 02 16:50:31 2007 +0000
@@ -51,7 +51,8 @@
 {
     m_source.waitForData();
     if (m_source.isOK()) {
-        m_reader = AudioFileReaderFactory::createReader(m_source, targetRate);
+        m_reader = AudioFileReaderFactory::createThreadingReader
+            (m_source, targetRate);
         if (m_reader) {
             std::cerr << "WaveFileModel::WaveFileModel: reader rate: "
                       << m_reader->getSampleRate() << std::endl;