summaryrefslogtreecommitdiff
path: root/libs/ardour/sndfilesource.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-12-07 15:09:20 +0100
committerRobin Gareus <robin@gareus.org>2019-12-07 15:38:53 +0100
commitc7c40f6f3df85114a59092efa8ad879b3e90d822 (patch)
treed913a30aa15a9a2e709c2df94df1f0f5f7988e58 /libs/ardour/sndfilesource.cc
parent9040fd46709ed27ff89562e5f8517fca8e097600 (diff)
Remove #ifdef'ed format-specific error-log messages
With inclusion of Mp3FileSource, this would get tricky. On MacOS, the SndFileSource's sf_error_str message is never displayed, anyway, also calling methods all handle failed-constructor. So error-log is less important.
Diffstat (limited to 'libs/ardour/sndfilesource.cc')
-rw-r--r--libs/ardour/sndfilesource.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc
index a14f0e1c72..f878796198 100644
--- a/libs/ardour/sndfilesource.cc
+++ b/libs/ardour/sndfilesource.cc
@@ -405,18 +405,6 @@ SndFileSource::open ()
}
if (_sndfile == 0) {
- char errbuf[1024];
- sf_error_str (0, errbuf, sizeof (errbuf) - 1);
-#ifndef HAVE_COREAUDIO
- /* if we have CoreAudio, we will be falling back to that if libsndfile fails,
- so we don't want to see this message.
- */
-
- cerr << "failed to open " << _path << " with name " << _name << endl;
-
- error << string_compose(_("SndFileSource: cannot open file \"%1\" for %2 (%3)"),
- _path, (writable() ? "read+write" : "reading"), errbuf) << endmsg;
-#endif
return -1;
}