Mercurial > hg > svcore
comparison data/model/ReadOnlyWaveFileModel.cpp @ 1428:87ae75da6527
Convert some cerrs to SVCERRs. Apart from anything else, this makes MSVC2017 happy
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 14:43:40 +0000 |
parents | 09751743647e |
children | 0925b37a3ed1 |
comparison
equal
deleted
inserted
replaced
1427:622d193a00dc | 1428:87ae75da6527 |
---|---|
217 #endif | 217 #endif |
218 | 218 |
219 int channels = getChannelCount(); | 219 int channels = getChannelCount(); |
220 | 220 |
221 if (channel >= channels) { | 221 if (channel >= channels) { |
222 cerr << "ERROR: WaveFileModel::getData: channel (" | 222 SVCERR << "ERROR: WaveFileModel::getData: channel (" |
223 << channel << ") >= channel count (" << channels << ")" | 223 << channel << ") >= channel count (" << channels << ")" |
224 << endl; | 224 << endl; |
225 return {}; | 225 return {}; |
226 } | 226 } |
227 | 227 |
276 #endif | 276 #endif |
277 | 277 |
278 int channels = getChannelCount(); | 278 int channels = getChannelCount(); |
279 | 279 |
280 if (fromchannel > tochannel) { | 280 if (fromchannel > tochannel) { |
281 cerr << "ERROR: ReadOnlyWaveFileModel::getData: fromchannel (" | 281 SVCERR << "ERROR: ReadOnlyWaveFileModel::getData: fromchannel (" |
282 << fromchannel << ") > tochannel (" << tochannel << ")" | 282 << fromchannel << ") > tochannel (" << tochannel << ")" |
283 << endl; | 283 << endl; |
284 return {}; | 284 return {}; |
285 } | 285 } |
286 | 286 |
287 if (tochannel >= channels) { | 287 if (tochannel >= channels) { |
288 cerr << "ERROR: ReadOnlyWaveFileModel::getData: tochannel (" | 288 SVCERR << "ERROR: ReadOnlyWaveFileModel::getData: tochannel (" |
289 << tochannel << ") >= channel count (" << channels << ")" | 289 << tochannel << ") >= channel count (" << channels << ")" |
290 << endl; | 290 << endl; |
291 return {}; | 291 return {}; |
292 } | 292 } |
293 | 293 |