shithub: opus-tools

Download patch

ref: 242694a4c8e03523c976ddb749988abb7749460c
parent: 6fb7ceadb81cacb9e62c33f06533d5a8a94105b3
author: Ralph Giles <giles@mozilla.com>
date: Fri Sep 14 08:35:53 EDT 2012

Add a comment describing what read_padder is doing.

--- a/src/audio-in.c
+++ b/src/audio-in.c
@@ -812,6 +812,11 @@
     float *lpc_out;
 } padder;
 
+/* Read audio data, appending padding to make up any gap
+ * between the available and requested number of samples
+ * with LPC-predicted data to minimize the pertubation of
+ * the valid data that falls in the same frame.
+ */
 static long read_padder(void *data, float *buffer, int samples) {
     padder *d = data;
     long in_samples = d->real_reader(d->real_readdata, buffer, samples);