Mercurial > hg > sonic-annotator
comparison runner/MIDIFeatureWriter.cpp @ 149:56dcb5f67ed1 jams
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 14 Oct 2014 11:13:43 +0100 |
parents | 3921e0c1f4dd 1a6eab755c81 |
children | db83ea0e102d |
comparison
equal
deleted
inserted
replaced
145:3921e0c1f4dd | 149:56dcb5f67ed1 |
---|---|
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 FileFeatureWriter::finish(); | 169 FileFeatureWriter::finish(); |
163 } | 170 } |