mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-30 13:19:44 +02:00
feat(player): add AAudio hi-res, WavPack DSD and DAC volume
This commit is contained in:
1 parent
6decce0f8b
commit
d92bcf7716
32 files changed
+2118
-55
No files matched your search
@@ -567,7 +567,10 @@ class SettingsNotifier extends Notifier<AppSettings> {
|
||||
}
|
||||
|
||||
void setUsbDirect(bool enabled) {
|
||||
state = state.copyWith(usbDirect: enabled);
|
||||
state = state.copyWith(
|
||||
usbDirect: enabled,
|
||||
dapExclusive: enabled ? false : null,
|
||||
);
|
||||
_saveSettings();
|
||||
}
|
||||
|
||||
@@ -576,6 +579,19 @@ class SettingsNotifier extends Notifier<AppSettings> {
|
||||
_saveSettings();
|
||||
}
|
||||
|
||||
void setUsbAllowFixedVolume(bool enabled) {
|
||||
state = state.copyWith(usbAllowFixedVolume: enabled);
|
||||
_saveSettings();
|
||||
}
|
||||
|
||||
void setDapExclusive(bool enabled) {
|
||||
state = state.copyWith(
|
||||
dapExclusive: enabled,
|
||||
usbDirect: enabled ? false : null,
|
||||
);
|
||||
_saveSettings();
|
||||
}
|
||||
|
||||
void setEmbedMetadata(bool enabled) {
|
||||
state = state.copyWith(embedMetadata: enabled);
|
||||
_saveSettings();
|
||||
|
||||
Reference in new issue
Block a user