Commit 411a7fb6 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Bump test set size to 150 seconds.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 548b76d4
......@@ -1097,10 +1097,10 @@ gentest (const string& infile, const string& outfile)
const vector<float>& in_signal = wav_data.samples();
vector<float> out_signal;
/* 42 seconds of audio - starting at 30 seconds of the original track */
/* this is approximately the minimal amount of audio data required for storing a 128-bit encoded message */
const size_t offset = 30 * wav_data.n_channels() * int (wav_data.mix_freq());
const size_t n_samples = 42 * wav_data.n_channels() * int (wav_data.mix_freq());
/* 150 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());
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