Indentation only
This commit is contained in:
@@ -318,8 +318,7 @@ R2Stretcher::setMaxProcessSize(size_t samples)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
R2Stretcher::setKeyFrameMap(const std::map<size_t, size_t> &
|
R2Stretcher::setKeyFrameMap(const std::map<size_t, size_t> &mapping)
|
||||||
mapping)
|
|
||||||
{
|
{
|
||||||
if (m_realtime) {
|
if (m_realtime) {
|
||||||
m_log.log(0, "R2Stretcher::setKeyFrameMap: Cannot specify key frame map in RT mode");
|
m_log.log(0, "R2Stretcher::setKeyFrameMap: Cannot specify key frame map in RT mode");
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ R2Stretcher::ChannelData::construct(const std::set<size_t> &sizes,
|
|||||||
|
|
||||||
void
|
void
|
||||||
R2Stretcher::ChannelData::setSizes(size_t windowSize,
|
R2Stretcher::ChannelData::setSizes(size_t windowSize,
|
||||||
size_t fftSize)
|
size_t fftSize)
|
||||||
{
|
{
|
||||||
size_t maxSize = 2 * std::max(windowSize, fftSize);
|
size_t maxSize = 2 * std::max(windowSize, fftSize);
|
||||||
size_t realSize = maxSize / 2 + 1;
|
size_t realSize = maxSize / 2 + 1;
|
||||||
|
|||||||
@@ -128,10 +128,10 @@ R2Stretcher::resampleBeforeStretching() const
|
|||||||
|
|
||||||
void
|
void
|
||||||
R2Stretcher::prepareChannelMS(size_t c,
|
R2Stretcher::prepareChannelMS(size_t c,
|
||||||
const float *const *inputs,
|
const float *const *inputs,
|
||||||
size_t offset,
|
size_t offset,
|
||||||
size_t samples,
|
size_t samples,
|
||||||
float *prepared)
|
float *prepared)
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < samples; ++i) {
|
for (size_t i = 0; i < samples; ++i) {
|
||||||
float left = inputs[0][i + offset];
|
float left = inputs[0][i + offset];
|
||||||
@@ -148,10 +148,10 @@ R2Stretcher::prepareChannelMS(size_t c,
|
|||||||
|
|
||||||
size_t
|
size_t
|
||||||
R2Stretcher::consumeChannel(size_t c,
|
R2Stretcher::consumeChannel(size_t c,
|
||||||
const float *const *inputs,
|
const float *const *inputs,
|
||||||
size_t offset,
|
size_t offset,
|
||||||
size_t samples,
|
size_t samples,
|
||||||
bool final)
|
bool final)
|
||||||
{
|
{
|
||||||
Profiler profiler("R2Stretcher::consumeChannel");
|
Profiler profiler("R2Stretcher::consumeChannel");
|
||||||
|
|
||||||
@@ -405,9 +405,9 @@ R2Stretcher::testInbufReadSpace(size_t c)
|
|||||||
|
|
||||||
bool
|
bool
|
||||||
R2Stretcher::processChunkForChannel(size_t c,
|
R2Stretcher::processChunkForChannel(size_t c,
|
||||||
size_t phaseIncrement,
|
size_t phaseIncrement,
|
||||||
size_t shiftIncrement,
|
size_t shiftIncrement,
|
||||||
bool phaseReset)
|
bool phaseReset)
|
||||||
{
|
{
|
||||||
Profiler profiler("R2Stretcher::processChunkForChannel");
|
Profiler profiler("R2Stretcher::processChunkForChannel");
|
||||||
|
|
||||||
@@ -499,8 +499,8 @@ R2Stretcher::processChunkForChannel(size_t c,
|
|||||||
|
|
||||||
void
|
void
|
||||||
R2Stretcher::calculateIncrements(size_t &phaseIncrementRtn,
|
R2Stretcher::calculateIncrements(size_t &phaseIncrementRtn,
|
||||||
size_t &shiftIncrementRtn,
|
size_t &shiftIncrementRtn,
|
||||||
bool &phaseReset)
|
bool &phaseReset)
|
||||||
{
|
{
|
||||||
Profiler profiler("R2Stretcher::calculateIncrements");
|
Profiler profiler("R2Stretcher::calculateIncrements");
|
||||||
|
|
||||||
@@ -629,9 +629,9 @@ R2Stretcher::calculateIncrements(size_t &phaseIncrementRtn,
|
|||||||
|
|
||||||
bool
|
bool
|
||||||
R2Stretcher::getIncrements(size_t channel,
|
R2Stretcher::getIncrements(size_t channel,
|
||||||
size_t &phaseIncrementRtn,
|
size_t &phaseIncrementRtn,
|
||||||
size_t &shiftIncrementRtn,
|
size_t &shiftIncrementRtn,
|
||||||
bool &phaseReset)
|
bool &phaseReset)
|
||||||
{
|
{
|
||||||
Profiler profiler("R2Stretcher::getIncrements");
|
Profiler profiler("R2Stretcher::getIncrements");
|
||||||
|
|
||||||
@@ -723,8 +723,8 @@ R2Stretcher::analyseChunk(size_t channel)
|
|||||||
|
|
||||||
void
|
void
|
||||||
R2Stretcher::modifyChunk(size_t channel,
|
R2Stretcher::modifyChunk(size_t channel,
|
||||||
size_t outputIncrement,
|
size_t outputIncrement,
|
||||||
bool phaseReset)
|
bool phaseReset)
|
||||||
{
|
{
|
||||||
Profiler profiler("R2Stretcher::modifyChunk");
|
Profiler profiler("R2Stretcher::modifyChunk");
|
||||||
|
|
||||||
@@ -923,7 +923,7 @@ R2Stretcher::formantShiftChunk(size_t channel)
|
|||||||
|
|
||||||
void
|
void
|
||||||
R2Stretcher::synthesiseChunk(size_t channel,
|
R2Stretcher::synthesiseChunk(size_t channel,
|
||||||
size_t shiftIncrement)
|
size_t shiftIncrement)
|
||||||
{
|
{
|
||||||
Profiler profiler("R2Stretcher::synthesiseChunk");
|
Profiler profiler("R2Stretcher::synthesiseChunk");
|
||||||
|
|
||||||
@@ -1085,7 +1085,9 @@ R2Stretcher::writeChunk(size_t channel, size_t shiftIncrement, bool last)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
R2Stretcher::writeOutput(RingBuffer<float> &to, float *from, size_t qty, size_t &outCount, size_t theoreticalOut)
|
R2Stretcher::writeOutput(RingBuffer<float> &to,
|
||||||
|
float *from, size_t qty,
|
||||||
|
size_t &outCount, size_t theoreticalOut)
|
||||||
{
|
{
|
||||||
Profiler profiler("R2Stretcher::writeOutput");
|
Profiler profiler("R2Stretcher::writeOutput");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user