mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
opt: ao (#1811)
* opt: ao * multi select --------- Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
038f03a4e7
commit
bfb2becb2d
@@ -796,8 +796,7 @@ class PlPlayerController {
|
||||
await pp.setProperty("af", "scaletempo2=max-speed=8");
|
||||
if (Platform.isAndroid) {
|
||||
await pp.setProperty("volume-max", "100");
|
||||
final ao = Pref.useOpenSLES ? "opensles,aaudio" : "aaudio,opensles";
|
||||
await pp.setProperty("ao", ao);
|
||||
await pp.setProperty("ao", Pref.audioOutput);
|
||||
}
|
||||
// video-sync=display-resample
|
||||
await pp.setProperty("video-sync", Pref.videoSync);
|
||||
|
||||
14
lib/plugin/pl_player/models/audio_output_type.dart
Normal file
14
lib/plugin/pl_player/models/audio_output_type.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import 'package:PiliPlus/models/common/enum_with_label.dart';
|
||||
|
||||
enum AudioOutput implements EnumWithLabel {
|
||||
aaudio('AAudio'),
|
||||
opensles('OpenSL ES'),
|
||||
audiotrack('AudioTrack')
|
||||
;
|
||||
|
||||
static final defaultValue = values.map((e) => e.name).join(',');
|
||||
|
||||
@override
|
||||
final String label;
|
||||
const AudioOutput(this.label);
|
||||
}
|
||||
Reference in New Issue
Block a user