SampleFormat samp_format, HeaderFormat hdr_format);
/** Constructor to be called for existing in-session files */
- AudioFileSource (Session&, const XMLNode&, bool must_exist = true, bool optional_origin = false);
+ AudioFileSource (Session&, const XMLNode&, bool must_exist = true);
/** Constructor to be called for crash recovery. Final argument is not
* used but exists to differentiate from the external-to-session
SilentFileSource (Session& s, const XMLNode& x, framecnt_t len, float srate)
: Source (s, x)
- , AudioFileSource (s, x, false, true)
+ , AudioFileSource (s, x, false)
, _sample_rate(srate)
{
_length = len;
* is an absolute path after ::set_state(), then the file is external to the
* session.
*/
-AudioFileSource::AudioFileSource (Session& s, const XMLNode& node, bool must_exist, bool optional_origin)
+AudioFileSource::AudioFileSource (Session& s, const XMLNode& node, bool must_exist)
: Source (s, node)
, AudioSource (s, node)
, FileSource (s, node, must_exist)
if (Glib::path_is_absolute (_origin)) {
_path = _origin;
- must_exist = !optional_origin;
+ must_exist = true;
}
if (init (_path, must_exist)) {