Commit bf09b510 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Remove unused code.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent ca962814
...@@ -99,24 +99,6 @@ resample (const WavData& wav_data, int rate) ...@@ -99,24 +99,6 @@ resample (const WavData& wav_data, int rate)
exit (1); exit (1);
} }
static WavData
resample_ratio (const WavData& wav_data, double ratio, int new_rate)
{
const int hlen = 16;
const vector<float>& in = wav_data.samples();
vector<float> out (lrint (in.size() / wav_data.n_channels() * ratio) * wav_data.n_channels());
VResampler vresampler;
if (vresampler.setup (ratio, wav_data.n_channels(), hlen) != 0)
{
error ("audiowmark: failed to setup vresampler with ratio=%f\n", ratio);
exit (1);
}
process_resampler (vresampler, in, out);
return WavData (out, wav_data.n_channels(), new_rate, wav_data.bit_depth());
}
static vector<float> static vector<float>
normalize_soft_bits (const vector<float>& soft_bits) normalize_soft_bits (const vector<float>& soft_bits)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment