diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-09-18 12:39:17 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-09-18 12:39:17 -0400 |
commit | 30b087ab3d28f1585987fa3f6ae006562ae192e3 (patch) | |
tree | 620ae0250b5d77f90a18f8c2b83be61e4fe7b0b5 /libs/ardour/audioanalyser.cc | |
parent | cb956e3e480716a3efd280a5287bdd7bee1cedc5 (diff) |
globally change all use of "frame" to refer to audio into "sample".
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode
and video in order to keep the legible
Diffstat (limited to 'libs/ardour/audioanalyser.cc')
-rw-r--r-- | libs/ardour/audioanalyser.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/audioanalyser.cc b/libs/ardour/audioanalyser.cc index f90edd380a..e08171c4a4 100644 --- a/libs/ardour/audioanalyser.cc +++ b/libs/ardour/audioanalyser.cc @@ -107,8 +107,8 @@ AudioAnalyser::analyse (const string& path, Readable* src, uint32_t channel) int ret = -1; bool done = false; Sample* data = 0; - framecnt_t len = src->readable_length(); - framepos_t pos = 0; + samplecnt_t len = src->readable_length(); + samplepos_t pos = 0; float* bufs[1] = { 0 }; data = new Sample[bufsize]; @@ -116,11 +116,11 @@ AudioAnalyser::analyse (const string& path, Readable* src, uint32_t channel) while (!done) { - framecnt_t to_read; + samplecnt_t to_read; /* read from source */ - to_read = min ((len - pos), (framecnt_t) bufsize); + to_read = min ((len - pos), (samplecnt_t) bufsize); if (src->read (data, pos, to_read, channel) != to_read) { goto out; |