Fix local track quality badge showing Hz instead of kHz
Convert sample_rate to kHz in localTrackToDisplay function so local tracks display correctly as 16bit/44.1kHz instead of 16bit/44100kHz
This commit is contained in:
1 parent
3297257a24
commit
688d798b9d
1 file changed
+1
-1
@@ -360,7 +360,7 @@
|
||||
durationSeconds: track.duration_secs,
|
||||
hires: (track.bit_depth && track.bit_depth >= 24) || track.sample_rate > 48000,
|
||||
bitDepth: track.bit_depth,
|
||||
samplingRate: track.sample_rate,
|
||||
samplingRate: track.sample_rate / 1000, // Convert Hz to kHz for display
|
||||
isLocal: true,
|
||||
localTrackId: track.id,
|
||||
artworkPath: track.artwork_path
|
||||
|
||||
Reference in new issue
Block a user