aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2020-10-20 13:59:38 +0100
committerPaul Adenot <[email protected]>2020-10-20 14:23:23 +0100
commit1d66483ad2b93f0e00e175f9480c771af90003a7 (patch)
tree2bb9344e0ded9bc6c4cd9c81ead6490237a29475
parent2c385dc16d44922d6fdd816ed19211f1bc0eafe3 (diff)
downloadcubeb-1d66483ad2b93f0e00e175f9480c771af90003a7.tar.gz
cubeb-1d66483ad2b93f0e00e175f9480c771af90003a7.zip
Remove add_latency from resampling code, it's not used
-rw-r--r--src/cubeb_resampler_internal.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/cubeb_resampler_internal.h b/src/cubeb_resampler_internal.h
index 876d09b..ed56857 100644
--- a/src/cubeb_resampler_internal.h
+++ b/src/cubeb_resampler_internal.h
@@ -213,17 +213,6 @@ public:
speex_resampler_destroy(speex_resampler);
}
- /** Sometimes, it is necessary to add latency on one way of a two-way
- * resampler so that the stream are synchronized. This must be called only on
- * a fresh resampler, otherwise, silent samples will be inserted in the
- * stream.
- * @param frames the number of frames of latency to add. */
- void add_latency(size_t frames)
- {
- additional_latency += frames;
- resampling_in_buffer.push_silence(frames_to_samples(frames));
- }
-
/* Fill the resampler with `input_frame_count` frames. */
void input(T * input_buffer, size_t input_frame_count)
{
@@ -414,13 +403,6 @@ public:
/* Fill the delay line with some silent frames to add latency. */
delay_input_buffer.push_silence(frames * channels);
}
- /* Add some latency to the delay line.
- * @param frames the number of frames of latency to add. */
- void add_latency(size_t frames)
- {
- length += frames;
- delay_input_buffer.push_silence(frames_to_samples(frames));
- }
/** Push some frames into the delay line.
* @parameter buffer the frames to push.
* @parameter frame_count the number of frames in #buffer. */