globally change all use of "frame" to refer to audio into "sample".
[ardour.git] / libs / ardour / ebur128_analysis.cc
index a329f877c1dd601ff96a4b2638e4d959319ed72b..1caf7a71c2e2cf7afe3bbb56a829c4c74d81a3db 100644 (file)
@@ -46,8 +46,8 @@ EBUr128Analysis::run (Readable* src)
 {
        int ret = -1;
        bool done = false;
-       framecnt_t len = src->readable_length();
-       framepos_t pos = 0;
+       samplecnt_t len = src->readable_length();
+       samplepos_t pos = 0;
        uint32_t n_channels = src->n_channels();
        Plugin::FeatureSet features;
 
@@ -62,8 +62,8 @@ EBUr128Analysis::run (Readable* src)
        }
 
        while (!done) {
-               framecnt_t to_read;
-               to_read = min ((len - pos), (framecnt_t) bufsize);
+               samplecnt_t to_read;
+               to_read = min ((len - pos), (samplecnt_t) bufsize);
 
                for (uint32_t c = 0; c < n_channels; ++c) {
                        if (src->read (bufs[c], pos, to_read, c) != to_read) {