Commit 03a2d792 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Support fractional (double) seconds for seek perf test.

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 8cdac076
......@@ -430,7 +430,7 @@ test_seek (const string& in, const string& out, int pos, const string& bits)
}
int
seek_perf (int sample_rate, int seconds)
seek_perf (int sample_rate, double seconds)
{
vector<float> samples (100);
WavData wav_data (samples, 2, sample_rate, 16);
......@@ -468,7 +468,7 @@ main (int argc, char **argv)
}
else if (argc == 4 && strcmp (argv[1], "seek-perf") == 0)
{
return seek_perf (atoi (argv[2]), atoi (argv[3]));
return seek_perf (atoi (argv[2]), atof (argv[3]));
}
else
{
......
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