Mercurial > hg > sonic-annotator
comparison runner/MIDIFeatureWriter.cpp @ 148:04945e74d314
Merge from branch midi
author | Chris Cannam |
---|---|
date | Tue, 14 Oct 2014 11:13:31 +0100 |
parents | 1a6eab755c81 |
children | 56dcb5f67ed1 |
comparison
equal
deleted
inserted
replaced
144:b3d73c08b6ce | 148:04945e74d314 |
---|---|
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 |