fix(quality-badge): distinguish lossy formats from CD quality
MP3 and other lossy formats (aac, m4a, ogg, opus, wma) at CD-like sample rates (44.1-48kHz) were incorrectly shown as "CD" quality because bitDepth check came before format check. Changes: - Add format prop to QualityBadge, NowPlayingBar, ExpandedPlayer - Add format field to PlayingTrack interface - Check for lossy formats BEFORE checking bitDepth/samplingRate - New 'mp3-cd' tier for lossy formats at CD sample rates - Uses /mp3-cd.svg icon for this tier
This commit is contained in:
1 parent
5e5f85a86f
commit
fa8af9b1d9
5 files changed
+36
-5
No files matched your search
@@ -28,6 +28,7 @@ export interface PlayingTrack {
|
||||
quality: string;
|
||||
bitDepth?: number;
|
||||
samplingRate?: number;
|
||||
format?: string;
|
||||
isLocal?: boolean;
|
||||
// Optional IDs for recommendation tracking
|
||||
albumId?: string;
|
||||
|
||||
Reference in new issue
Block a user