Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITABase
Commits
685e4b66
Commit
685e4b66
authored
Nov 03, 2020
by
Dipl.-Ing. Jonas Stienen
Browse files
Fixing warning
parent
bf84e6c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/ITABase/Math/PiecewisePolynomial.h
View file @
685e4b66
...
...
@@ -50,7 +50,7 @@ namespace ITABase
//! Returns the polynomial order
inline
int
Order
()
const
{
return
iOrder
;
};
//! Returns the number of intervals (pieces) between break points
inline
int
NumIntervals
()
const
{
return
vdBreakPoints
.
size
()
-
1
;
};
inline
int
NumIntervals
()
const
{
return
int
(
vdBreakPoints
.
size
()
-
1
)
;
};
//! Returns the number of coefficients for a single polynomial
inline
int
NumCoefficients
()
const
{
return
Order
()
+
1
;
};
//! Returns the break points defining the intervals for the polynomials
...
...
src/ITAInterpolation.cpp
View file @
685e4b66
...
...
@@ -47,6 +47,7 @@ bool CITASampleLinearInterpolation::Interpolate( const ITASampleBuffer* pInput,
{
// Calculate the position in the input buffer
float
x_input
=
(
i
+
1
)
*
r
+
iInputStartOffset
-
1
;
assert
(
x_input
>=
0.0
f
);
// Die Position des letzten Samples muss bereinstimmen mit dem letzten
// Eingabesample, dann wurde die Zeit erfolgreich eingeholt bzw.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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