Skip to content

Commit

Permalink
Merge pull request #1521 from ifeelsoalone/dev
Browse files Browse the repository at this point in the history
Add bit depth to song info if the audio codec is lossless
  • Loading branch information
prathameshmm02 committed Dec 30, 2023
2 parents 757a75a + 6c5d0e3 commit 4c3a429
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ fun getSongInfo(song: Song): String {
val string: StringBuilder = StringBuilder()
val uriFile = file.toUri()
string.append(getMimeType(uriFile.toString())).append("")
if (audioHeader.isLossless) {
string.append(audioHeader.bitsPerSample).append("-bit").append("")
}
string.append(audioHeader.bitRate).append(" kb/s").append("")
string.append(RetroUtil.frequencyCount(audioHeader.sampleRate.toInt()))
.append(" kHz")
Expand Down

0 comments on commit 4c3a429

Please sign in to comment.