Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
326:bb6e4c46e202 | 327:1d656dcda8ef |
---|---|
49 m_lastFillExtent(0), | 49 m_lastFillExtent(0), |
50 m_exiting(false) | 50 m_exiting(false) |
51 { | 51 { |
52 m_source.waitForData(); | 52 m_source.waitForData(); |
53 if (m_source.isOK()) { | 53 if (m_source.isOK()) { |
54 m_reader = AudioFileReaderFactory::createReader(m_source, targetRate); | 54 m_reader = AudioFileReaderFactory::createThreadingReader |
55 (m_source, targetRate); | |
55 if (m_reader) { | 56 if (m_reader) { |
56 std::cerr << "WaveFileModel::WaveFileModel: reader rate: " | 57 std::cerr << "WaveFileModel::WaveFileModel: reader rate: " |
57 << m_reader->getSampleRate() << std::endl; | 58 << m_reader->getSampleRate() << std::endl; |
58 } | 59 } |
59 } | 60 } |