mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-17 23:55:21 +01:00
Merge pull request #1521 from ifeelsoalone/dev
Add bit depth to song info if the audio codec is lossless
This commit is contained in:
commit
4c3a429878
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