Add audio options to workaround compatability problems
This commit is contained in:
@@ -195,6 +195,45 @@ class AppSettings {
|
||||
return toBoolean(this.get('enableHi10p'), false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get or set 'Disable VBR audio encoding' state.
|
||||
* @param {boolean|undefined} val - Flag to enable 'Disable VBR audio encoding' or undefined.
|
||||
* @return {boolean} 'Disable VBR audio encoding' state.
|
||||
*/
|
||||
disableVbrAudio(val) {
|
||||
if (val !== undefined) {
|
||||
return this.set('disableVbrAudio', val.toString());
|
||||
}
|
||||
|
||||
return toBoolean(this.get('disableVbrAudio'), false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get or set 'Always remux FLAC audio files' state.
|
||||
* @param {boolean|undefined} val - Flag to enable 'Always remux FLAC audio files' or undefined.
|
||||
* @return {boolean} 'Always remux FLAC audio files' state.
|
||||
*/
|
||||
alwaysRemuxFlac(val) {
|
||||
if (val !== undefined) {
|
||||
return this.set('alwaysRemuxFlac', val.toString());
|
||||
}
|
||||
|
||||
return toBoolean(this.get('alwaysRemuxFlac'), false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get or set 'Always remux MP3 audio files' state.
|
||||
* @param {boolean|undefined} val - Flag to enable 'Always remux MP3 audio files' or undefined.
|
||||
* @return {boolean} 'Always remux MP3 audio files' state.
|
||||
*/
|
||||
alwaysRemuxMp3(val) {
|
||||
if (val !== undefined) {
|
||||
return this.set('alwaysRemuxMp3', val.toString());
|
||||
}
|
||||
|
||||
return toBoolean(this.get('alwaysRemuxMp3'), false);
|
||||
}
|
||||
|
||||
set(name, value, userId) {
|
||||
const currentValue = this.get(name, userId);
|
||||
localStorage.setItem(this.#getKey(name, userId), value);
|
||||
|
||||
Reference in New Issue
Block a user