Add bbt_add that does not take Metric parameter.
[ardour.git] / libs / ardour / audiofilesource.cc
index 0412ee09665360ed5c86f9625241b51b481b7ece..8de786eb0e0901f94c64cf3d516a328651e0772d 100644 (file)
@@ -121,7 +121,7 @@ AudioFileSource::AudioFileSource (Session& s, const XMLNode& node, bool must_exi
        , AudioSource (s, node)
        , FileSource (s, node, must_exist)
 {
-       if (set_state (node)) {
+       if (set_state (node, Stateful::loading_state_version)) {
                throw failed_constructor ();
        }
 
@@ -258,17 +258,17 @@ AudioFileSource::get_state ()
 }
 
 int
-AudioFileSource::set_state (const XMLNode& node)
+AudioFileSource::set_state (const XMLNode& node, int version)
 {
-       if (Source::set_state (node)) {
+       if (Source::set_state (node, version)) {
                return -1;
        }
 
-       if (AudioSource::set_state (node)) {
+       if (AudioSource::set_state (node, version)) {
                return -1;
        }
 
-       if (FileSource::set_state (node)) {
+       if (FileSource::set_state (node, version)) {
                return -1;
        }