comparison 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
comparison
equal deleted inserted replaced
146:45480b73f4af 147:1a6eab755c81
153 if (!writer.isOK()) { 153 if (!writer.isOK()) {
154 cerr << "ERROR: Failed to create MIDI writer: " 154 cerr << "ERROR: Failed to create MIDI writer: "
155 << writer.getError() << endl; 155 << writer.getError() << endl;
156 throw FileOperationFailed(filename, "create MIDI writer"); 156 throw FileOperationFailed(filename, "create MIDI writer");
157 } 157 }
158
158 writer.write(); 159 writer.write();
160
161 if (!writer.isOK()) {
162 cerr << "ERROR: Failed to write to MIDI file: "
163 << writer.getError() << endl;
164 throw FileOperationFailed(filename, "MIDI write");
165 }
159 } 166 }
160 } 167 }
161 } 168 }
162 169