diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-10-31 16:19:29 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-10-31 16:19:29 +0000 |
commit | 1d48090c5264013297bf9d310529f09c0db3ccb2 (patch) | |
tree | 0fa20f68af73e2651060e16f08bfac202d516d8a /libs/ardour | |
parent | d99758ff374876660a304356b8398299aa1cb61a (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/ardour')
-rw-r--r-- | libs/ardour/sndfilesource.cc | 8 |
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; } |