diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2008-05-06 10:49:16 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2008-05-06 10:49:16 +0000 |
commit | 98e653714ee1a5a23c69aa6957b3b04455415777 (patch) | |
tree | d8485a2c3cb59728d094a7b0e3ca9d48c2933b69 /libs/ardour/smf_source.cc | |
parent | 8c0e27928ab450a6dc73773aaecf11e22811d823 (diff) |
* enabled some debugging output :|
git-svn-id: svn://localhost/ardour2/branches/3.0@3321 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/smf_source.cc')
-rw-r--r-- | libs/ardour/smf_source.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc index 0816cc03d9..46c8e4bf6f 100644 --- a/libs/ardour/smf_source.cc +++ b/libs/ardour/smf_source.cc @@ -195,6 +195,7 @@ SMFSource::seek_to_footer_position() // lets check if there is a track end marker at the end of the data fseek(_fd, -4, SEEK_END); size_t read_bytes = fread(buffer, sizeof(uint8_t), 4, _fd); + cerr << "SMFSource::seek_to_footer_position: read size: " << read_bytes << endl; if( (read_bytes == 4) && buffer[0] == 0x00 && buffer[1] == 0xFF && @@ -352,11 +353,11 @@ SMFSource::read_event(uint32_t* delta_t, uint32_t* size, Byte** buf) const if (event_size > 1) fread((*buf) + 1, 1, *size - 1, _fd); - /*printf("SMFSource %s read event: delta = %u, size = %u, data = ", _name.c_str(), *delta_t, *size); + printf("SMFSource %s read event: delta = %u, size = %u, data = ", _name.c_str(), *delta_t, *size); for (size_t i=0; i < *size; ++i) { printf("%X ", (*buf)[i]); } - printf("\n"); */ + printf("\n"); return (int)*size; } |