mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
Rename the Dart package, Android and iOS identifiers, Rust crates, native libraries, and Discord plugin. Preserve legacy data readers and compatibility aliases. Update localized branding, documentation, artwork, build tooling, and release artifacts. Route Telegram release notifications to @mornyeupdates and link @mornyecommunity.
22 lines
692 B
Dart
22 lines
692 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:mornye/models/equalizer_settings.dart';
|
|
|
|
/// Shared by every playback deck, including AutoMix's incoming/outgoing decks.
|
|
final playbackEqualizer = ValueNotifier<EqualizerSettings>(
|
|
const EqualizerSettings(),
|
|
);
|
|
|
|
/// A native error is surfaced in the editor rather than claiming EQ is active.
|
|
final playbackEqualizerError = ValueNotifier<String?>(null);
|
|
|
|
final _errors = <String, String>{};
|
|
|
|
void reportEqualizerError(String playerId, String? error) {
|
|
if (error == null) {
|
|
_errors.remove(playerId);
|
|
} else {
|
|
_errors[playerId] = error;
|
|
}
|
|
playbackEqualizerError.value = _errors.isEmpty ? null : _errors.values.first;
|
|
}
|