From 4aea160ec3c0f09bdd375483c9952a37a2b404c7 Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Thu, 4 Aug 2022 16:58:00 +0100 Subject: [PATCH] Indentation only --- src/faster/R2Stretcher.cpp | 3 +-- src/faster/StretcherChannelData.cpp | 2 +- src/faster/StretcherProcess.cpp | 42 +++++++++++++++-------------- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/src/faster/R2Stretcher.cpp b/src/faster/R2Stretcher.cpp index 4033c11..b23c515 100644 --- a/src/faster/R2Stretcher.cpp +++ b/src/faster/R2Stretcher.cpp @@ -318,8 +318,7 @@ R2Stretcher::setMaxProcessSize(size_t samples) } void -R2Stretcher::setKeyFrameMap(const std::map & - mapping) +R2Stretcher::setKeyFrameMap(const std::map &mapping) { if (m_realtime) { m_log.log(0, "R2Stretcher::setKeyFrameMap: Cannot specify key frame map in RT mode"); diff --git a/src/faster/StretcherChannelData.cpp b/src/faster/StretcherChannelData.cpp index 81c47d2..376b76c 100644 --- a/src/faster/StretcherChannelData.cpp +++ b/src/faster/StretcherChannelData.cpp @@ -111,7 +111,7 @@ R2Stretcher::ChannelData::construct(const std::set &sizes, void R2Stretcher::ChannelData::setSizes(size_t windowSize, - size_t fftSize) + size_t fftSize) { size_t maxSize = 2 * std::max(windowSize, fftSize); size_t realSize = maxSize / 2 + 1; diff --git a/src/faster/StretcherProcess.cpp b/src/faster/StretcherProcess.cpp index 7044c7a..5074a93 100644 --- a/src/faster/StretcherProcess.cpp +++ b/src/faster/StretcherProcess.cpp @@ -128,10 +128,10 @@ R2Stretcher::resampleBeforeStretching() const void R2Stretcher::prepareChannelMS(size_t c, - const float *const *inputs, - size_t offset, - size_t samples, - float *prepared) + const float *const *inputs, + size_t offset, + size_t samples, + float *prepared) { for (size_t i = 0; i < samples; ++i) { float left = inputs[0][i + offset]; @@ -148,10 +148,10 @@ R2Stretcher::prepareChannelMS(size_t c, size_t R2Stretcher::consumeChannel(size_t c, - const float *const *inputs, - size_t offset, - size_t samples, - bool final) + const float *const *inputs, + size_t offset, + size_t samples, + bool final) { Profiler profiler("R2Stretcher::consumeChannel"); @@ -405,9 +405,9 @@ R2Stretcher::testInbufReadSpace(size_t c) bool R2Stretcher::processChunkForChannel(size_t c, - size_t phaseIncrement, - size_t shiftIncrement, - bool phaseReset) + size_t phaseIncrement, + size_t shiftIncrement, + bool phaseReset) { Profiler profiler("R2Stretcher::processChunkForChannel"); @@ -499,8 +499,8 @@ R2Stretcher::processChunkForChannel(size_t c, void R2Stretcher::calculateIncrements(size_t &phaseIncrementRtn, - size_t &shiftIncrementRtn, - bool &phaseReset) + size_t &shiftIncrementRtn, + bool &phaseReset) { Profiler profiler("R2Stretcher::calculateIncrements"); @@ -629,9 +629,9 @@ R2Stretcher::calculateIncrements(size_t &phaseIncrementRtn, bool R2Stretcher::getIncrements(size_t channel, - size_t &phaseIncrementRtn, - size_t &shiftIncrementRtn, - bool &phaseReset) + size_t &phaseIncrementRtn, + size_t &shiftIncrementRtn, + bool &phaseReset) { Profiler profiler("R2Stretcher::getIncrements"); @@ -723,8 +723,8 @@ R2Stretcher::analyseChunk(size_t channel) void R2Stretcher::modifyChunk(size_t channel, - size_t outputIncrement, - bool phaseReset) + size_t outputIncrement, + bool phaseReset) { Profiler profiler("R2Stretcher::modifyChunk"); @@ -923,7 +923,7 @@ R2Stretcher::formantShiftChunk(size_t channel) void R2Stretcher::synthesiseChunk(size_t channel, - size_t shiftIncrement) + size_t shiftIncrement) { Profiler profiler("R2Stretcher::synthesiseChunk"); @@ -1085,7 +1085,9 @@ R2Stretcher::writeChunk(size_t channel, size_t shiftIncrement, bool last) } void -R2Stretcher::writeOutput(RingBuffer &to, float *from, size_t qty, size_t &outCount, size_t theoreticalOut) +R2Stretcher::writeOutput(RingBuffer &to, + float *from, size_t qty, + size_t &outCount, size_t theoreticalOut) { Profiler profiler("R2Stretcher::writeOutput");