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
e2c2c6ea
Commit
e2c2c6ea
authored
Aug 15, 2022
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify crash even more.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
035b27f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
wmspeed.cc
src/wmspeed.cc
+1
-11
No files found.
src/wmspeed.cc
View file @
e2c2c6ea
...
...
@@ -207,19 +207,9 @@ public:
void
SpeedSync
::
prepare_mags
(
const
SpeedScanParams
&
scan_params
)
{
WavData
in_data_trc
(
truncate
(
in_data
,
scan_params
.
seconds
/
center
));
// we downsample the audio by factor 2 to improve performance
WavData
in_data_sub
(
resample_ratio
(
in_data_trc
,
center
/
2
,
Params
::
mark_sample_rate
/
2
));
const
int
sub_frame_size
=
Params
::
frame_size
/
2
;
const
int
sub_sync_search_step
=
Params
::
sync_search_step
/
2
;
/* set mag matrix size */
int
n_sync_rows
=
0
;
int
n_sync_rows
=
4303
;
int
n_sync_cols
=
sync_bits
.
size
();
for
(
size_t
ppos
=
0
;
ppos
+
sub_frame_size
<
in_data_sub
.
n_frames
();
ppos
+=
sub_sync_search_step
)
n_sync_rows
++
;
sync_matrix
.
resize
(
n_sync_rows
,
n_sync_cols
);
for
(
int
row
=
0
;
row
<
n_sync_rows
;
row
++
)
...
...
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