feat: custom buffer size (#2370)

* feat: custom buffer size

* cache buffer params

---------

Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
My-Responsitories
2026-06-10 01:54:32 +00:00
committed by dom
parent 3b942eeeaf
commit ce09306025
10 changed files with 149 additions and 38 deletions

View File

@@ -429,6 +429,12 @@ abstract final class Pref {
defaultValue: PlatformUtils.isMobile ? 5 : 6,
);
static double get bufferSize =>
_setting.get(SettingBoxKey.bufferSize, defaultValue: 4.0);
static double get bufferSec =>
_setting.get(SettingBoxKey.bufferSec, defaultValue: 16.0);
static String get audioOutput => _setting.get(
SettingBoxKey.audioOutput,
defaultValue: AudioOutput.defaultValue,