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:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user