De-templatify Evoral::SMF which has no concept of time other than SMF time.

git-svn-id: svn://localhost/ardour2/branches/3.0@4571 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-02-15 01:32:41 +00:00
parent 5a48f99f72
commit 5d519f8bb1
7 changed files with 33 additions and 51 deletions

View file

@ -25,22 +25,21 @@
using namespace Evoral;
template<typename Time>
class TestSMF : public SMF<Time> {
class TestSMF : public SMF {
public:
std::string path() const { return _path; }
int open(const std::string& path) THROW_FILE_ERROR {
_path = path;
return SMF<Time>::open(path);
return SMF::open(path);
}
void close() THROW_FILE_ERROR {
return SMF<Time>::close();
return SMF::close();
}
int read_event(uint32_t* delta_t, uint32_t* size, uint8_t** buf) const {
return SMF<Time>::read_event(delta_t, size, buf);
return SMF::read_event(delta_t, size, buf);
}
private: