mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
32 lines
648 B
Dart
32 lines
648 B
Dart
import 'package:spotube/models/playback/track_sources.dart';
|
|
|
|
enum SourceCodecs {
|
|
m4a._("M4a (Best for downloaded music)"),
|
|
weba._("WebA (Best for streamed music)\nDoesn't support audio metadata");
|
|
|
|
final String label;
|
|
const SourceCodecs._(this.label);
|
|
}
|
|
|
|
enum SourceQualities {
|
|
high(2),
|
|
medium(1),
|
|
low(0);
|
|
|
|
final int priority;
|
|
const SourceQualities(this.priority);
|
|
|
|
bool operator <(SourceQualities other) {
|
|
return priority < other.priority;
|
|
}
|
|
|
|
operator >(SourceQualities other) {
|
|
return priority > other.priority;
|
|
}
|
|
}
|
|
|
|
typedef SiblingType<T extends TrackSourceInfo> = ({
|
|
T info,
|
|
List<TrackSource>? source
|
|
});
|