Abstract: There is provided a method that includes (a) inputting data to a buffer, wherein the inputting increases a quantity of the data in the buffer, (b) processing the data from the buffer, wherein the processing decreases a quantity of the data in the buffer, (c) determining an average quantity of the data in the buffer, and (d) converting a data stream for inputting to the buffer, from a first quantity of samples to a second quantity of samples, if the average quantity is outside of a target range.