diff options
-rw-r--r-- | libs/audiographer/audiographer/sndfile/sndfile_writer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/audiographer/audiographer/sndfile/sndfile_writer.h b/libs/audiographer/audiographer/sndfile/sndfile_writer.h index d0049360d2..b106eba6a8 100644 --- a/libs/audiographer/audiographer/sndfile/sndfile_writer.h +++ b/libs/audiographer/audiographer/sndfile/sndfile_writer.h @@ -84,6 +84,10 @@ class SndfileWriter virtual void init() { + if (SF_ERR_NO_ERROR != SndfileHandle::error ()) { + throw Exception (*this, boost::str (boost::format + ("Could create output file (%1%)") % path)); + } samples_written = 0; add_supported_flag (ProcessContext<T>::EndOfInput); } |