Update to audio quality setting clarity (Translators note i18n README.md)
- Changed audio quality setting to match MusicKit audio options (Low -> Standard) - Added descriptions for audio quality options - Audio quality now uses string for setting instead of direct bitrate option.
This commit is contained in:
parent
c86d66d142
commit
0131a1a70a
5 changed files with 27 additions and 29 deletions
|
@ -670,23 +670,13 @@ const app = new Vue({
|
|||
window.localStorage.setItem("currentQueue", JSON.stringify(app.mk.queue.items))
|
||||
};
|
||||
|
||||
// Load saved quality
|
||||
switch (app.cfg.audio.quality) {
|
||||
case "extreme":
|
||||
app.mk.bitrate = app.cfg.audio.quality = 990
|
||||
break;
|
||||
case "high":
|
||||
app.mk.bitrate = app.cfg.audio.quality = 256
|
||||
break;
|
||||
case "low":
|
||||
app.mk.bitrate = app.cfg.audio.quality = 64
|
||||
break;
|
||||
default:
|
||||
// app.mk.bitrate = app.cfg.audio.quality
|
||||
break;
|
||||
if (typeof MusicKit.PlaybackBitrate[app.cfg.audio.quality] !== "string") {
|
||||
app.mk.bitrate = MusicKit.PlaybackBitrate[app.cfg.audio.quality]
|
||||
} else {
|
||||
app.mk.bitrate = 256
|
||||
app.cfg.audio.quality = "HIGH"
|
||||
}
|
||||
|
||||
|
||||
// load last played track
|
||||
try {
|
||||
let lastItem = window.localStorage.getItem("currentTrack")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue