mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
feat: added optional information about audio quality for horizontal track adapters
This commit is contained in:
parent
733102a8a4
commit
7488346804
9 changed files with 44 additions and 6 deletions
|
|
@ -156,6 +156,17 @@ public class MusicUtil {
|
|||
return getReadableDurationString(lenght, millis);
|
||||
}
|
||||
|
||||
public static String getReadableAudioQualityString(Child child) {
|
||||
if (!Preferences.showAudioQuality()) return "";
|
||||
|
||||
return "•" +
|
||||
" " +
|
||||
child.getBitrate() +
|
||||
"kbps" +
|
||||
" " +
|
||||
child.getSuffix();
|
||||
}
|
||||
|
||||
public static String getReadablePodcastDurationString(long duration) {
|
||||
long minutes = duration / 60;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue