Skip to content

Commit

Permalink
imp - Show volume as percentage
Browse files Browse the repository at this point in the history
---

We need to show the volume as percentage in the CLI to make it more human.

---

Type: imp
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Sep 19, 2024
1 parent 65c60ae commit 7cd47aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BassBoom.Cli/CliBase/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static void PlayerLoop()
string boostIndicator = Common.volBoost ? new Color(ConsoleColors.Red).VTSequenceForeground : "";
string indicator =
$"┤ Seek: {PlayerControls.seekRate:0.00} | " +
$"{boostIndicator}Volume: {Common.volume:0.00}{ColorTools.RenderResetForeground()}";
$"{boostIndicator}Volume: {Common.volume * 100:0}%{ColorTools.RenderResetForeground()}";
string lyric = Common.CurrentCachedInfo.LyricInstance is not null ? Common.CurrentCachedInfo.LyricInstance.GetLastLineCurrent(BassBoomCli.basolia) : "";
string finalLyric = string.IsNullOrWhiteSpace(lyric) ? "..." : lyric;
buffer.Append(
Expand Down
2 changes: 1 addition & 1 deletion BassBoom.Cli/CliBase/Radio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static void RadioLoop()
return "";
var buffer = new StringBuilder();
string boostIndicator = Common.volBoost ? new Color(ConsoleColors.Red).VTSequenceForeground : "";
string indicator = $"{boostIndicator}Volume: {Common.volume:0.00}{ColorTools.RenderResetForeground()}";
string indicator = $"{boostIndicator}Volume: {Common.volume * 100:0}%{ColorTools.RenderResetForeground()}";
var disco = PlaybackTools.IsPlaying(BassBoomCli.basolia) && Common.enableDisco ? new Color($"hsl:{hue};50;50") : BassBoomCli.white;
if (PlaybackTools.IsPlaying(BassBoomCli.basolia))
{
Expand Down

0 comments on commit 7cd47aa

Please sign in to comment.