mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 08:38:18 +08:00
committed by
GitHub
parent
2879d0dc00
commit
25148509d2
@@ -321,9 +321,9 @@ List<SettingsModel> get videoSettings => [
|
||||
const SwitchModel(
|
||||
title: '优先使用 OpenSL ES 输出音频',
|
||||
leading: Icon(Icons.speaker_outlined),
|
||||
subtitle: '关闭则优先使用AudioTrack输出音频(此项即mpv的--ao),若遇系统音效丢失、无声、音画不同步等问题请尝试关闭。',
|
||||
subtitle: '关闭则优先使用AAudio输出音频(此项即mpv的--ao),若遇系统音效丢失、无声、音画不同步等问题请尝试打开。',
|
||||
setKey: SettingBoxKey.useOpenSLES,
|
||||
defaultVal: true,
|
||||
defaultVal: false,
|
||||
),
|
||||
const SwitchModel(
|
||||
title: '扩大缓冲区',
|
||||
|
||||
@@ -797,9 +797,7 @@ class PlPlayerController {
|
||||
await pp.setProperty("af", "scaletempo2=max-speed=8");
|
||||
if (Platform.isAndroid) {
|
||||
await pp.setProperty("volume-max", "100");
|
||||
String ao = Pref.useOpenSLES
|
||||
? "opensles,audiotrack"
|
||||
: "audiotrack,opensles";
|
||||
final ao = Pref.useOpenSLES ? "opensles,aaudio" : "aaudio,opensles";
|
||||
await pp.setProperty("ao", ao);
|
||||
}
|
||||
// video-sync=display-resample
|
||||
|
||||
@@ -783,7 +783,7 @@ abstract final class Pref {
|
||||
_setting.get(SettingBoxKey.expandBuffer, defaultValue: false);
|
||||
|
||||
static bool get useOpenSLES =>
|
||||
_setting.get(SettingBoxKey.useOpenSLES, defaultValue: true);
|
||||
_setting.get(SettingBoxKey.useOpenSLES, defaultValue: false);
|
||||
|
||||
static bool get enableAi =>
|
||||
_setting.get(SettingBoxKey.enableAi, defaultValue: false);
|
||||
|
||||
Reference in New Issue
Block a user