something for chris g. to try when he gets up before me
[ardour.git] / libs / ardour / caimportable.cc
index 229bfa8809a314d66e6ef9e162076d13dded6f20..f5a70a5f6ace9307f5ed95687588f4c9fc9da220 100644 (file)
@@ -1,6 +1,6 @@
-#include <ardour/caimportable.h>
+#include "ardour/caimportable.h"
 #include <sndfile.h>
-#include <pbd/error.h>
+#include "pbd/error.h"
 
 #include "i18n.h"
 
@@ -35,7 +35,7 @@ CAImportableSource::~CAImportableSource ()
 }
 
 nframes_t
-CAImportableSource::read (Sample* buffer, nframes_t nframes) 
+CAImportableSource::read (Sample* buffer, nframes_t nframes)
 {
        nframes_t nread = 0;
        AudioBufferList abl;
@@ -48,12 +48,12 @@ CAImportableSource::read (Sample* buffer, nframes_t nframes)
        per_channel = nframes / abl.mBuffers[0].mNumberChannels;
 
        while (nread < per_channel) {
-               
+
                UInt32 new_cnt = per_channel - nread;
-               
+
                abl.mBuffers[0].mDataByteSize = new_cnt * abl.mBuffers[0].mNumberChannels * sizeof(Sample);
                abl.mBuffers[0].mData = buffer + nread;
-                       
+
                try {
                        af.Read (new_cnt, &abl);
                } catch (CAXException& cax) {
@@ -73,18 +73,18 @@ CAImportableSource::read (Sample* buffer, nframes_t nframes)
        if (!at_end && nread < per_channel) {
                return 0;
        } else {
-               return nread *  abl.mBuffers[0].mNumberChannels;
+               return nread * abl.mBuffers[0].mNumberChannels;
        }
 }
 
 uint
-CAImportableSource::channels () const 
+CAImportableSource::channels () const
 {
        return af.GetFileDataFormat().NumberChannels();
 }
 
 nframes_t
-CAImportableSource::length () const 
+CAImportableSource::length () const
 {
        return af.GetNumberFrames();
 }
@@ -114,5 +114,5 @@ CAImportableSource::seek (nframes_t pos)
        }
 }
 
-       
+