Add option to limit automatable control parmaters
[ardour.git] / libs / ardour / caimportable.cc
index 8bacbd1d15479f1ec06372c6102fcd5fa98adcb3..008e78954c8566fe79989b096b34ff38afd47b5f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012 Paul Davis 
+    Copyright (C) 2012 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@
 #include <sndfile.h>
 #include "pbd/error.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace std;
@@ -55,12 +55,12 @@ CAImportableSource::~CAImportableSource ()
 {
 }
 
-framecnt_t
-CAImportableSource::read (Sample* buffer, framecnt_t nframes)
+samplecnt_t
+CAImportableSource::read (Sample* buffer, samplecnt_t nframes)
 {
-       framecnt_t nread = 0;
+       samplecnt_t nread = 0;
        AudioBufferList abl;
-       framecnt_t per_channel;
+       samplecnt_t per_channel;
        bool at_end = false;
 
        abl.mNumberBuffers = 1;
@@ -104,13 +104,13 @@ CAImportableSource::channels () const
        return af.GetFileDataFormat().NumberChannels();
 }
 
-framecnt_t
+samplecnt_t
 CAImportableSource::length () const
 {
        return af.GetNumberFrames();
 }
 
-framecnt_t
+samplecnt_t
 CAImportableSource::samplerate () const
 {
        CAStreamBasicDescription client_asbd;
@@ -126,7 +126,7 @@ CAImportableSource::samplerate () const
 }
 
 void
-CAImportableSource::seek (framepos_t pos)
+CAImportableSource::seek (samplepos_t pos)
 {
        try {
                af.Seek (pos);