Commit 61f23b0b authored by Stefan Westerfeld's avatar Stefan Westerfeld

Increase test sample size to be able to still test three watermarks.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 2613e51d
......@@ -1114,10 +1114,10 @@ gentest (const string& infile, const string& outfile)
const vector<float>& in_signal = wav_data.samples();
vector<float> out_signal;
/* 150 seconds of audio - this is approximately the minimal amount of audio data required
/* 160 seconds of audio - this is approximately the minimal amount of audio data required
* for storing three separate watermarks with a 128-bit encoded message */
const size_t offset = 0 * wav_data.n_channels() * int (wav_data.mix_freq());
const size_t n_samples = 150 * wav_data.n_channels() * int (wav_data.mix_freq());
const size_t n_samples = 160 * wav_data.n_channels() * int (wav_data.mix_freq());
if (in_signal.size() < (offset + n_samples))
{
fprintf (stderr, "audiowmark: input file %s too short\n", infile.c_str());
......
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