Mercurial > hg > sonic-annotator
diff runner/MIDIFeatureWriter.cpp @ 147:1a6eab755c81 midi
Add MIDI destinations tests and fix feature writer bugs resulting from them
author | Chris Cannam |
---|---|
date | Tue, 14 Oct 2014 10:07:02 +0100 |
parents | b3d73c08b6ce |
children | 56dcb5f67ed1 |
line wrap: on
line diff
--- a/runner/MIDIFeatureWriter.cpp Tue Oct 14 09:20:31 2014 +0100 +++ b/runner/MIDIFeatureWriter.cpp Tue Oct 14 10:07:02 2014 +0100 @@ -155,7 +155,14 @@ << writer.getError() << endl; throw FileOperationFailed(filename, "create MIDI writer"); } + writer.write(); + + if (!writer.isOK()) { + cerr << "ERROR: Failed to write to MIDI file: " + << writer.getError() << endl; + throw FileOperationFailed(filename, "MIDI write"); + } } } }