Skip to content

Commit

Permalink
Format cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dpw13 committed Feb 4, 2024
1 parent e81fe7f commit d1f46d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/libprojectM/Audio/WaveformAligner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ WaveformAligner::WaveformAligner()
}
}

void WaveformAligner::ResampleOctaves(std::vector<WaveformBuffer> &dstWaveformMips, WaveformBuffer& newWaveform)
void WaveformAligner::ResampleOctaves(std::vector<WaveformBuffer>& dstWaveformMips, WaveformBuffer& newWaveform)
{
// Octave 0 is a direct copy of the new waveform
std::copy(newWaveform.begin(), newWaveform.end(), dstWaveformMips[0].begin());
Expand Down Expand Up @@ -119,7 +119,7 @@ void WaveformAligner::GenerateWeights()
}
}

int WaveformAligner::CalculateOffset(std::vector<WaveformBuffer> &newWaveformMips)
int WaveformAligner::CalculateOffset(std::vector<WaveformBuffer>& newWaveformMips)
{
/*
* Note that we use signed variables here because we need to check for negatives even
Expand Down
8 changes: 4 additions & 4 deletions src/libprojectM/Audio/WaveformAligner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class WaveformAligner

protected:
void GenerateWeights();
int CalculateOffset(std::vector<WaveformBuffer> &newWaveformMips);
void ResampleOctaves(std::vector<WaveformBuffer> &dstWaveformMips, WaveformBuffer& newWaveform);
int CalculateOffset(std::vector<WaveformBuffer>& newWaveformMips);
void ResampleOctaves(std::vector<WaveformBuffer>& dstWaveformMips, WaveformBuffer& newWaveform);

bool m_alignWaveReady{false}; //!< Alignment needs special treatment for the first buffer fill.

Expand All @@ -48,8 +48,8 @@ class WaveformAligner
std::vector<uint32_t> m_octaveSampleSpacing; //!< Space between samples per octave.

std::vector<WaveformBuffer> m_oldWaveformMips; //!< Mip levels of the previous frame's waveform.
std::vector<uint32_t> m_firstNonzeroWeights; //!< First non-zero weight sample index for each octave.
std::vector<uint32_t> m_lastNonzeroWeights; //!< Last non-zero weight sample index for each octave.
std::vector<uint32_t> m_firstNonzeroWeights; //!< First non-zero weight sample index for each octave.
std::vector<uint32_t> m_lastNonzeroWeights; //!< Last non-zero weight sample index for each octave.
};

} // namespace Audio
Expand Down

0 comments on commit d1f46d1

Please sign in to comment.