Pass bitDepth and samplingRate to playTrack in all handlers
This commit is contained in:
1 parent
bc7e13d756
commit
f9baecfbdb
1 file changed
+6
@@ -380,6 +380,8 @@
|
|||||||
artwork,
|
artwork,
|
||||||
duration: track.durationSeconds,
|
duration: track.durationSeconds,
|
||||||
quality,
|
quality,
|
||||||
|
bitDepth: track.bitDepth,
|
||||||
|
samplingRate: track.samplingRate,
|
||||||
albumId: selectedAlbum?.id,
|
albumId: selectedAlbum?.id,
|
||||||
artistId: track.artistId
|
artistId: track.artistId
|
||||||
});
|
});
|
||||||
@@ -742,6 +744,8 @@
|
|||||||
artwork: track.albumArt || '',
|
artwork: track.albumArt || '',
|
||||||
duration: track.durationSeconds,
|
duration: track.durationSeconds,
|
||||||
quality,
|
quality,
|
||||||
|
bitDepth: track.bitDepth,
|
||||||
|
samplingRate: track.samplingRate,
|
||||||
albumId: track.albumId,
|
albumId: track.albumId,
|
||||||
artistId: track.artistId
|
artistId: track.artistId
|
||||||
});
|
});
|
||||||
@@ -765,6 +769,8 @@
|
|||||||
artwork,
|
artwork,
|
||||||
duration: track.duration_secs,
|
duration: track.duration_secs,
|
||||||
quality,
|
quality,
|
||||||
|
bitDepth: track.bit_depth,
|
||||||
|
samplingRate: track.sample_rate ? Math.round(track.sample_rate / 1000) : undefined,
|
||||||
isLocal: true
|
isLocal: true
|
||||||
}, { isLocal: true });
|
}, { isLocal: true });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user