Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:kill_it:JUCE
ChowMultiTool
nonstd-span.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nonstd-span.patch of Package ChowMultiTool
diff --git a/src/dsp/Waveshaper/SplineHelpers.h b/src/dsp/Waveshaper/SplineHelpers.h index e8ff813..60cdce3 100644 --- a/src/dsp/Waveshaper/SplineHelpers.h +++ b/src/dsp/Waveshaper/SplineHelpers.h @@ -40,12 +40,12 @@ struct SplineADAASection }; template <typename Spline> -Spline createSpline (std::span<const juce::Point<float>> points, - std::span<double> h, - std::span<double> alpha, - std::span<double> l, - std::span<double> mu, - std::span<double> z) +Spline createSpline (nonstd::span<const juce::Point<float>> points, + nonstd::span<double> h, + nonstd::span<double> alpha, + nonstd::span<double> l, + nonstd::span<double> mu, + nonstd::span<double> z) { const auto numDrawnPoints = points.size(); const auto n = size_t (numDrawnPoints - 1); diff --git a/src/dsp/Waveshaper/SplineWaveshaper.cpp b/src/dsp/Waveshaper/SplineWaveshaper.cpp index 0d35362..a277b47 100644 --- a/src/dsp/Waveshaper/SplineWaveshaper.cpp +++ b/src/dsp/Waveshaper/SplineWaveshaper.cpp @@ -113,11 +113,11 @@ VectorSpline createSpline (const VectorSplinePoints& points) std::vector<double> data {}; data.resize (2 * n + 3 * numDrawPoints); - std::span<double> h { data.data(), n }; - std::span<double> alpha { data.data() + n, n }; - std::span<double> l { data.data() + 2 * n, numDrawPoints }; - std::span<double> mu { data.data() + 2 * n + numDrawPoints, numDrawPoints }; - std::span<double> z { data.data() + 2 * n + 2 * numDrawPoints, numDrawPoints }; + nonstd::span<double> h { data.data(), n }; + nonstd::span<double> alpha { data.data() + n, n }; + nonstd::span<double> l { data.data() + 2 * n, numDrawPoints }; + nonstd::span<double> mu { data.data() + 2 * n + numDrawPoints, numDrawPoints }; + nonstd::span<double> z { data.data() + 2 * n + 2 * numDrawPoints, numDrawPoints }; return createSpline<VectorSpline> (copyPoints, h, alpha, l, mu, z); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor