comparison data/model/WaveFileModel.cpp @ 317:c324d410b096

* RemoteFile -> FileSource now it's used all over the place for local files as well.
author Chris Cannam
date Thu, 18 Oct 2007 16:20:26 +0000
parents 3a6725f285d6
children 1d656dcda8ef
comparison
equal deleted inserted replaced
316:3a6725f285d6 317:c324d410b096
37 using std::endl; 37 using std::endl;
38 38
39 PowerOfSqrtTwoZoomConstraint 39 PowerOfSqrtTwoZoomConstraint
40 WaveFileModel::m_zoomConstraint; 40 WaveFileModel::m_zoomConstraint;
41 41
42 WaveFileModel::WaveFileModel(RemoteFile source, size_t targetRate) : 42 WaveFileModel::WaveFileModel(FileSource source, size_t targetRate) :
43 m_source(source), 43 m_source(source),
44 m_path(source.getLocation()), 44 m_path(source.getLocation()),
45 m_myReader(true), 45 m_myReader(true),
46 m_startFrame(0), 46 m_startFrame(0),
47 m_fillThread(0), 47 m_fillThread(0),
60 if (m_reader) setObjectName(m_reader->getTitle()); 60 if (m_reader) setObjectName(m_reader->getTitle());
61 if (objectName() == "") setObjectName(QFileInfo(m_path).fileName()); 61 if (objectName() == "") setObjectName(QFileInfo(m_path).fileName());
62 if (isOK()) fillCache(); 62 if (isOK()) fillCache();
63 } 63 }
64 64
65 WaveFileModel::WaveFileModel(RemoteFile source, AudioFileReader *reader) : 65 WaveFileModel::WaveFileModel(FileSource source, AudioFileReader *reader) :
66 m_source(source), 66 m_source(source),
67 m_path(source.getLocation()), 67 m_path(source.getLocation()),
68 m_myReader(false), 68 m_myReader(false),
69 m_startFrame(0), 69 m_startFrame(0),
70 m_fillThread(0), 70 m_fillThread(0),