Skip to content

Conversation

@0x5066
Copy link
Contributor

@0x5066 0x5066 commented Oct 28, 2025

This makes the kbps and kHz displays in the main window correctly emulate what Winamp does with high bitrates/samplerates.

Based on research and observation of Winamp, as well as code from the DeClassified skin, which emulates this behavior correctly.

This makes the ``kbps`` and ``kHz`` displays in the main window correctly emulate what Winamp does with high bitrates/samplerates.
@netlify
Copy link

netlify bot commented Oct 28, 2025

Deploy Preview for tourmaline-kringle-c98715 canceled.

Name Link
🔨 Latest commit 60e4b00
🔍 Latest deploy log https://app.netlify.com/projects/tourmaline-kringle-c98715/deploys/69130d315432c60008e868be

Division is no longer performed in each if condition
Default to displaying "0" for the kbps and khz fields (doesn't seem to trigger, though)
Added comment by Justin Frankel on the meaning of H and C
if (bitrateNum <= 10) finalKbps = String(bitrateNum).padStart(3, " ");
// from Justin Frankel directly:
// IIRC H was for "hundred" and "C" was thousand,
// though why it was for thousand I have no idea lol, maybe it was a mistake...
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants