Audacity 3.2.0
InterpolateAudio.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 InterpolateAudio.h
6
7 Dominic Mazzoni
8
9*******************************************************************//*******************************************************************/
24
25#ifndef __AUDACITY_INTERPOLATE_AUDIO__
26#define __AUDACITY_INTERPOLATE_AUDIO__
27
28#include <cstddef>
29
30// See top of file for a description of the algorithm. Interpolates
31// the samples from buffer[firstBad] through buffer[firstBad+numBad-1],
32// ignoring whatever value was there previously, and replacing them with
33// values determined from the surrounding audio. Works best if the bad
34// samples are in the middle, with several times as much data on either
35// side (6x the number of bad samples on either side is great). However,
36// it will work with less data, and with the bad samples on one end or
37// the other.
38void MATH_API InterpolateAudio(float *buffer, size_t len,
39 size_t firstBad, size_t numBad);
40
41#endif // __AUDACITY_INTERPOLATE_AUDIO__
void MATH_API InterpolateAudio(float *buffer, size_t len, size_t firstBad, size_t numBad)