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
063777a7
Commit
063777a7
authored
Jan 13, 2019
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase test sample size to be able to still test three watermarks.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
90f4333d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
audiowmark.cc
src/audiowmark.cc
+2
-2
No files found.
src/audiowmark.cc
View file @
063777a7
...
...
@@ -1114,10 +1114,10 @@ gentest (const string& infile, const string& outfile)
const
vector
<
float
>&
in_signal
=
wav_data
.
samples
();
vector
<
float
>
out_signal
;
/* 1
5
0 seconds of audio - this is approximately the minimal amount of audio data required
/* 1
6
0 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
=
1
5
0
*
wav_data
.
n_channels
()
*
int
(
wav_data
.
mix_freq
());
const
size_t
n_samples
=
1
6
0
*
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