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/audiographer/audiographer/general/sr_converter.h | |
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/audiographer/audiographer/general/sr_converter.h')
-rw-r--r-- | libs/audiographer/audiographer/general/sr_converter.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/audiographer/audiographer/general/sr_converter.h b/libs/audiographer/audiographer/general/sr_converter.h index a2e94d9bc0..8edc4b8c99 100644 --- a/libs/audiographer/audiographer/general/sr_converter.h +++ b/libs/audiographer/audiographer/general/sr_converter.h @@ -26,10 +26,10 @@ class LIBAUDIOGRAPHER_API SampleRateConverter ~SampleRateConverter (); /// Init converter \n Not RT safe - void init (framecnt_t in_rate, framecnt_t out_rate, int quality = 0); + void init (samplecnt_t in_rate, samplecnt_t out_rate, int quality = 0); - /// Returns max amount of frames that will be output \n RT safe - framecnt_t allocate_buffers (framecnt_t max_frames); + /// Returns max amount of samples that will be output \n RT safe + samplecnt_t allocate_buffers (samplecnt_t max_samples); /** Does sample rate conversion. * Note that outpt size may vary a lot. @@ -47,14 +47,14 @@ class LIBAUDIOGRAPHER_API SampleRateConverter bool active; uint32_t channels; - framecnt_t max_frames_in; + samplecnt_t max_samples_in; float * leftover_data; - framecnt_t leftover_frames; - framecnt_t max_leftover_frames; + samplecnt_t leftover_samples; + samplecnt_t max_leftover_samples; float * data_out; - framecnt_t data_out_size; + samplecnt_t data_out_size; SRC_DATA src_data; SRC_STATE* src_state; |