configure audio buffer

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-12 10:04:51 +08:00
parent 5c3a89346c
commit 592e8d62ba
4 changed files with 25 additions and 24 deletions

View File

@@ -336,6 +336,7 @@ class AudioController extends GetxController
? (desktopVolume.value * 100).toString()
: Pref.playerVolume.toString(),
'volume-max': kMaxVolume.toString(),
...Pref.initBuffer(),
},
),
);

View File

@@ -768,7 +768,6 @@ class _AudioPageState extends State<AudioPage> {
Widget _buildProgressBar(ColorScheme colorScheme) {
final primary = colorScheme.primary;
final thumbGlowColor = primary.withAlpha(80);
final bufferedBarColor = primary.withValues(alpha: 0.4);
final baseBarColor = colorScheme.isDark
? const Color(0x33FFFFFF)
: const Color(0x33999999);
@@ -778,7 +777,7 @@ class _AudioPageState extends State<AudioPage> {
total: _controller.duration.value,
baseBarColor: baseBarColor,
progressBarColor: primary,
bufferedBarColor: bufferedBarColor,
bufferedBarColor: Colors.transparent,
thumbColor: primary,
thumbGlowColor: thumbGlowColor,
thumbGlowRadius: 0,