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
411a7fb6
Commit
411a7fb6
authored
Jan 12, 2019
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump test set size to 150 seconds.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
548b76d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
audiowmark.cc
src/audiowmark.cc
+4
-4
No files found.
src/audiowmark.cc
View file @
411a7fb6
...
...
@@ -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
=
3
0
*
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
());
...
...
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