mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-29 18:07:42 +01:00
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:
parent
5ffdf1857e
commit
d439459589
5 changed files with 12 additions and 77 deletions
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue