mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-17 15:45:21 +01:00
add: bitsPerSample to SongInfo if audio codec is lossless
This commit is contained in:
parent
757a75a9dc
commit
6c5d0e3008
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue