From 30b087ab3d28f1585987fa3f6ae006562ae192e3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 18 Sep 2017 12:39:17 -0400 Subject: 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 --- libs/audiographer/audiographer/general/sr_converter.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libs/audiographer/audiographer/general/sr_converter.h') 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; -- cgit v1.2.3