webamp/packages
Eris Lund a56cbc54c5
High bitrate/samplerate is now correctly clipped (#1318)
* High bitrate/samplerate is now correctly clipped

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

* Moved globals to be local to their designated functions

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)

* Use padStart and slice to more properly format the data

Added comment by Justin Frankel on the meaning of H and C

* Display "0" while gathering bitrate and khz

* Remove logging of kbps in console

Co-authored-by: Jordan Eldredge <jordan@jordaneldredge.com>

* Assign ``finalKhz`` properly

* Make CI hopefully happy

---------

Co-authored-by: Jordan Eldredge <jordan@jordaneldredge.com>
2025-11-27 16:10:11 -08:00
..
ani-cursor Consolidate dependency versions 2025-07-09 13:25:05 -07:00
skin-database More stuff for the new layout 2025-11-07 21:38:21 -08:00
skin-museum-og Clean up outdated references to yarn 2025-11-03 15:39:26 -08:00
webamp High bitrate/samplerate is now correctly clipped (#1318) 2025-11-27 16:10:11 -08:00
webamp-docs Fix marquee dragging 2025-07-21 19:48:51 -07:00
webamp-modern Clean up outdated references to yarn 2025-11-03 15:39:26 -08:00
winamp-eqf Consolidate dependency versions 2025-07-09 13:25:05 -07:00