mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
Clarify error message when file cannot be created,
The default error is "Not a valid SNDFILE* pointer." which is rather obscure to end-users.
This commit is contained in:
parent
203c6546c1
commit
16ef78ade0
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue