Remove abstract MIDIFile interface (maintaining interface with old crap was getting annoying).

git-svn-id: svn://localhost/ardour2/branches/3.0@4553 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-02-14 17:39:49 +00:00
parent 5ffdf1857e
commit d439459589
5 changed files with 12 additions and 77 deletions

View file

@ -59,7 +59,7 @@ SMF<Time>::open(const std::string& path) THROW_FILE_ERROR
if (!_smf) {
_smf = smf_new();
if (smf_set_ppqn(_smf, _ppqn) != 0) {
throw typename MIDIFile<Time>::FileError();
throw FileError();
}
if(_smf == NULL) {
@ -88,7 +88,7 @@ SMF<Time>::close() THROW_FILE_ERROR
{
if (_smf) {
if (smf_save(_smf, _path.c_str()) != 0) {
throw typename MIDIFile<Time>::FileError();
throw FileError();
}
smf_delete(_smf);
_smf = 0;
@ -192,7 +192,7 @@ void
SMF<Time>::end_write() THROW_FILE_ERROR
{
if (smf_save(_smf, _path.c_str()) != 0)
throw typename MIDIFile<Time>::FileError();
throw FileError();
}
template class SMF<double>;