Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
03a2d792
Commit
03a2d792
authored
May 20, 2020
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support fractional (double) seconds for seek perf test.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
8cdac076
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
testhls.cc
src/testhls.cc
+2
-2
No files found.
src/testhls.cc
View file @
03a2d792
...
@@ -430,7 +430,7 @@ test_seek (const string& in, const string& out, int pos, const string& bits)
...
@@ -430,7 +430,7 @@ test_seek (const string& in, const string& out, int pos, const string& bits)
}
}
int
int
seek_perf
(
int
sample_rate
,
int
seconds
)
seek_perf
(
int
sample_rate
,
double
seconds
)
{
{
vector
<
float
>
samples
(
100
);
vector
<
float
>
samples
(
100
);
WavData
wav_data
(
samples
,
2
,
sample_rate
,
16
);
WavData
wav_data
(
samples
,
2
,
sample_rate
,
16
);
...
@@ -468,7 +468,7 @@ main (int argc, char **argv)
...
@@ -468,7 +468,7 @@ main (int argc, char **argv)
}
}
else
if
(
argc
==
4
&&
strcmp
(
argv
[
1
],
"seek-perf"
)
==
0
)
else
if
(
argc
==
4
&&
strcmp
(
argv
[
1
],
"seek-perf"
)
==
0
)
{
{
return
seek_perf
(
atoi
(
argv
[
2
]),
ato
i
(
argv
[
3
]));
return
seek_perf
(
atoi
(
argv
[
2
]),
ato
f
(
argv
[
3
]));
}
}
else
else
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment