mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-06 07:29:42 +00:00
This commit introduces several new features and improvements to Spotube: - **DAB Music Integration:** Adds DAB Music as a new high-quality audio source, with support for searching, streaming, and downloading tracks. - **Playback Quality Display:** Adds a UI element to the player to display the actual audio quality of the currently playing stream. - **Performance Optimization:** Improves the startup and shutdown performance of the desktop application. - **Dependency Fix:** Resolves a dependency conflict with `dio_retry` by implementing a custom retry interceptor.
28 lines
490 B
Dart
28 lines
490 B
Dart
enum AudioQuality {
|
|
low,
|
|
high,
|
|
lossless;
|
|
|
|
String toDabMusicQuality() {
|
|
switch (this) {
|
|
case AudioQuality.low:
|
|
return '12';
|
|
case AudioQuality.high:
|
|
return '27';
|
|
case AudioQuality.lossless:
|
|
return '28';
|
|
}
|
|
}
|
|
|
|
String toShortString() {
|
|
switch (this) {
|
|
case AudioQuality.low:
|
|
return 'Low';
|
|
case AudioQuality.high:
|
|
return 'High';
|
|
case AudioQuality.lossless:
|
|
return 'Lossless';
|
|
}
|
|
}
|
|
}
|