summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-10-31 16:19:29 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-10-31 16:19:29 +0000
commit1d48090c5264013297bf9d310529f09c0db3ccb2 (patch)
tree0fa20f68af73e2651060e16f08bfac202d516d8a /libs
parentd99758ff374876660a304356b8398299aa1cb61a (diff)
disk space reflects number of inputs per track; more libsndfile debuggin
git-svn-id: svn://localhost/ardour2/trunk@1037 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/sndfilesource.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc
index 0443ffcc55..5e6f512e53 100644
--- a/libs/ardour/sndfilesource.cc
+++ b/libs/ardour/sndfilesource.cc
@@ -507,10 +507,14 @@ SndFileSource::set_header_timeline_position ()
nframes_t
SndFileSource::write_float (Sample* data, nframes_t frame_pos, nframes_t cnt)
{
- if (sf_seek (sf, frame_pos, SEEK_SET|SFM_WRITE) != frame_pos) {
+ nframes_t where;
+
+ where = sf_seek (sf, frame_pos, SEEK_SET|SFM_WRITE);
+
+ if (where != frame_pos) {
char errbuf[256];
sf_error_str (0, errbuf, sizeof (errbuf) - 1);
- error << string_compose (_("%1: cannot seek to %2 (libsndfile error: %3"), _path, frame_pos, errbuf) << endmsg;
+ error << string_compose (_("%1: cannot seek to %2, now at %3 (libsndfile error: %4"), _path, frame_pos, where, errbuf) << endmsg;
return 0;
}