Mercurial > hg > svcore
comparison data/model/WaveFileModel.cpp @ 1065:0fd3661bcfff tonioni
clone() is never used (therefore presumably never works either)
author | Chris Cannam |
---|---|
date | Tue, 31 Mar 2015 12:12:31 +0100 |
parents | 48e4ffa9fb48 |
children | 9f4505ac9072 |
comparison
equal
deleted
inserted
replaced
1064:c9fdd9921146 | 1065:0fd3661bcfff |
---|---|
122 SVDEBUG << "WaveFileModel::isReady(): ready = " << ready << ", completion = " << (completion ? *completion : -1) << endl; | 122 SVDEBUG << "WaveFileModel::isReady(): ready = " << ready << ", completion = " << (completion ? *completion : -1) << endl; |
123 #endif | 123 #endif |
124 return ready; | 124 return ready; |
125 } | 125 } |
126 | 126 |
127 Model * | |
128 WaveFileModel::clone() const | |
129 { | |
130 WaveFileModel *model = new WaveFileModel(m_source); | |
131 return model; | |
132 } | |
133 | |
134 sv_frame_t | 127 sv_frame_t |
135 WaveFileModel::getFrameCount() const | 128 WaveFileModel::getFrameCount() const |
136 { | 129 { |
137 if (!m_reader) return 0; | 130 if (!m_reader) return 0; |
138 return m_reader->getFrameCount(); | 131 return m_reader->getFrameCount(); |