Skip to content

Commit

Permalink
Update analyzersilence.cpp
Browse files Browse the repository at this point in the history
Yet more code format issues.
  • Loading branch information
davidlmorris committed Oct 17, 2024
1 parent 8248b98 commit e8e9854
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/analyzer/analyzersilence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,13 @@ SINT AnalyzerSilence::findLastFadeInChunk(std::span<const CSAMPLE> samples) {
// Find the number of last sound sample where the sound is above kFadeOutThreshold (-12db)
SINT AnalyzerSilence::findFirstFadeOutChunk(std::span<const CSAMPLE> samples) {
// Note we are searching backwards from the end here.
SINT ret = std::distance(
find_first_above_threshold(samples.rbegin(), samples.rend(), kFadeOutThreshold),
SINT ret = std::distance(find_first_above_threshold(samples.rbegin(),
samples.rend(),
kFadeOutThreshold),
samples.rend()) -
1;
// if we don't find it (track only partially loaded - and/or pathological) give us the track size.
// if we don't find it (track only partially loaded - and/or pathological)
// give us the track size.
if (ret == -1) {
ret = samples.size();
}
Expand Down

0 comments on commit e8e9854

Please sign in to comment.