Skip to content

Commit

Permalink
Missing case in cueinfo.cpp
Browse files Browse the repository at this point in the history
More Code tidy
Missing case in cueinfo.cpp
  • Loading branch information
davidlmorris committed Oct 10, 2024
1 parent 134d99b commit 1ddbc87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/analyzer/analyzersilence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace {
// verify that the track samples have not changed since the last analysis
constexpr CSAMPLE kSilenceThreshold = 0.001f; // -60 dB
// TODO: Change the above line to:
//constexpr CSAMPLE kSilenceThreshold = db2ratio(-60.0f);
// constexpr CSAMPLE kSilenceThreshold = db2ratio(-60.0f);

// These are in dBV expressed as Volts RMS (which seems, sensibly,
// the way Mixxx works).
Expand All @@ -31,7 +31,6 @@ constexpr CSAMPLE kSilenceThreshold = 0.001f; // -60 dB
constexpr CSAMPLE kFadeInThreshold = N_27DB_FADEOUT_THRESHOLD;
constexpr CSAMPLE kFadeOutThreshold = N_12DB_FADEOUT_THRESHOLD;


bool shouldAnalyze(TrackPointer pTrack) {
CuePointer pIntroCue = pTrack->findCueByType(mixxx::CueType::Intro);
CuePointer pOutroCue = pTrack->findCueByType(mixxx::CueType::Outro);
Expand Down
6 changes: 6 additions & 0 deletions src/track/cueinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ QDebug operator<<(QDebug debug, const CueType& cueType) {
case CueType::N60dBSound:
debug << "CueType::N60dBSound";
break;
case CueType::FadeIn:
debug << "CueType::FadeIn";
break;
case CueType::FadeOut:
debug << "CueType::FadeOut";
break;
}
return debug;
}
Expand Down

0 comments on commit 1ddbc87

Please sign in to comment.