Skip to content

Commit

Permalink
Merge pull request #12418 from daschuer/samplerateinfo
Browse files Browse the repository at this point in the history
Display the samplerate in the track info dialog.
  • Loading branch information
JoergAtGithub authored Dec 9, 2023
2 parents 8e595a7 + 8279ccd commit 9983966
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 111 deletions.
7 changes: 7 additions & 0 deletions src/library/dlgtrackinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,13 @@ void DlgTrackInfo::updateTrackMetadataFields() {
txtReplayGain->setText(
mixxx::ReplayGain::ratioToString(
m_trackRecord.getMetadata().getTrackInfo().getReplayGain().getRatio()));

auto samplerate = m_trackRecord.getMetadata().getStreamInfo().getSignalInfo().getSampleRate();
if (samplerate.isValid()) {
txtSamplerate->setText(QString::number(samplerate.value()) + " Hz");
} else {
txtSamplerate->clear();
}
}

void DlgTrackInfo::updateSpinBpmFromBeats() {
Expand Down
Loading

0 comments on commit 9983966

Please sign in to comment.