🐛 Fix sound mode

This commit is contained in:
2025-03-29 16:41:23 +08:00
parent 55a7e7d900
commit b02a54c1e9
3 changed files with 31 additions and 1 deletions

View File

@ -106,6 +106,14 @@ class NotificationProvider extends ChangeNotifier {
_notifySoundPlayer.play(
AssetSource('audio/notify/metal-pipe.mp3'),
volume: 0.6,
ctx: AudioContext(
android: AudioContextAndroid(
contentType: AndroidContentType.sonification,
usageType: AndroidUsageType.notificationEvent,
),
iOS: AudioContextIOS(category: AVAudioSessionCategory.ambient),
),
mode: PlayerMode.lowLatency,
);
}
}