summaryrefslogtreecommitdiff
path: root/libs/audiographer
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-06-19 19:22:03 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-06-19 19:22:03 +0000
commit271c8c8f000c6599aaf17a1d96a3725a391d8926 (patch)
treed8e75eee5f7d792059d240342e12df11c2c042ef /libs/audiographer
parent1df227424a651f3835f2e13b0cee7baa69d470ee (diff)
sndfile/export debuggign with ricardus
git-svn-id: svn://localhost/ardour2/branches/3.0@12788 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/audiographer')
-rw-r--r--libs/audiographer/private/sndfile.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/audiographer/private/sndfile.hh b/libs/audiographer/private/sndfile.hh
index 91e99875ac..e1c167a8f2 100644
--- a/libs/audiographer/private/sndfile.hh
+++ b/libs/audiographer/private/sndfile.hh
@@ -52,6 +52,8 @@
#ifndef SNDFILE_HH
#define SNDFILE_HH
+#include <iostream>
+
#include <sndfile.h>
#include <string>
@@ -150,7 +152,7 @@ SndfileHandle::SNDFILE_ref::SNDFILE_ref (void)
inline
SndfileHandle::SNDFILE_ref::~SNDFILE_ref (void)
-{ if (sf != NULL) sf_close (sf) ; }
+{ if (sf != NULL) { std::cerr << "sf_closing " << sf << std::endl; sf_close (sf) ; } }
inline
SndfileHandle::SndfileHandle (const char *path, int mode, int fmt, int chans, int srate)
@@ -169,6 +171,7 @@ SndfileHandle::SndfileHandle (const char *path, int mode, int fmt, int chans, in
p->sfinfo.seekable = 0 ;
p->sf = sf_open (path, mode, &p->sfinfo) ;
+ std::cerr << "3 attempted to open " << path << " got " << p->sf << std::endl;
} ;
return ;
@@ -191,6 +194,7 @@ SndfileHandle::SndfileHandle (std::string const & path, int mode, int fmt, int c
p->sfinfo.seekable = 0 ;
p->sf = sf_open (path.c_str (), mode, &p->sfinfo) ;
+ std::cerr << "attempted to open " << path << " got " << p->sf << std::endl;
} ;
return ;
@@ -216,6 +220,7 @@ SndfileHandle::SndfileHandle (int fd, bool close_desc, int mode, int fmt, int ch
p->sfinfo.seekable = 0 ;
p->sf = sf_open_fd (fd, mode, &p->sfinfo, close_desc) ;
+ std::cerr << "2 attempted to open via fd " << fd << " got " << p->sf << std::endl;
} ;
return ;