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
65e9c81d
Commit
65e9c81d
authored
Feb 01, 2019
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add resampler irate != orate check.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
db1d989e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
audiowmark.cc
src/audiowmark.cc
+4
-2
No files found.
src/audiowmark.cc
View file @
65e9c81d
...
@@ -527,8 +527,10 @@ process_resampler (R& resampler, const vector<float>& in, vector<float>& out)
...
@@ -527,8 +527,10 @@ process_resampler (R& resampler, const vector<float>& in, vector<float>& out)
WavData
WavData
resample
(
const
WavData
&
wav_data
,
int
rate
)
resample
(
const
WavData
&
wav_data
,
int
rate
)
{
{
if
(
rate
==
wav_data
.
sample_rate
())
/* in our application, resampling should only be called if it is necessary
return
wav_data
;
* since using the resampler with input rate == output rate would be slow
*/
assert
(
rate
!=
wav_data
.
sample_rate
());
const
int
n_channels
=
wav_data
.
n_channels
();
const
int
n_channels
=
wav_data
.
n_channels
();
const
int
hlen
=
16
;
const
int
hlen
=
16
;
...
...
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