mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-31 19:07:43 +01:00
lots of details relating to MIDI file management; try to ignore ALSA sequencer MIDI ports named "Midi-Through"
git-svn-id: svn://localhost/ardour2/branches/3.0@7305 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ecb0cd5d11
commit
37978aa214
17 changed files with 126 additions and 82 deletions
|
|
@ -275,7 +275,6 @@ SMF::begin_write()
|
|||
void
|
||||
SMF::end_write() THROW_FILE_ERROR
|
||||
{
|
||||
#if 0
|
||||
/* don't create empty MIDI files
|
||||
*/
|
||||
|
||||
|
|
@ -283,13 +282,14 @@ SMF::end_write() THROW_FILE_ERROR
|
|||
if (smf_peek_next_event (_smf) == 0) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
PBD::StdioFileDescriptor d (_file_path, "w+");
|
||||
FILE* f = d.allocate ();
|
||||
if (f == 0) {
|
||||
throw FileError ();
|
||||
}
|
||||
|
||||
cerr << "\n\n\nSAVE SMF to " << _file_path << "\n\n";
|
||||
|
||||
if (smf_save(_smf, f) != 0) {
|
||||
throw FileError();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue