summaryrefslogtreecommitdiff
path: root/libs/ardour/sndfilesource.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-05-21 18:40:36 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-05-21 18:40:36 +0000
commita6c3508bd381e939d420b6069e374776b5e4468d (patch)
tree0d5de499458d9f2b3f1ac3800a4db5aa67da93fb /libs/ardour/sndfilesource.cc
parent10d0b1cf7a3b627fae7f8432349d26e64ed1bb67 (diff)
ugly debugging code to try to track down what is going on the 64 bit build VM
git-svn-id: svn://localhost/ardour2/branches/3.0@12366 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/sndfilesource.cc')
-rw-r--r--libs/ardour/sndfilesource.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc
index 4353c50eed..a818769921 100644
--- a/libs/ardour/sndfilesource.cc
+++ b/libs/ardour/sndfilesource.cc
@@ -341,6 +341,14 @@ SndFileSource::read_unlocked (Sample *dst, framepos_t start, framecnt_t cnt) con
sf_error_str (0, errbuf, sizeof (errbuf) - 1);
error << string_compose(_("SndFileSource: @ %1 could not read %2 within %3 (%4) (len = %5, ret was %6)"), start, file_cnt, _name.val().substr (1), errbuf, _length, ret) << endl;
}
+ if (id() == ID ("148")) {
+ cerr << "src 148, first sample of read @ " << start << " = " << dst[0] << " aka " << hex
+ << (int) (((char*) dst)[0]) << ' '
+ << (int) (((char*) dst)[1]) << ' '
+ << (int) (((char*) dst)[2]) << ' '
+ << (int) (((char*) dst)[3]) << dec
+ << endl;
+ }
_descriptor->release ();
return ret;
}