# HG changeset patch # User gyorgyf # Date 1329478684 0 # Node ID c98f0ece3e80a464f7a8fd50fc65201675aa959d # Parent b2f70a775ddcfc034a8891c082fb8b7f293fde05 added binary file verification script diff -r b2f70a775ddc -r c98f0ece3e80 runner/BinaryFeatureWriter.cpp --- a/runner/BinaryFeatureWriter.cpp Thu Feb 16 19:06:33 2012 +0000 +++ b/runner/BinaryFeatureWriter.cpp Fri Feb 17 11:38:04 2012 +0000 @@ -62,8 +62,8 @@ ~OutputStream() { if (stream != NULL) {stream->close(); delete stream;} } struct header_t { - int16_t BOM16; // 16-bit BOM (FEFF as in UTF-16) - int32_t BOM32; // 32-bit BOM (human readable: e.g. ABCD) + int16_t BOM16; // 16-bit BOM (FEFF as in UTF-16) 2 bytes + int32_t BOM32; // 32-bit BOM (human readable: e.g. ABCD) 4 bytes char major_version; // check for binary compatibility char minor_version; // changes in txt parts only char compression; // use of stream compression (e.g. gzip) @@ -78,7 +78,7 @@ if (stream) return true; - header_t header = {(int16_t) 0xFEFF,0x41424344,MAJOR_VERSION_PY,1,0,NULL,NULL,(char)sizeof(float),(char)sizeof(int),{NULL},NULL}; + header_t header = {(int16_t) 0xFEFF, (int32_t) 0x41424344,MAJOR_VERSION_PY,2,0,NULL,NULL,(char)sizeof(float),(char)sizeof(int),{NULL},NULL}; char* p_header = reinterpret_cast(&header); if (append) @@ -135,7 +135,7 @@ QString timestamp; if (gmtm != NULL) timestamp = QString("%1 %2").arg(", Created: ").arg(asctime(gmtm)).trimmed(); - string info = QString(" SONIC ANNOTATOR v%1 PYTHON BINARY V0.1, Platform: %2-%3bit%4") + string info = QString("_SONIC ANNOTATOR v%1 PYTHON BINARY V0.2, Platform: %2-%3bit%4") .arg(RUNNER_VERSION) .arg(platform) .arg(arch) diff -r b2f70a775ddc -r c98f0ece3e80 sonic-annotator Binary file sonic-annotator has changed